forked from siemah/nodejs-password
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
62 lines (62 loc) · 1.73 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"node": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"prettier"
],
"plugins": ["prettier", "@typescript-eslint", "eslint-plugin-node", "import"],
"rules": {
"prettier/prettier": [
"error",
{
"tabWidth": 2,
"useTabs": false,
"jsxSingleQuote": true,
"singleQuote": true,
"quoteProps": "as-needed",
"bracketSameLine": false,
"trailingComma": "all",
"bracketSpacing": true,
"semi": false,
"arrowParens": "always"
}
],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"semi": ["error", "never"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-shadow": "off",
"curly": "error",
"no-multiple-empty-lines": ["error", { "max": 0 }],
"eqeqeq": ["error", "always"],
"no-else-return": "error",
"no-implicit-coercion": "error",
"import/prefer-default-export": "off",
"no-await-in-loop": "off",
"no-continue": "off",
"no-alert": "off",
"no-restricted-syntax": "off",
"no-param-reassign": "off",
"class-methods-use-this": "off",
"@typescript-eslint/no-unused-expressions": "off",
"no-underscore-dangle": "off",
"no-console": "off",
"import/no-extraneous-dependencies": "off",
"import/no-cycle": "off"
}
}