-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
executable file
·101 lines (101 loc) · 2.77 KB
/
.eslintrc.json
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
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"airbnb-base",
"next/core-web-vitals",
"plugin:import/recommended",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 13,
"sourceType": "module"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
},
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"moduleDirectory": ["node_modules", "pages", "components", "lib"]
},
"alias": {
"map": [
["@/atoms/*", "./ui/atoms/"],
["@/components/*", "./components/"],
["@/config/*", "./config/"],
["@/contexts/*", "./contexts/"],
["@/data/*", "./shared/data/"],
["@/graphql/*", "./graphql/"],
["@/hooks/*", "./shared/hooks/"],
["@/i18n", "./next-i18next.config.js"],
["@/lib/*", "./lib/"],
["@/molecules/*", "./ui/molecules/"],
["@/organisms/*", "./ui/organisms/"],
["@/public/*", "./public/"],
["@/styles/*", "./styles/"],
["@/templates/*", "./ui/templates/"],
["@/units/*", "./ui/units/"],
["@/utils/*", "./shared/utils/"]
],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
},
"react": {
"version": "detect"
}
},
"globals": {
"React": true,
// "google": true,
// "mount": true,
// "mountWithRouter": true,
// "shallow": true,
// "shallowWithRouter": true,
// "context": true,
// "expect": true,
// "jsdom": true,
"JSX": true
},
"plugins": ["import", "@typescript-eslint", "react", "react-hooks", "@next/next"],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"consistent-return": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/default": "off",
"import/namespace": "off",
"import/no-cycle": "off",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "error",
"import/prefer-default-export": "off",
"no-underscore-dangle": "off",
"no-undef": "off", // Typescript will not compile still
"no-unused-vars": "off", // Typescript will not compile still
"no-nested-ternary": "off",
"object-curly-newline": "off",
"operator-linebreak": "off",
"quotes": ["error", "single"],
"semi": ["error", "never"]
}
}