-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
62 lines (62 loc) · 1.57 KB
/
.eslintrc.js
File metadata and controls
62 lines (62 loc) · 1.57 KB
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
57
58
59
60
61
62
module.exports = {
env: {
browser: true,
},
extends: [
'plugin:react/recommended',
'plugin:prettier/recommended',
'airbnb',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2020,
sourceType: 'module',
allowImportExportEverywhere: true,
project: './tsconfig.json',
},
plugins: ['react', 'prettier', '@typescript-eslint'],
rules: {
'max-len': [
'error',
{
code: 80,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
},
],
'object-curly-newline': ['error', { consistent: true }],
indent: 0,
'comma-dangle': 0,
'no-unused-vars': 0,
'no-use-before-define': 0,
'import/extensions': 0,
'consistent-return': 0,
'react/require-default-props': 0,
'no-undef': 0,
'import/prefer-default-export': 0,
'linebreak-style': 0,
'no-tabs': 0,
'import/no-unresolved': 0,
'react/jsx-filename-extension': 0,
'react/jsx-indent': 0,
'react/jsx-indent-props': 0,
'react/jsx-props-no-spreading': 0,
'react/jsx-one-expression-per-line': 0,
'jsx-a11y/anchor-is-valid': 0,
'jsx-a11y/accessible-emoji': 0,
'jsx-a11y/label-has-associated-control': 0,
'import/no-named-as-default': 0,
'import/no-named-as-default-member': 0,
'operator-linebreak': 0,
'react/prop-types': 0,
'react/react-in-jsx-scope': 0,
'react/jsx-uses-react': 0,
'react/jsx-fragments': 0,
'implicit-arrow-linebreak': 0,
'function-paren-newline': 0,
},
};