forked from natrixofficial/npvdkgrs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
37 lines (37 loc) · 1.04 KB
/
.eslintrc.js
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
// eslint-disable-next-line no-undef
module.exports = {
env: {
node: true,
jest: true,
},
parser: "@typescript-eslint/parser",
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
ecmaFeatures: {
impliedStrict: true,
experimentalObjectRestSpread: true,
},
},
rules: {
"max-len": ["error", { code: 140, tabWidth: 2 }],
"semi": ["error", "always"],
"quotes": ["error", "double"],
"no-var": "error",
},
overrides: [
{
// enable the rule specifically for TypeScript files
files: ["*.ts", "*.tsx"],
rules: {
"@typescript-eslint/explicit-module-boundary-types": ["error"],
"@typescript-eslint/explicit-function-return-type": ["error"],
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-inferrable-types": ["warn", { ignoreParameters: true }],
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/lines-between-class-members": ["error", "always"],
},
},
],
};