Skip to content

Commit 4dbb1bd

Browse files
committed
fix: обновление eslint.config.js и конфигураций QLty для соответствия тестам
1 parent e8fe7f0 commit 4dbb1bd

31 files changed

+910
-545
lines changed

.eslintignore

Whitespace-only changes.

.qlty/qlty.toml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,6 @@ name = "actionlint"
7070
[[plugin]]
7171
name = "checkov"
7272

73-
[[plugin]]
74-
name = "eslint"
75-
version = "9.26.0"
76-
package_file = "package.json"
77-
package_filters = ["eslint"]
78-
7973
[[plugin]]
8074
name = "markdownlint"
8175
mode = "comment"
@@ -84,9 +78,6 @@ config = { "MD013" = false }
8478
[[plugin]]
8579
name = "osv-scanner"
8680

87-
[[plugin]]
88-
name = "prettier"
89-
9081
[[plugin]]
9182
name = "ripgrep"
9283
mode = "comment"

eslint.config.js

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
1-
import js from "@eslint/js";
2-
import globals from "globals";
3-
import { defineConfig } from "eslint/config";
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import { defineConfig } from 'eslint/config'
4+
import { includeIgnoreFile } from '@eslint/compat'
5+
import stylistic from '@stylistic/eslint-plugin'
6+
import { fileURLToPath } from 'url'
7+
8+
const gitIgnorePath = fileURLToPath(new URL('.gitignore', import.meta.url))
9+
const eslintIgnorePath = fileURLToPath(
10+
new URL('.eslintignore', import.meta.url),
11+
)
412

513
export default defineConfig([
14+
includeIgnoreFile(gitIgnorePath),
15+
includeIgnoreFile(eslintIgnorePath),
16+
stylistic.configs.recommended,
617
{
7-
ignores: ["node_modules/**", "dist/**", "src/dist/**", "__fixtures__/**"],
8-
},
9-
{
10-
files: ["**/*.{js,mjs,cjs}"],
18+
files: ['**/*.{js,mjs,cjs}'],
1119
plugins: { js },
12-
languageOptions: {
13-
sourceType: "module",
14-
globals: {
15-
...globals.browser,
16-
},
17-
},
18-
extends: ["js/recommended"],
20+
extends: ['js/recommended'],
1921
},
2022
{
21-
files: ["vite.config.js"],
22-
languageOptions: {
23-
sourceType: "module",
24-
globals: {
25-
__dirname: "readonly",
26-
},
27-
},
23+
files: ['**/*.{js,mjs,cjs}'],
24+
languageOptions: { globals: globals.browser },
2825
},
29-
]);
26+
])

0 commit comments

Comments
 (0)