@codementor/eslint-config-bro
v1.6.0
Published
Arc & Codementor's eslint configs
Downloads
85
Keywords
Readme
Eslint-config-bro
Eslint config for Arc & Codementor
Installation
yarn add --dev @codementor/eslint-config-bro \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
@babel/eslint-parser \
eslint \
eslint-config-jsx \
eslint-config-prettier \
eslint-config-react \
eslint-config-standard \
eslint-config-standard-react \
eslint-config-standard-jsx \
eslint-plugin-prettier \
eslint-plugin-react \
eslint-plugin-import \
eslint-plugin-promise \
eslint-plugin-n \
prettier
eslint-plugin-import, eslint-plugin-promise, eslint-plugin-n
are required by eslint-config-standard
In your .eslintrc.*
file
{
"extends": [
"@codementor/bro"
],
}
In your package.json
file
{
"scripts": {
"lint": "eslint \"src/**/*.js\"",
"lint:fix": "eslint \"src/**/*.js\" --fix",
"lint-staged": "lint-staged",
},
"pre-commit": "lint-staged",
"lint-staged": {
"*.+(js|ts|tsx)": [
"eslint --fix",
"git add"
]
},
}