2021-03-04 22:34:01 +00:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"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": {
|
2023-02-28 03:55:17 +00:00
|
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
2021-03-04 22:34:01 +00:00
|
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
|
|
"eslint-comments/disable-enable-pair": [
|
|
|
|
"error",
|
2023-02-28 03:55:17 +00:00
|
|
|
{
|
|
|
|
"allowWholeFile": true
|
|
|
|
}
|
2021-03-04 22:34:01 +00:00
|
|
|
],
|
|
|
|
"eslint-comments/no-unused-disable": "error",
|
|
|
|
"import/order": [
|
|
|
|
"error",
|
2023-02-28 03:55:17 +00:00
|
|
|
{
|
|
|
|
"newlines-between": "always",
|
|
|
|
"alphabetize": {
|
|
|
|
"order": "asc"
|
|
|
|
}
|
|
|
|
}
|
2021-03-04 22:34:01 +00:00
|
|
|
],
|
2021-04-13 05:00:47 +00:00
|
|
|
"no-constant-condition": ["error", { "checkLoops": false }],
|
2023-01-19 21:49:11 +00:00
|
|
|
"import/no-extraneous-dependencies": [
|
|
|
|
"error",
|
2023-01-27 01:11:10 +00:00
|
|
|
{
|
|
|
|
"devDependencies": [
|
|
|
|
"**/*.test.ts",
|
|
|
|
"**/*.spec.ts",
|
|
|
|
"**/tests/**",
|
|
|
|
"**/rollup.config.js",
|
|
|
|
"**/.eslintrc.cjs",
|
|
|
|
"**/karma.conf.cjs"
|
|
|
|
]
|
|
|
|
}
|
2023-01-19 21:49:11 +00:00
|
|
|
],
|
2021-03-04 22:34:01 +00:00
|
|
|
"sort-imports": [
|
|
|
|
"error",
|
|
|
|
{ "ignoreDeclarationSort": true, "ignoreCase": true }
|
2022-09-05 11:28:33 +00:00
|
|
|
],
|
2023-07-24 10:34:24 +00:00
|
|
|
"no-console": "error",
|
|
|
|
"@typescript-eslint/no-floating-promises": "error",
|
|
|
|
"@typescript-eslint/await-thenable": "error",
|
|
|
|
"@typescript-eslint/no-misused-promises": "error"
|
2021-05-03 05:52:58 +00:00
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
2023-04-03 10:52:27 +00:00
|
|
|
"files": ["*.spec.ts", "**/test_utils/*.ts", "*.js", "*.cjs"],
|
2021-05-03 05:52:58 +00:00
|
|
|
"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
|
|
|
}
|
2023-02-28 03:55:17 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": ["*.ts", "*.mts", "*.cts", "*.tsx"],
|
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/explicit-function-return-type": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"allowExpressions": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2021-05-03 05:52:58 +00:00
|
|
|
}
|
|
|
|
]
|
2021-03-04 22:34:01 +00:00
|
|
|
}
|