status-web-archive/packages/status-communities/.eslintrc.json

43 lines
1.2 KiB
JSON
Raw Normal View History

2021-09-14 02:50:33 +00:00
{
"root": true,
"parser": "@typescript-eslint/parser",
2021-09-14 03:49:42 +00:00
"parserOptions": { "project": "./tsconfig.json" },
2021-09-14 02:50:33 +00:00
"env": { "es6": true },
2021-09-14 03:49:42 +00:00
"ignorePatterns": ["node_modules", "dist", "coverage", "proto"],
2021-09-14 02:50:33 +00:00
"plugins": ["import", "eslint-comments", "functional"],
"extends": [
"eslint:recommended",
"plugin:eslint-comments/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
2021-09-14 03:49:42 +00:00
"prettier"
2021-09-14 02:50:33 +00:00
],
"globals": { "BigInt": true, "console": true, "WebAssembly": true },
"rules": {
2021-09-14 03:49:42 +00:00
"@typescript-eslint/explicit-function-return-type": ["warn"],
2021-09-14 02:50:33 +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" } }
],
"no-constant-condition": ["error", { "checkLoops": false }],
"sort-imports": [
"error",
{ "ignoreDeclarationSort": true, "ignoreCase": true }
]
},
"overrides": [
{
"files": ["*.spec.ts", "**/test_utils/*.ts"],
"rules": {
"@typescript-eslint/no-non-null-assertion": "off"
}
}
]
}