-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
39 lines (39 loc) · 1.27 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ['plugin:react/recommended', 'airbnb-base', 'airbnb'],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react'],
rules: {
// 'max-len': ['error', { code: 140 }],
indent: 'off',
'max-len': 'off',
'object-curly-newline': 'off',
'jsx-quotes': ['error', 'prefer-single'],
'react/react-in-jsx-scope': 'off',
'react/function-component-definition': [2, { namedComponents: 'arrow-function' }],
'react/prop-types': 'off',
'implicit-arrow-linebreak': 'off',
'operator-linebreak': 'off',
'react/jsx-props-no-spreading': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/destructuring-assignment': 'off', // 임시
'react/jsx-no-useless-fragment': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'global-require': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'react/jsx-wrap-multilines': 'off',
'react/jsx-no-constructed-context-values': 'off',
'no-unused-vars': 'off',
'linebreak-style': 0,
'no-trailing-spaces': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
},
};