Plugin for eslint.
{
"ignorePatterns": ["public/", "dist/", "node_modules/"],
"root": true,
"env": {
"node": true
},
"plugins": ["@evojs"],
"extends": ["plugin:@evojs/ecmascript"],
"parserOptions": {
"ecmaVersion": 2021
},
"rules": {},
"overrides": []
}
You also need to install @typescript-eslint/parser
, @typescript-eslint/eslint-plugin
:
npm install --save-dev \
@typescript-eslint/parser \
@typescript-eslint/eslint-plugin
{
"ignorePatterns": ["public/", "dist/", "node_modules/"],
"root": true,
"env": {
"node": true
},
"plugins": ["@evojs"],
"extends": ["plugin:@evojs/ecmascript"],
"parserOptions": {
"ecmaVersion": 2021
},
"rules": {},
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"plugins": ["@evojs"],
"extends": ["plugin:@evojs/typescript"],
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"rules": {}
}
]
}
You also need to install @typescript-eslint/parser
, @typescript-eslint/eslint-plugin
, eslint-plugin-react
, eslint-plugin-react-hooks
:
npm install --save-dev \
@typescript-eslint/parser \
@typescript-eslint/eslint-plugin \
eslint-plugin-react \
eslint-plugin-react-hooks
{
"ignorePatterns": ["public/", "dist/", "node_modules/"],
"root": true,
"env": {
"node": true
},
"plugins": ["@evojs"],
"extends": ["plugin:@evojs/ecmascript", "plugin:@evojs/react"],
"parserOptions": {
"ecmaVersion": 2021
},
"rules": {},
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"plugins": ["@evojs"],
"extends": ["plugin:@evojs/typescript"],
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"rules": {}
}
],
"settings": {
"react": {
"version": "detect"
}
}
}
- All in one (ecmascript, react, typescript)
- Very convenient and strict linter configuration
Licensed under MIT license.