You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
JavaScript
44 lines
1.2 KiB
JavaScript
4 years ago
|
module.exports = {
|
||
|
env: { node: true },
|
||
|
parser: "@typescript-eslint/parser",
|
||
4 years ago
|
plugins: ["@typescript-eslint", "prettier", "with-tsc-error"],
|
||
4 years ago
|
extends: [
|
||
|
"eslint:recommended",
|
||
|
"plugin:@typescript-eslint/recommended",
|
||
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
||
|
"plugin:prettier/recommended",
|
||
|
],
|
||
|
parserOptions: {
|
||
|
sourceType: "module",
|
||
|
ecmaFeatures: {
|
||
|
modules: true,
|
||
|
},
|
||
2 years ago
|
project: [
|
||
|
"./src/back/tsconfig.json",
|
||
|
"./src/front/tsconfig.json",
|
||
|
"./src/scripts/tsconfig.json",
|
||
|
],
|
||
4 years ago
|
},
|
||
|
rules: {
|
||
|
"@typescript-eslint/require-await": 0,
|
||
4 years ago
|
/* "jsdoc/require-description": 2, */
|
||
4 years ago
|
"no-await-in-loop": 2,
|
||
2 years ago
|
"@typescript-eslint/consistent-type-assertions": [1, { assertionStyle: "never" }],
|
||
|
"no-console": 1,
|
||
4 years ago
|
},
|
||
|
settings: { jsdoc: { mode: "typescript" } },
|
||
|
overrides: [
|
||
|
{
|
||
|
files: ["*.subtest.ts", "*.test.ts"],
|
||
|
rules: {
|
||
|
"@typescript-eslint/no-unsafe-member-access": 0,
|
||
|
"prefer-const": 0,
|
||
|
"@typescript-eslint/no-unsafe-call": 0,
|
||
|
"@typescript-eslint/no-unsafe-return": 0,
|
||
|
"@typescript-eslint/no-unsafe-assignment": 0,
|
||
|
"no-await-in-loop": 1, // sometimes it's easier to debug when requests run sequentially
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
};
|