forked from MOIMOB/drinkable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
42 lines (41 loc) · 1.34 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/stylistic",
"prettier"
],
"rules": {
"@typescript-eslint/consistent-type-definitions": ["warn", "type"],
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-inferrable-types": "warn",
"@typescript-eslint/no-extraneous-class": "warn",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
"eqeqeq": ["error", "always", { "null": "ignore" }]
},
"overrides": [
{
"files": ["cypress/**/*.ts"],
"parserOptions": {
"project": ["cypress/tsconfig.json"]
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:cypress/recommended"]
}
],
"parserOptions": {
"ecmaVersion": 2023,
"sourceType": "module",
"project": "./tsconfig.json",
"tsconfigRootDir": "."
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"ignorePatterns": ["webpack.config.js", "postcss.config.js", "tailwind.config.js"]
}