forked from SkyCryptWebsite/SkyCrypt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
30 lines (30 loc) · 1.07 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
{
"extends": ["eslint:recommended", "plugin:import/recommended", "prettier"],
"plugins": ["deprecation", "@typescript-eslint"],
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"project": "./tsconfig.json"
},
"rules": {
"curly": ["warn", "multi-line", "consistent"],
"no-unused-vars": ["error", { "args": "none" }],
"prefer-const": ["warn", { "destructuring": "all" }],
"no-constant-condition": ["error", { "checkLoops": false }],
"import/extensions": ["warn", "always", { "ts": "never" }],
"deprecation/deprecation": "warn",
"no-throw-literal": "error",
"@typescript-eslint/naming-convention": [
"warn",
{ "selector": "variableLike", "format": ["camelCase"] },
{ "selector": "variable", "modifiers": ["const"], "format": ["camelCase", "UPPER_CASE"] },
{ "selector": "variable", "modifiers": ["const", "exported"], "format": ["UPPER_CASE"] },
{ "selector": "typeLike", "format": ["PascalCase"] }
]
}
}