forked from bigTig/react-taroify-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
54 lines (54 loc) · 1.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
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ['plugin:react/recommended', 'airbnb'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react', 'prettier', '@typescript-eslint'],
rules: {
'import/order': 'off',
'jsx-quotes': ['error', 'prefer-single'],
'import/extensions': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'react/jsx-filename-extension': 'off',
'operator-linebreak': 'off',
'max-len': 'off',
'no-unused-vars': 'off',
'no-use-before-define': 'off',
'implicit-arrow-linebreak': 'off',
'no-unused-expressions': 'off',
'object-curly-newline': 'off',
'no-confusing-arrow': 'off',
'react/jsx-boolean-value': 'off',
'jsx-a11y/alt-text': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'linebreak-style': ['off', 'windows'],
'react/function-component-definition': 'off',
'no-console': 'off',
'no-undef': 'off',
'react/no-unstable-nested-components': 0,
'function-paren-newline': 'off',
'react/require-default-props': 'off',
'react/jsx-wrap-multilines': 'off',
'react/destructuring-assignment': 'off',
'react/jsx-props-no-spreading': 'off',
'prefer-destructuring': 'off',
'react/jsx-curly-newline': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-one-expression-per-line': 'off',
'arrow-body-style': 'off',
'prefer-regex-literals': 'off',
},
};