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": {
|
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 }],
|
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
|
|
|
],
|
2022-12-02 02:23:57 +00:00
|
|
|
"no-console": "error"
|
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
|
|
|
}
|