3d6ed22e5f
Summary: Ref T2496 Stworzenie module starter Reviewers: kuba-orlik Reviewed By: kuba-orlik Subscribers: kuba-orlik Maniphest Tasks: T2496, T249 Differential Revision: https://hub.sealcode.org/D1181
38 lines
1017 B
JavaScript
38 lines
1017 B
JavaScript
module.exports = {
|
|
env: { node: true },
|
|
parser: "@typescript-eslint/parser",
|
|
plugins: ["@typescript-eslint", "prettier"],
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
"plugin:prettier/recommended",
|
|
],
|
|
ignorePatterns: [".eslintrc.js", "src/**/*.test.ts", "@types/*"],
|
|
parserOptions: {
|
|
sourceType: "module",
|
|
ecmaFeatures: {
|
|
modules: true,
|
|
},
|
|
project: ["./tsconfig.json"],
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/require-await": 0,
|
|
"no-await-in-loop": 2,
|
|
},
|
|
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
|
|
},
|
|
},
|
|
],
|
|
};
|