-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
55 lines (55 loc) · 1.16 KB
/
index.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",
plugins: [
"@typescript-eslint/eslint-plugin",
"filename-rules",
"cypress",
"import",
"jsx-a11y",
],
extends: [
"react-app",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:jsx-a11y/recommended",
"prettier",
],
ignorePatterns: [".eslintrc.js", "src/react-app-env.d.ts"],
rules: {
"import/no-unresolved": "error",
"import/order": [
"error",
{
groups: [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object",
],
},
],
"no-use-before-define": "off",
"import/no-named-as-default": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"filename-rules/match": ["error", /^([a-z0-9]+-)*[a-z0-9]+(?:\..*)?$/],
"cypress/no-async-tests": "error",
},
env: {
"cypress/globals": true,
browser: true,
jest: true,
},
settings: {
react: {
version: "latest",
},
"import/resolver": {
node: {
moduleDirectory: ["node_modules", "src/"],
},
},
},
};