0.11.0 • Published 8 months ago
@nnecec/eslint-config v0.11.0
@nnecec/eslint-config
Features
- Work friendly with
Prettier
. - Extends
third-party-config:recommended
first. - Default enabled:
unicorn
,sort-package-json
, sortimport
&export
,json
. - Optional:
TypeScript
,React
,Tailwind.CSS
,jsdoc
. - ESLint flat config (>=0.7.0).
Usage
$ npm install --save-dev @nnecec/eslint-config
# or
$ pnpm add @nnecec/eslint-config
Create eslint.config.js
at your project:
import nnecec from '@nnecec/eslint-config'
export default nnecec()
// or
export default [
...nnecec(),
{
// your configs
}
]
Options
type Options = {
prettier: boolean // default: true
unicorn: boolean // default: true
'sort-package-json': boolean // default: true
sort: boolean // default: true
json: boolean // default: true
// ------
jsdoc: boolean // default: false
typescript: boolean // default: false
react: boolean // default: false
tailwindcss: boolean // default: false
node: boolean // default: false
}
Usage(legacy)
Install:
npm install --save-dev eslint @nnecec/eslint-config
Edit .eslintrc.js
:
module.exports = {
// Base config, includes Standard, Prettier, ImportSort, unicorn.
extends: ['@nnecec/eslint-config'],
// includes **Base** and TypeScript config.
extends: ['@nnecec/eslint-config/typescript'],
// includes **TypeScript** config and React config.
extends: ['@nnecec/eslint-config/react'],
// includes **React** config and Tailwind.
extends: ['@nnecec/eslint-config/react-universal'],
}
0.11.0
8 months ago
0.10.1
11 months ago
0.10.0
12 months ago
0.9.4
1 year ago
0.9.3
1 year ago
0.9.2
1 year ago
0.9.0
1 year ago
0.9.1
1 year ago
0.8.10
1 year ago
0.8.9
1 year ago
0.8.8
1 year ago
0.8.7
2 years ago
0.8.6
2 years ago
0.8.5
2 years ago
0.7.6
2 years ago
0.8.4
2 years ago
0.7.5
2 years ago
0.8.1
2 years ago
0.7.2
2 years ago
0.6.3
2 years ago
0.8.0
2 years ago
0.7.1
2 years ago
0.6.2
2 years ago
0.8.3
2 years ago
0.7.4
2 years ago
0.8.2
2 years ago
0.7.3
2 years ago
0.6.4
2 years ago
0.5.0
2 years ago
0.7.0
2 years ago
0.6.1
2 years ago
0.6.0
2 years ago
0.5.1
2 years ago
0.4.2
2 years ago
0.3.0
2 years ago
0.2.7
2 years ago
0.4.1
2 years ago
0.4.0
2 years ago
0.3.1
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.2.6
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.2.5
2 years ago
0.2.4
2 years ago
0.1.0
3 years ago
0.1.1
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.5
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.4
3 years ago
0.0.1
3 years ago