Configure eslint

- run from `app` using `npx eslint .`
This commit is contained in:
Tom Russell 2019-05-27 16:13:11 +01:00
parent 495663f164
commit 07662c1eb0
2 changed files with 39 additions and 0 deletions

6
app/.eslintignore Normal file
View 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
View 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"
}
}
}