2020-09-14 12:32:24 +03:00
|
|
|
|
|
|
|
{
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
2020-09-14 12:49:02 +03:00
|
|
|
"project": "./tsconfig.json"
|
2020-09-14 12:32:24 +03:00
|
|
|
},
|
|
|
|
"plugins": ["@typescript-eslint", "filenames", "github", "import", "no-async-foreach"],
|
|
|
|
"extends": [
|
2020-09-14 12:49:02 +03:00
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
|
|
"plugin:github/recommended",
|
|
|
|
"plugin:github/typescript"
|
2020-09-14 12:32:24 +03:00
|
|
|
],
|
|
|
|
"rules": {
|
2020-09-14 12:49:02 +03:00
|
|
|
"filenames/match-regex": ["error", "^[a-z0-9-]+(\\.test)?$"],
|
|
|
|
"import/extensions": "error",
|
|
|
|
"import/no-amd": "error",
|
|
|
|
"import/no-commonjs": "error",
|
|
|
|
"import/no-dynamic-require": "error",
|
|
|
|
"import/no-extraneous-dependencies": ["error", {"devDependencies": false}],
|
|
|
|
"import/no-namespace": "off",
|
|
|
|
"import/no-unresolved": "error",
|
|
|
|
"import/no-webpack-loader-syntax": "error",
|
|
|
|
"no-async-foreach/no-async-foreach": "error",
|
|
|
|
"no-console": "off",
|
|
|
|
"no-sequences": "error",
|
|
|
|
"one-var": ["error", "never"],
|
|
|
|
"sort-imports": ["error", { "allowSeparatedGroups": true }]
|
|
|
|
},
|
|
|
|
"overrides": [{
|
|
|
|
// "temporarily downgraded during transition to eslint
|
|
|
|
"files": "**",
|
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/ban-types": "off",
|
|
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
|
|
"@typescript-eslint/no-unsafe-call": "off",
|
|
|
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
|
|
"@typescript-eslint/no-unsafe-return": "off",
|
|
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
|
|
"@typescript-eslint/prefer-regexp-exec": "off",
|
|
|
|
"@typescript-eslint/require-await": "off",
|
|
|
|
"@typescript-eslint/restrict-template-expressions": "off",
|
|
|
|
"func-style": "off",
|
|
|
|
"github/no-then": "off",
|
|
|
|
"import/no-extraneous-dependencies": "off",
|
2020-09-29 16:43:37 +03:00
|
|
|
"no-shadow": "off"
|
2020-09-14 12:49:02 +03:00
|
|
|
}
|
|
|
|
}]
|
|
|
|
}
|