2021-03-04 22:34:01 +00:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
"parser": "@typescript-eslint/parser",
|
2021-05-11 01:33:20 +00:00
|
|
|
"parserOptions": { "project": "./tsconfig.dev.json" },
|
2021-03-04 22:34:01 +00:00
|
|
|
"env": { "es6": true },
|
2021-03-22 04:34:13 +00:00
|
|
|
"ignorePatterns": ["node_modules", "build", "coverage", "proto"],
|
2021-03-04 22:34:01 +00:00
|
|
|
"plugins": ["import", "eslint-comments", "functional"],
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:eslint-comments/recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:import/typescript",
|
2021-12-21 01:07:13 +00:00
|
|
|
"plugin:prettier/recommended"
|
2021-03-04 22:34:01 +00:00
|
|
|
],
|
|
|
|
"globals": { "BigInt": true, "console": true, "WebAssembly": true },
|
|
|
|
"rules": {
|
2022-06-22 05:12:14 +00:00
|
|
|
"@typescript-eslint/explicit-function-return-type": [
|
|
|
|
"error",
|
|
|
|
{ "allowExpressions": true }
|
|
|
|
],
|
2021-03-04 22:34:01 +00:00
|
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
|
|
"eslint-comments/disable-enable-pair": [
|
|
|
|
"error",
|
|
|
|
{ "allowWholeFile": true }
|
|
|
|
],
|
|
|
|
"eslint-comments/no-unused-disable": "error",
|
|
|
|
"import/order": [
|
|
|
|
"error",
|
|
|
|
{ "newlines-between": "always", "alphabetize": { "order": "asc" } }
|
|
|
|
],
|
2021-04-13 05:00:47 +00:00
|
|
|
"no-constant-condition": ["error", { "checkLoops": false }],
|
2021-03-04 22:34:01 +00:00
|
|
|
"sort-imports": [
|
|
|
|
"error",
|
|
|
|
{ "ignoreDeclarationSort": true, "ignoreCase": true }
|
2022-09-05 11:28:33 +00:00
|
|
|
],
|
|
|
|
"no-console": "warn"
|
2021-05-03 05:52:58 +00:00
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": ["*.spec.ts", "**/test_utils/*.ts"],
|
|
|
|
"rules": {
|
2022-09-05 11:28:33 +00:00
|
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
|
|
"no-console": "off"
|
2021-05-03 05:52:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2021-03-04 22:34:01 +00:00
|
|
|
}
|