Files
torrentio/src/node/consumer/.eslintrc
iPromKnight 4bc4b7958f switched to yarn, and started adding tests
Added tests for process job service so far... its a start..
2024-02-11 21:45:17 +00:00

84 lines
1.8 KiB
Plaintext

{
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"./tsconfig.json"
]
},
"plugins": [
"@typescript-eslint",
"import",
"import-helpers"
],
"rules": {
"default-case": "off",
"import/no-duplicates": "error",
"import/no-extraneous-dependencies": "error",
"import/order": "off",
"import-helpers/order-imports": [
"warn",
{
"alphabetize": {
"order": "asc"
}
}
],
"lines-between-class-members": [
"error",
"always",
{
"exceptAfterSingleLine": true
}
],
"no-continue": "off",
"no-param-reassign": "off",
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"no-restricted-syntax": "off",
"no-unused-expressions": [
"off",
{
"allowShortCircuit": true
}
],
"no-unused-vars": "off",
"no-use-before-define": "off",
"one-var": [
"error",
{
"uninitialized": "consecutive"
}
],
"prefer-destructuring": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/consistent-type-assertions": [
"error",
{
"assertionStyle": "as",
"objectLiteralTypeAssertions": "never"
}
]
},
"overrides": [
{
"files": [
"*.test.ts"
],
"rules": {
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off"
}
}
]
}