-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
56 lines (55 loc) ยท 1.63 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'react-hooks'],
extends: [
'airbnb-base', // or airbnb-base
'plugin:react/recommended',
'plugin:jsx-a11y/recommended', // ์ค์น ํ๊ฒฝ์ฐ
'plugin:import/errors', // ์ค์นํ ๊ฒฝ์ฐ
'plugin:import/warnings', // ์ค์นํ ๊ฒฝ์ฐ
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
rules: {
camelcase: 'off',
'no-console': 'off',
'prettier/prettier': 0,
'react/jsx-filename-extension': [2, { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
'no-use-before-define': 'off',
'no-restricted-globals': ['error', 'event', 'fdescribe'],
'import/prefer-default-export': 'off',
'@typescript-eslint/no-use-before-define': ['error'],
'no-underscore-dangle': 'off',
'react/require-default-props': 'off',
'import/no-unresolved': 'off',
'click-events-have-key-events': 'off',
'jsx-a11y/click-events-have-key-events': ['off'],
'jsx-a11y/mouse-events-have-key-events': ['off'],
'react/jsx-key': ['off'],
'jsx-a11y/no-static-element-interactions': [
'error',
{
handlers: ['onMouseDown', 'onMouseUp', 'onKeyPress', 'onKeyDown', 'onKeyUp'],
},
],
// airbnb ESLint ๊ตฌ์ฑ์ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํจ
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
ignorePatterns: '**/*.spec.ts',
};