forked from nc-minh/be-tiktok
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
46 lines (46 loc) · 1.11 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/extensions": ["off", "never"],
"import/no-extraneous-dependencies": ["off", "never"],
"import/no-unresolved": 0,
"import/prefer-default-export": "off",
"comma-dangle": 0,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", {
"vars": "all",
"args": "none",
"ignoreRestSiblings": false
}],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": ["camelCase", "UPPER_CASE", "snake_case", "PascalCase"],
"leadingUnderscore": "allow"
}
],
"max-len": ["error", {
"ignoreComments": true,
"code": 120,
"tabWidth": 2,
"ignoreStrings": true
}
],
"operator-linebreak": "off"
}
}