Configure eslint
- run from `app` using `npx eslint .`
This commit is contained in:
parent
495663f164
commit
07662c1eb0
6
app/.eslintignore
Normal file
6
app/.eslintignore
Normal file
@ -0,0 +1,6 @@
|
||||
node_modules/
|
||||
build
|
||||
test/fixtures
|
||||
test/tests
|
||||
razzle.config.js
|
||||
packages/create-razzle-app/templates
|
33
app/.eslintrc
Normal file
33
app/.eslintrc
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:react/recommended"
|
||||
],
|
||||
"env": {
|
||||
"browser": true,
|
||||
"commonjs": true,
|
||||
"node": true,
|
||||
"es6": true
|
||||
},
|
||||
"parser": "babel-eslint",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 6,
|
||||
"sourceType": "module",
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
}
|
||||
},
|
||||
"rules": {
|
||||
"no-console": "off",
|
||||
"strict": ["error", "global"],
|
||||
"curly": "warn"
|
||||
},
|
||||
"plugins": [
|
||||
"react"
|
||||
],
|
||||
"settings": {
|
||||
"react": {
|
||||
"version": "detect"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user