6.8.0 • Published 3 months ago

@zazen/eslint-config v6.8.0

Weekly downloads
298
License
ISC
Repository
github
Last release
3 months ago

zazen-eslint-config

npm version npm downloads

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'],
    rules: { /* … */ },
}

Add the Prettier settings to your package.json:

"prettier": {
    "semi": false,
    "singleQuote": true,
    "trailingComma": "all"
},

Node projects

Extend the base config as well as the Node-specific rules:

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

TypeScript projects

Extend the base config as well as the TypeScript-specific rules:

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

This can be used for JavaScript code as well, but will require a tsconfig.json file to be present.

Vue.js projects

Removed for now until/unless I get more opinionated about Vue code. For now, install eslint-plugin-vue per-project, and extend the recommended config in addition to the base config here.

{
    extends: [
        'plugin:vue/[vue3-]recommended',
        '@zazen',
        'prettier',
    ],
    rules: { /* … */ },
}

The TypeScript rules can be included as well, but remember to set the parser option correctly.

6.8.0

3 months ago

6.7.0

3 months ago

6.6.2

3 months ago

6.6.1

4 months ago

6.6.0

4 months ago

6.5.0

4 months ago

6.4.0

6 months ago

6.3.0

1 year ago

5.2.0

2 years ago

5.1.0

2 years ago

6.1.0

2 years ago

6.0.0

2 years ago

6.2.1

1 year ago

6.2.0

1 year ago

3.0.1

2 years ago

5.0.0

2 years ago

3.0.0

2 years ago

4.0.0

2 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.1

3 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.0.0

5 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago