Answer the question
In order to leave comments, you need to log in
Why won't eslint watch my files?
Hey!
I can't figure out why eslint won't lock my files after installation according to the guide on the off site (eslint --init). In general, I want eslint to point out my mistakes when I use:
- React;
- proptypes;
- Redux;
- Styled-components (well, if there is a rule for this, why not);
I naturally compile with webpack
Of course, I only need eslint for the Develompent
package.json mode
"eslint": "^4.19.1",
"eslint-plugin-react": "^7.10.0",
{
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question