Skip to content

Commit 46e4d6b

Browse files
committed
override additional eslint rules
Signed-off-by: BluThaitanium <[email protected]>
1 parent 3ec01ce commit 46e4d6b

File tree

1 file changed

+55
-3
lines changed

1 file changed

+55
-3
lines changed

dashboard/origin-mlx/.eslintrc.yml

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,70 @@ parserOptions:
1616
plugins:
1717
- react
1818
- '@typescript-eslint'
19+
1920
rules:
20-
#===
2121
# Disabled, based on docs
2222
# https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#eslint
2323
react/jsx-uses-react: 'off'
2424
react/react-in-jsx-scope: 'off'
25-
#===
25+
2626
# Allow only char '_' for unused-variable convention
2727
no-unused-vars: 'off'
2828
'@typescript-eslint/no-unused-vars':
2929
- warn
3030
- argsIgnorePattern: '^_'
3131
varsIgnorePattern: '^_'
3232
caughtErrorsIgnorePattern: '^_'
33-
#===
33+
34+
# ignore errors that require extreme changes to the code
35+
overrides:
36+
- files:
37+
- '**/*.tsx'
38+
rules:
39+
react/button-has-type: 'off'
40+
react/destructuring-assignment: 'off'
41+
react/function-component-definition: 'off'
42+
react/jsx-no-bind: 'off'
43+
react/jsx-no-constructed-context-values: 'off'
44+
react/jsx-no-useless-fragment: 'off'
45+
react/jsx-props-no-spreading: 'off'
46+
react/no-access-state-in-setstate: 'off'
47+
react/no-array-index-key: 'off'
48+
react/no-children-prop: 'off'
49+
react/no-deprecated: 'off'
50+
react/no-unstable-nested-components: 'off'
51+
react/no-unused-class-component-methods: 'off'
52+
react/no-unused-prop-types: 'off'
53+
react/no-unused-state: 'off'
54+
react/prefer-stateless-function: 'off'
55+
react/prop-types: 'off'
56+
react/require-default-props: 'off'
57+
react/sort-comp: 'off'
58+
react/state-in-constructor: 'off'
59+
react/static-property-placement: 'off'
60+
'@typescript-eslint/brace-style': 'off'
61+
'@typescript-eslint/naming-convention': 'off'
62+
'@typescript-eslint/no-shadow': 'off'
63+
'@typescript-eslint/no-unused-expressions': 'off'
64+
'@typescript-eslint/no-unused-vars': 'off'
65+
'@typescript-eslint/no-use-before-define': 'off'
66+
jsx-a11y/click-events-have-key-events: 'off'
67+
jsx-a11y/no-static-element-interactions: 'off'
68+
class-methods-use-this: 'off'
69+
consistent-return: 'off'
70+
default-case: 'off'
71+
func-names: 'off'
72+
import/no-named-as-default: 'off'
73+
max-classes-per-file: 'off'
74+
max-len: 'off'
75+
no-console: 'off'
76+
no-constant-condition: 'off'
77+
no-empty: 'off'
78+
no-mixed-operators: 'off'
79+
no-nested-ternary: 'off'
80+
no-param-reassign: 'off'
81+
no-prototype-builtins: 'off'
82+
no-restricted-syntax: 'off'
83+
no-underscore-dangle: 'off'
84+
prefer-destructuring: 'off'
85+
radix: 'off'

0 commit comments

Comments
 (0)