2.0.1 • Published 1 year ago
eslint-config-ape v2.0.1
Setup
Install
yarn add eslint@7 eslint-config-apeConfig
.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 --quietAlle js Files, zeige alle fehler und warnings an, keine automatischen fixes
yarn eslint **/*.jsCommit hook setup
Um automatisch alle Dateien die comitted werden zu prüfen:
yarn add husky lint-stagedIn 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
1 year ago
2.0.0
1 year ago
1.0.19
2 years ago
1.0.22
2 years ago
1.0.21
2 years ago
1.0.20
2 years ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.9
3 years ago
1.0.11
3 years ago
1.0.10
3 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
5 years ago
1.0.0
5 years ago