Browse Source

Update eslintrc files

develop
Apostolos Fanakis 4 years ago
parent
commit
adc3fbb9a2
  1. 13
      packages/concordia-app/.eslintrc.js
  2. 11
      packages/concordia-contracts/.eslintrc.js
  3. 2
      yarn.lock

13
packages/concordia-app/.eslintrc.js

@ -23,18 +23,23 @@ module.exports = {
'react' 'react'
], ],
'rules': { 'rules': {
"indent": ["error", 4],
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
'react/jsx-filename-extension': 'off',
'react/jsx-props-no-spreading': 'off', 'react/jsx-props-no-spreading': 'off',
'import/extensions': 'off', 'import/extensions': 'off',
"react/jsx-indent": [
'error',
4,
{
checkAttributes: true,
indentLogicalExpressions: true
}
],
'react/require-default-props': 'off', 'react/require-default-props': 'off',
'react/prop-types': 'off', 'react/prop-types': 'off',
'max-len': ['warn', {'code': 120, 'tabWidth': 4}], 'max-len': ['warn', {'code': 120, 'tabWidth': 4}],
'no-unused-vars': 'warn', 'no-unused-vars': 'warn',
'no-console': 'warn', 'no-console': 'warn',
'no-shadow': 'warn', 'no-shadow': 'warn',
"no-multi-str": "warn"
}, },
'settings': { 'settings': {
'import/resolver': { 'import/resolver': {

11
packages/concordia-contracts/.eslintrc.js

@ -17,9 +17,6 @@ module.exports = {
'assert': 'readonly' 'assert': 'readonly'
}, },
'parserOptions': { 'parserOptions': {
'ecmaFeatures': {
'jsx': true
},
'ecmaVersion': 2018, 'ecmaVersion': 2018,
'sourceType': 'module' 'sourceType': 'module'
}, },
@ -27,11 +24,6 @@ module.exports = {
'react' 'react'
], ],
'rules': { 'rules': {
"indent": ["error", 4],
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
'react/jsx-filename-extension': 'off',
'react/jsx-props-no-spreading': 'off',
'import/extensions': 'off', 'import/extensions': 'off',
'react/require-default-props': 'off', 'react/require-default-props': 'off',
'react/prop-types': 'off', 'react/prop-types': 'off',
@ -39,11 +31,12 @@ module.exports = {
'no-unused-vars': 'warn', 'no-unused-vars': 'warn',
'no-console': 'warn', 'no-console': 'warn',
'no-shadow': 'warn', 'no-shadow': 'warn',
"no-multi-str": "warn"
}, },
'settings': { 'settings': {
'import/resolver': { 'import/resolver': {
'node': { 'node': {
'extensions': ['.js', '.jsx'] 'extensions': ['.js']
} }
} }
}, },

2
yarn.lock

@ -3277,7 +3277,7 @@ babel-code-frame@^6.22.0:
esutils "^2.0.2" esutils "^2.0.2"
js-tokens "^3.0.2" js-tokens "^3.0.2"
babel-eslint@10.1.0: babel-eslint@10.1.0, babel-eslint@^10.0.0:
version "10.1.0" version "10.1.0"
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz#6968e568a910b78fb3779cdd8b6ac2f479943232" resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz#6968e568a910b78fb3779cdd8b6ac2f479943232"
integrity sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg== integrity sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg==

Loading…
Cancel
Save