Moved eslint config from package.json to .eslintrc

This commit is contained in:
Alejandro Celaya 2018-08-26 10:30:20 +02:00
parent fff18202fd
commit d6882ff8c5
2 changed files with 41 additions and 41 deletions

39
.eslintrc Normal file
View file

@ -0,0 +1,39 @@
{
"extends": [
"adidas-env/browser",
"adidas-env/module",
"adidas-es6",
"adidas-babel",
"adidas-react"
],
"plugins": ["jest"],
"env": {
"jest/globals": true
},
"globals": {
"process": true,
"setImmediate": true
},
"settings": {
"react": {
"version": "16.3"
}
},
"rules": {
"comma-dangle": ["error", "always-multiline"],
"no-invalid-this": "off",
"template-curly-spacing": ["error", "never"],
"no-warning-comments": "off",
"no-undefined": "off",
"indent": ["error", 2, {
"SwitchCase": 1
}
],
"react/jsx-curly-spacing": ["error", "never"],
"react/jsx-indent-props": ["error", 2],
"react/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
"react/jsx-closing-bracket-location": ["error", "tag-aligned"],
"react/no-array-index-key": "off",
"react/no-did-update-set-state": "off"
}
}

View file

@ -1,7 +1,7 @@
{
"name": "shlink-web-client-react",
"description": "A React-based web client for shlink",
"version": "0.1.0",
"description": "A React-based progressive web application for shlink",
"version": "1.0.0",
"private": false,
"scripts": {
"lint": "yarn lint:js && yarn lint:css",
@ -140,44 +140,5 @@
"presets": [
"react-app"
]
},
"eslintConfig": {
"extends": [
"adidas-env/browser",
"adidas-env/module",
"adidas-es6",
"adidas-babel",
"adidas-react"
],
"plugins": ["jest"],
"env": {
"jest/globals": true
},
"globals": {
"process": true,
"setImmediate": true
},
"rules": {
"comma-dangle": ["error", "always-multiline"],
"no-invalid-this": "off",
"template-curly-spacing": ["error", "never"],
"no-warning-comments": "off",
"no-undefined": "off",
"indent": ["error", 2, {
"SwitchCase": 1
}
],
"react/jsx-curly-spacing": ["error", "never"],
"react/jsx-indent-props": ["error", 2],
"react/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
"react/jsx-closing-bracket-location": ["error", "tag-aligned"],
"react/no-array-index-key": "off",
"react/no-did-update-set-state": "off"
},
"settings": {
"react": {
"version": "16.3"
}
}
}
}