Skip to content

Commit 70cb991

Browse files
disableUncompatibleRules (#1904)
1 parent a6899df commit 70cb991

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

front/.eslintrc.js

+18-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
es6: true,
55
jest: true,
66
},
7-
extends: ['airbnb', 'plugin:react/recommended', 'prettier'],
7+
extends: ['airbnb', 'plugin:react/recommended', 'prettier', 'plugin:import/recommended'],
88
globals: {
99
Atomics: 'readonly',
1010
SharedArrayBuffer: 'readonly',
@@ -16,7 +16,7 @@ module.exports = {
1616
ecmaVersion: 2018,
1717
sourceType: 'module',
1818
},
19-
plugins: ['prettier', 'react', 'babel', 'react-hooks', 'only-warn'],
19+
plugins: ['prettier', 'react', 'babel', 'react-hooks', 'only-warn', 'import'],
2020
parser: 'babel-eslint',
2121
rules: {
2222
'react/prefer-stateless-function': 'off',
@@ -31,7 +31,8 @@ module.exports = {
3131
'import/no-extraneous-dependencies': 0,
3232
'linebreak-style': ['error', 'unix'],
3333
'jsx-a11y/click-events-have-key-events': 'off',
34-
'prettier/prettier': ['warn']
34+
'prettier/prettier': ['warn'],
35+
'import/no-unresolved': [2, { commonjs: true, amd: true }],
3536
},
3637
settings: {
3738
'import/resolver': {
@@ -48,6 +49,8 @@ module.exports = {
4849
'plugin:react/recommended',
4950
'plugin:@typescript-eslint/eslint-recommended',
5051
'plugin:@typescript-eslint/recommended',
52+
'plugin:import/recommended',
53+
'plugin:import/typescript',
5154
],
5255
globals: { Atomics: 'readonly', SharedArrayBuffer: 'readonly' },
5356
parser: '@typescript-eslint/parser',
@@ -69,6 +72,18 @@ module.exports = {
6972
'react/jsx-props-no-spreading': 0,
7073
'react/no-array-index-key': 0,
7174
'react/require-default-props': 0,
75+
'import/extensions': [
76+
'error',
77+
'ignorePackages',
78+
{
79+
js: 'never',
80+
jsx: 'never',
81+
ts: 'never',
82+
tsx: 'never',
83+
},
84+
],
85+
'no-use-before-define': 'off',
86+
'@typescript-eslint/no-use-before-define': ['error'],
7287
},
7388
plugins: ['@typescript-eslint'],
7489
},

0 commit comments

Comments
 (0)