Set up ESLint, make it happy
This commit is contained in:
parent
c325168a20
commit
6a1d55c968
26 changed files with 132 additions and 110 deletions
22
client/.eslintrc
Normal file
22
client/.eslintrc
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
},
|
||||
"env": {
|
||||
"browser": true,
|
||||
"node": true
|
||||
},
|
||||
"parser": "babel-eslint",
|
||||
"plugins": [
|
||||
"react"
|
||||
],
|
||||
"rules": {
|
||||
"quotes": [2, "single"],
|
||||
"strict": [2, "never"],
|
||||
"eol-last": [0],
|
||||
"new-cap": [2, { "capIsNew": false }],
|
||||
"react/jsx-uses-react": 2,
|
||||
"react/jsx-uses-vars": 2,
|
||||
"react/react-in-jsx-scope": 2
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue