JSPM

  • Created
  • Published
  • Downloads 303
  • Score
    100M100P100Q89417F
  • License ISC

Lint JavaScript, free of weariness and confusion

Package Exports

  • @zazen/eslint-config

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@zazen/eslint-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

zazen-eslint-config

npm version npm downloads semantic-release

ESLint configuration for zazen-generated projects.

Usage

Install the conventions by running:

npm install --save-dev eslint @zazen/eslint-config

Add the extends to your .eslintrc.js:

{
    extends: ['@zazen/eslint-config'],
    rules: { /* … */ }
}

Add the Prettier settings to your package.json:

"prettier": {
    "arrowParens": "always",
    "semi": false,
    "singleQuote": true,
    "tabWidth": 4
},

Vue.js projects

Install the optionalDependency eslint-plugin-vue:

npm install --save-dev eslint-plugin-vue

Extend the Vue-specific settings in .eslintrc.js:

{
    extends: ['@zazen/eslint-config', '@zazen/eslint-config/vue'],
    rules: { /* … */ }
}