-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (39 loc) · 1.09 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
38
39
module.exports = {
root: true,
env: { node: true, es2020: true },
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2020,
project: ["./tsconfig.json"],
sourceType: "module",
tsConfigRootDir: __dirname,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended",
"plugin:node/recommended",
"plugin:jsdoc/recommended",
],
plugins: ["@typescript-eslint", "node", "jsdoc"],
ignorePatterns: [],
rules: {
"comma-dangle": ["error", "always-multiline"],
"dot-notation": ["error"],
"node/no-unsupported-features/es-syntax": ["error", { version: ">=14.0.0", ignores: ["modules"] }],
"@typescript-eslint/no-unused-vars": [
"warn",
{
vars: "all",
args: "all",
argsIgnorePattern: "^_",
},
],
},
settings: {
jsdoc: { mode: "typescript" },
node: { tryExtensions: [".js", ".ts"] },
},
ignorePatterns: ["coverage", "dist", ".eslintrc.js", "src/NodeJS/Generated/*"],
};