2.0.1 • Published 3 months ago
eslint-config-ape v2.0.1
Setup
Install
yarn add eslint@7 eslint-config-ape
Config
.eslintrc.json
{
"ignorePatterns": [
"**/node_modules/**/*.js"
],
"extends": [
"eslint-config-ape"
],
"settings": {
"next": {
"rootDir": "/for/monorepos"
},
"tailwindcss": {
"config": "/for/monorepos"
}
}
}
Run
Alle js Files, behebe alle fehler und zeige keine warnings an
yarn eslint **/*.js --fix --quiet
Alle js Files, zeige alle fehler und warnings an, keine automatischen fixes
yarn eslint **/*.js
Commit hook setup
Um automatisch alle Dateien die comitted werden zu prüfen:
yarn add husky lint-staged
In package.json
{
"scripts": {
"postinstall": "husky install && husky set .husky/pre-commit \"yarn lint-staged\"",
},
"lint-staged": {
"*.js": "eslint --config .eslintrc.json --fix --quiet",
"*.jsx": "eslint --config .eslintrc.json --fix --quiet",
"*.json": "eslint --config .eslintrc.json --fix --quiet"
}
}
2.0.1
3 months ago
2.0.0
3 months ago
1.0.19
1 year ago
1.0.22
1 year ago
1.0.21
1 year ago
1.0.20
1 year ago
1.0.18
1 year ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.9
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.2
4 years ago
1.0.3
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago