forked from deriv-com/SmartCharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
106 lines (106 loc) · 3.16 KB
/
.eslintrc
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"parser": "@typescript-eslint/parser",
"extends": [
"prettier",
"prettier/react",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"airbnb",
"airbnb-base",
"binary",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"plugins": ["react", "prettier", "@typescript-eslint"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"settings": {
"import/resolver": {
"webpack": { "config": "webpack.config.js" }
}
},
"globals": {
"CIQ": false,
"t": false
},
"rules": {
"react/no-multi-comp": 0,
"react/no-array-index-key": 2,
"react/jsx-filename-extension": 0,
"import/prefer-default-export": 0,
"jsx-a11y/no-static-element-interactions": 0,
"array-callback-return": 0,
"react/prop-types": 0,
"react/jsx-indent": 0,
"key-spacing": 0,
"object-curly-newline": 0,
"react/jsx-indent-props": 0,
"react/jsx-uses-vars": 2,
"jsx-a11y/click-events-have-key-events": 0,
"no-lonely-if": 2,
"func-names": 0,
"guard-for-in": 0,
"import/extensions": 0,
"class-methods-use-this": 0,
"eqeqeq": 2,
"template-curly-spacing": 2,
"no-multi-spaces": 0,
"no-multi-assign": 0,
"block-scoped-var": 2,
"no-continue": 0,
"indent": 0,
"arrow-parens": 0,
"no-param-reassign": 0,
"consistent-return": 0,
"no-plusplus": 0,
"camelcase": 0,
"no-shadow": 2,
"no-bitwise": 0,
"one-var": 0,
"one-var-declaration-per-line": 0,
"prefer-arrow-callback": 0,
"no-mixed-operators": 0,
"max-len": 0,
"prefer-const": 2,
"import/no-extraneous-dependencies": ["error", { "packageDir": "./" }],
"no-underscore-dangle": 0,
"prefer-destructuring": 0,
"react/no-access-state-in-setstate": 2,
"react/destructuring-assignment": 0,
"react/forbid-prop-types": 0,
"react/jsx-props-no-multi-spaces": 0,
"react/jsx-one-expression-per-line": 0,
"lines-between-class-members": 0,
"no-this-before-super": 2,
"no-unused-expressions": 2,
"semi": 2,
"no-console": 0,
"radix": 0,
"quotes": 0,
"jsx-quotes": ["error", "prefer-single"],
"no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"],
"jsx-a11y/label-has-for": [
2,
{
"components": ["Label"],
"required": {
"some": ["nesting", "id"]
},
"allowChildren": false
}
],
"react/require-default-props": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-var-requires": "off"
}
}