player/.eslintrc.json
МИН 1c568728b5
Some checks failed
CI / Lint (pull_request) Failing after 56s
CI / Build (pull_request) Successful in 1m41s
CI / Secret scan (pull_request) Successful in 2m32s
CI / PR size check (pull_request) Successful in 6s
CI / Deploy to S1 + S2 (pull_request) Has been skipped
fix(ci): убрать flat eslint.config.js (несовместим с eslint 8.57) — вернуть .eslintrc.json
CI Lint падал: ERR_MODULE_NOT_FOUND eslint-plugin-react-refresh + flat-config
(defineConfig/configs.flat) — это API eslint 9, а в lock eslint 8.57.1.
У студии (lint=success) рабочая схема — legacy .eslintrc.json. Привёл плеер
к ней: удалён eslint.config.js, .eslintrc.json дополнен правилами движка,
lint-скрипт с --ext .js,.jsx.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-30 22:13:55 +03:00

51 lines
1.1 KiB
JSON

{
"root": true,
"env": {
"browser": true,
"es2022": true,
"node": true,
"worker": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"rules": {
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"no-console": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/display-name": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"no-eval": "error",
"no-new-func": "error",
"no-implied-eval": "error",
"no-empty": "off",
"react/no-unescaped-entities": "off",
"no-useless-catch": "warn",
"no-constant-condition": ["warn", { "checkLoops": false }],
"no-fallthrough": "warn"
},
"ignorePatterns": [
"build/",
"dist/",
"node_modules/",
"public/kubikon-assets/",
"*.config.js"
]
}