eslint-config-talktofill
v1.0.6
Published
Personal Eslint Style
Downloads
7
Readme
eslint-config-talktofill
This is the eslint configuration that I use in my personal projects
How to install
npm install eslint-config-talktofill --save-dev
.eslintrc
- Add the next config in
.eslintrc
{
"extends": "talktofill"
}
- Add the project environment: envs
{
"extends": "talktofill",
"env": {
"browser": true
}
}
- Add your project global variables to avoid the no-undef notification: globals
{
"extends": "talktofill",
"env": {
"browser": true
},
"globals": {
"anySDK": "readonly"
}
}
React
npm install eslint-plugin-jsx-a11y@^6.2.1 eslint-plugin-react@^7.12.4 --save-dev
- Extends the React config
{
"extends": "talktofill/react"
}
Vue
npm install eslint-plugin-vue@^5.2.2 --save-dev
- Extends the Vue config
{
"extends": "talktofill/vue"
}
Babel
npm install babel-eslint --save-dev
- Add the Babel parser config
{
"parser": "babel-eslint"
}
In Vue projects you have to set in a different way
{ "parserOptions": { "parser": "babel-eslint" } }
Scripts
npm test
: Verify the rules files
Reference
- Eslint version - ESLint v5.16.0 (2019-03-29).