mirror of
https://github.com/cpvalente/ontime.git
synced 2026-07-26 10:38:55 +00:00
54 lines
1.2 KiB
Plaintext
54 lines
1.2 KiB
Plaintext
{
|
|
"root": true,
|
|
"parserOptions": {
|
|
"ecmaVersion": 2020
|
|
},
|
|
"env": {
|
|
"es6": true,
|
|
"jest": true
|
|
},
|
|
"parser": "@typescript-eslint/parser",
|
|
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
|
|
"plugins": ["@typescript-eslint", "prettier"],
|
|
"overrides": [
|
|
{
|
|
"files": ["e2e/**/**.spec.ts", "e2e/**/**.test.ts"],
|
|
"extends": ["plugin:playwright/playwright-test"]
|
|
}
|
|
],
|
|
"rules": {
|
|
"no-useless-concat": "warn",
|
|
"prefer-template": "warn",
|
|
"no-throw-literal": "error",
|
|
"no-console": [
|
|
"warn",
|
|
{
|
|
"allow": ["warn", "error"]
|
|
}
|
|
],
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"patterns": ["ontime-types/src/*", "ontime-utils/src/*"]
|
|
}
|
|
],
|
|
"@typescript-eslint/no-non-null-assertion": "warn",
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
"argsIgnorePattern": "^_",
|
|
"caughtErrorsIgnorePattern": "^_",
|
|
"destructuredArrayIgnorePattern": "^_",
|
|
"varsIgnorePattern": "^_"
|
|
}
|
|
],
|
|
"prettier/prettier": [
|
|
"warn",
|
|
{
|
|
"endOfLine": "auto"
|
|
}
|
|
]
|
|
}
|
|
}
|