-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
63 lines (63 loc) · 1.95 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
{
"extends": ["taro/react", "prettier", "plugin:promise/recommended"],
"env": { "es6": true },
"plugins": ["simple-import-sort", "import", "prettier"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"babelOptions": {
"presets": ["@babel/preset-react"]
}
},
"rules": {
"camelias": 0,
"react/sort-comp": 0,
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-wrap-multilines": 0,
"react/prop-types": 0,
"react/forbid-prop-types": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-props-no-spreading": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/anchor-is-valid": 0,
"no-bitwise": 0,
"linebreak-style": 0,
"generator-star-spacing": 0,
"operator-linebreak": 0,
"object-curly-newline": 0,
"no-use-before-define": 0,
"no-nested-ternary": 0,
"no-spaced-func": 2,
"no-this-before-super": 0,
"no-var": 0,
"compat/compat": 0,
"sort-imports": 0,
"@typescript-eslint/no-this-alias": ["off"],
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-invalid-this": 0,
"jsx-quotes": ["error", "prefer-double"],
"simple-import-sort/imports": [
"error",
{
"groups": [
["^(?!taro-fast-)[a-zA-Z0-9]","^@(?!/)"],
["^(?!@/)(?!taro-fast-)(?!.)"],
["^taro-fast-"],
["^((@/).*|$)"],
["^\\u0000"],
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
["^.+\\.s?less$","^.+\\.s?scss$","^.+\\.s?css$"]
]
}
],
"simple-import-sort/exports": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error"
}
}