forked from saleor/saleor-storefront
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
77 lines (76 loc) · 2.21 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"extends": [
"airbnb-typescript",
"prettier",
"prettier/react",
"plugin:import/errors",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "import", "react", "prettier"],
"rules": {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/quotes": "off",
"comma-spacing": "off",
"import/no-cycle": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/stories.tsx",
"**/test.ts",
"**/*.test.ts",
"**/test.tsx",
"**/tests.tsx",
"config/**/*",
"*.config.js",
"src/@next/pages/baseStory.ts",
"cypress/**/*"
]
}
],
"import/no-internal-modules": "off",
"import/no-named-as-default": "off",
"import/order": "error",
"import/prefer-default-export": "off",
"no-nested-ternary": "off",
"prettier/prettier": ["error"],
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-wrap-multilines": "off",
"react/prop-types": "off",
"sort-imports": "off",
"no-underscore-dangle": "off",
"react/state-in-constructor": "off",
"react/static-property-placement": "off",
"sort-keys": "off",
"no-prototype-builtins": "off",
"no-shadow": "off",
"jsx-a11y/click-events-have-key-events": "off",
"consistent-return": "off",
"react/no-this-in-sfc": "off",
"array-callback-return": "off",
"no-plusplus": "off",
"react/no-did-update-set-state": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/destructuring-assignment": "off",
"react/button-has-type": "off",
"@typescript-eslint/no-use-before-define": "off",
"no-useless-escape": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"react/no-array-index-key": "off",
"no-param-reassign": "off",
"no-empty-pattern": "off",
"no-restricted-globals": "off",
"@typescript-eslint/no-unused-vars": "off"
},
"settings": {
"import/resolver": {
"typescript": {}
}
}
}