2021-03-04 22:34:01 +00:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
"parser": "@typescript-eslint/parser",
|
2023-08-16 14:48:13 +00:00
|
|
|
"parserOptions": {
|
|
|
|
"project": ["./tsconfig.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": {
|
2023-08-17 11:54:38 +00:00
|
|
|
"prettier/prettier": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"trailingComma": "none"
|
|
|
|
}
|
|
|
|
],
|
2023-08-16 14:48:13 +00:00
|
|
|
"comma-dangle": ["error", "never"],
|
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",
|
2023-08-11 13:14:02 +00:00
|
|
|
"@typescript-eslint/no-misused-promises": "error",
|
|
|
|
"@typescript-eslint/no-explicit-any": "warn"
|
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"],
|
2023-08-16 14:48:13 +00:00
|
|
|
"env": {
|
|
|
|
"node": true
|
|
|
|
},
|
2021-05-03 05:52:58 +00:00
|
|
|
"rules": {
|
2022-09-05 11:28:33 +00:00
|
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
2023-08-11 13:14:02 +00:00
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
2023-08-16 14:48:13 +00:00
|
|
|
"no-console": "off",
|
|
|
|
"import/no-extraneous-dependencies": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"devDependencies": true
|
|
|
|
}
|
|
|
|
]
|
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
|
|
|
}
|