forked from antvis/Graphin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
55 lines (55 loc) · 1.86 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
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'airbnb',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/react',
'prettier/@typescript-eslint',
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
ecmaFeatures: {
jsx: true, // Allows for the parsing of JSX
},
},
rules: {
'no-shadow': 0,
'react/button-has-type': 0,
'jsx-a11y/click-events-have-key-events': 0,
camelcase: 0,
'@typescript-eslint/ban-ts-ignore': 0,
'arrow-body-style': 0,
'no-use-before-define': 0,
'@typescript-eslint/ban-ts-comment': 0,
'react/jsx-filename-extension': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'no-underscore-dangle': 0,
'@typescript-eslint/interface-name-prefix': 0,
'import/no-extraneous-dependencies': 0,
'no-console': 0,
'import/prefer-default-export': 0,
'import/extensions': 0,
'import/no-unresolved': 0,
'react/prop-types': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'react/display-name': 'off',
'react/jsx-props-no-spreading': 0,
'operator-assignment': 0,
'react/no-did-update-set-state': 0,
'consistent-return': 0,
'react/sort-comp': 0,
'no-plusplus': 'off', // i++
radix: 'off', // parseInt Missing radix parameter
'no-restricted-properties': 'off', // Math.pow(10, 2) === 10**2
'import/order': 0,
'@typescript-eslint/explicit-member-accessibility': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'no-param-reassign': 0,
'@typescript-eslint/no-object-literal-type-assertion': 0,
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': 'off',
},
};