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",
|
2022-02-01 21:01:11 +03:00
|
|
|
"plugin:github/typescript",
|
|
|
|
"plugin:import/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)?$"],
|
2021-08-11 15:44:25 +03:00
|
|
|
"i18n-text/no-en": "off",
|
2023-01-18 23:50:03 +03:00
|
|
|
"import/extensions": ["error", {
|
|
|
|
// Allow importing JSON files
|
|
|
|
"json": {}
|
|
|
|
}],
|
2020-09-14 12:49:02 +03:00
|
|
|
"import/no-amd": "error",
|
|
|
|
"import/no-commonjs": "error",
|
|
|
|
"import/no-dynamic-require": "error",
|
2021-08-11 15:44:25 +03:00
|
|
|
// Disable the rule that checks that devDependencies aren't imported since we use a single
|
|
|
|
// linting configuration file for both source and test code.
|
|
|
|
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
|
2020-09-14 12:49:02 +03:00
|
|
|
"import/no-namespace": "off",
|
|
|
|
"import/no-unresolved": "error",
|
|
|
|
"import/no-webpack-loader-syntax": "error",
|
2020-10-01 13:03:30 +03:00
|
|
|
"import/order": ["error", {
|
|
|
|
"alphabetize": {"order": "asc"},
|
|
|
|
"newlines-between": "always"
|
|
|
|
}],
|
2023-02-07 17:09:33 +03:00
|
|
|
"max-len": ["error", {
|
|
|
|
"code": 120,
|
|
|
|
"ignoreUrls": true,
|
|
|
|
"ignoreStrings": true,
|
|
|
|
"ignoreTemplateLiterals": true
|
|
|
|
}],
|
2020-09-14 12:49:02 +03:00
|
|
|
"no-async-foreach/no-async-foreach": "error",
|
|
|
|
"no-console": "off",
|
|
|
|
"no-sequences": "error",
|
2020-11-20 00:38:38 +03:00
|
|
|
"no-shadow": "off",
|
|
|
|
"@typescript-eslint/no-shadow": ["error"],
|
2020-10-01 13:03:30 +03:00
|
|
|
"one-var": ["error", "never"]
|
2020-09-14 12:49:02 +03:00
|
|
|
},
|
|
|
|
"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-var-requires": "off",
|
|
|
|
"@typescript-eslint/prefer-regexp-exec": "off",
|
|
|
|
"@typescript-eslint/require-await": "off",
|
|
|
|
"@typescript-eslint/restrict-template-expressions": "off",
|
2021-08-11 15:44:25 +03:00
|
|
|
"func-style": "off",
|
|
|
|
"sort-imports": "off"
|
2020-09-14 12:49:02 +03:00
|
|
|
}
|
2023-01-18 23:50:03 +03:00
|
|
|
}],
|
|
|
|
"settings": {
|
|
|
|
"import/resolver": {
|
|
|
|
"node": {
|
|
|
|
"moduleDirectory": ["node_modules", "src"]
|
|
|
|
},
|
|
|
|
"typescript": {}
|
|
|
|
}
|
|
|
|
}
|
2020-09-14 12:49:02 +03:00
|
|
|
}
|