CI / Lint & Test (push) Canceled after 0s
- .agent/: контекст, запросы, роадмап, задачи, шаблоны и протоколы - заготовка тестовой инфраструктуры: vitest, eslint, prettier, ci-workflow
50 lines
1.1 KiB
JSON
50 lines
1.1 KiB
JSON
{
|
|
"root": true,
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": 2022,
|
|
"sourceType": "module",
|
|
"project": "./tsconfig.json"
|
|
},
|
|
"plugins": ["@typescript-eslint"],
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"prettier"
|
|
],
|
|
"env": {
|
|
"browser": true,
|
|
"es2022": true,
|
|
"node": true
|
|
},
|
|
"ignorePatterns": [
|
|
"node_modules/",
|
|
"main.js",
|
|
"*.config.mjs",
|
|
"*.config.js",
|
|
"*.config.cjs"
|
|
],
|
|
"rules": {
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{
|
|
"argsIgnorePattern": "^_",
|
|
"varsIgnorePattern": "^_",
|
|
"caughtErrorsIgnorePattern": "^_"
|
|
}
|
|
],
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
"@typescript-eslint/no-non-null-assertion": "warn",
|
|
"@typescript-eslint/ban-ts-comment": "warn",
|
|
"@typescript-eslint/ban-types": "warn",
|
|
"@typescript-eslint/no-empty-function": "warn",
|
|
"no-empty": ["warn", { "allowEmptyCatch": true }],
|
|
"no-console": "off",
|
|
"prefer-const": "warn",
|
|
"eqeqeq": ["warn", "smart"],
|
|
"no-var": "warn",
|
|
"no-debugger": "warn"
|
|
}
|
|
}
|