forked from mage-ai/mage-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
88 lines (88 loc) · 2.71 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
module.exports = {
env: {
browser: true,
node: true,
},
extends: [
'next/core-web-vitals',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
],
ignorePatterns: ['.eslintrc.js'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 13,
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'react'],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/comma-dangle': 'off',
'@typescript-eslint/dot-notation': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-shadow': 'off',
'@typescript-eslint/object-curly-spacing': ['error', 'always'],
'@typescript-eslint/prefer-as-const': 'off',
'@typescript-eslint/semi': ['error'],
'anchor-is-valid': 'off',
'array-callback-return': 'off',
'arrow-body-style': 'warn',
'arrow-parens': 'off',
'consistent-return': 'off',
'eol-last': 'error',
'function-paren-newline': 'off',
'implicit-arrow-linebreak': 'off',
'import/no-cycle': 'off',
'import/no-duplicates': 'off',
'import/no-extraneous-dependencies': 'off',
'import/order': 'off',
'import/prefer-default-export': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/control-has-associated-label': 'off',
'jsx-quotes': ['error', 'prefer-double'],
'key-spacing': ['error', {
mode: 'strict',
}],
'max-len': [
'warn',
{
'code': 120
}
],
'no-confusing-arrow': 'off',
'no-else-return': 'off',
'no-nested-ternary': 'off',
'no-param-reassign': 'off',
'no-prototype-builtins': 'off',
'object-curly-spacing': 'off',
'operator-linebreak': 'off',
'quotes': ['error', 'single'],
'semi': 'off',
'radix': 'off',
'react/display-name': 'off',
'react-hooks/rules-of-hooks': 'warn',
'react/jsx-closing-tag-location': 'off',
'react/jsx-curly-newline': 'off',
'react/jsx-indent': ['error', 2],
'react/jsx-one-expression-per-line': 'off',
'react/jsx-props-no-spreading': 'off',
'react/jsx-sort-props': ['warn', {
callbacksLast: false,
ignoreCase: false,
}],
'react/jsx-wrap-multilines': 'off',
'react/react-in-jsx-scope': 'off',
'react/require-default-props': 'off',
'space-in-parens': ['error', 'never'],
'sort-keys': ['warn', 'asc', {'caseSensitive': true, 'natural': false, 'minKeys': 2}],
'comma-dangle': ['warn', 'always-multiline']
}
}