forked from didi/LogicFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
70 lines (70 loc) · 1.96 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'plugin:@typescript-eslint/recommended',
'airbnb-typescript',
'airbnb/hooks',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
modules: true,
},
project: './tsconfig.json',
},
plugins: ['@typescript-eslint'],
settings: {
react: {
pragma: 'h',
},
},
rules: {
'indent': ['error', 2, { SwitchCase: 1 }],
'linebreak-style': ['error', 'unix'],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-use-before-define': 0,
'import/prefer-default-export': 0,
'import/no-cycle': 0,
'no-plusplus': 0,
'no-underscore-dangle': 0,
'no-param-reassign': 0,
'arrow-parens': 0,
'consistent-return': 0,
'import/no-named-as-default': 0,
'class-methods-use-this': 0,
'@typescript-eslint/no-unused-expressions': 0,
'@typescript-eslint/lines-between-class-members': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-namespace': 'off',
'react/prop-types': 0,
'react/jsx-props-no-spreading': 0,
'react/prefer-stateless-function': 0,
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/no-static-element-interactions': 0,
'jsx-a11y/no-noninteractive-element-interactions': 0,
'@typescript-eslint/ban-types': 0,
'max-classes-per-file': 0,
'react/jsx-boolean-value': 0,
'@typescript-eslint/ban-ts-comment': 0,
'react/no-danger': 0,
'no-console': 0,
'import/no-extraneous-dependencies': 0,
'@typescript-eslint/no-explicit-any': 0,
'object-curly-newline': 0,
'prefer-object-spread': 0,
'no-restricted-syntax': 0,
'operator-assignment': 0
},
};