Skip to content

Commit be65bb2

Browse files
committed
refactor: fix eslint issues
1 parent cdc0f2e commit be65bb2

File tree

76 files changed

+22764
-22429
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+22764
-22429
lines changed

.gitattributes

-1
This file was deleted.

docs/components/Community/CommunityBlock.astro

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
// eslint-disable-next-line import-x/namespace
32
import { execa } from 'execa'
43
54
import Typography from '../Typography.astro'

docs/components/Icon.astro

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
// eslint-disable-next-line import-x/namespace
32
import { optimize } from 'svgo'
43
54
interface Props {

docs/pages/rules/index.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ let rules = await getCollection('rules')
2424
description="Explore our extensive list of ESLint Plugin Perfectionist rules to enforce coding standards and improve code quality. Learn how each rule can help you maintain a consistent and error-free codebase."
2525
path={[
2626
{
27-
name: 'Rules',
2827
href: '/rules',
28+
name: 'Rules',
2929
},
3030
]}
3131
title="Rules"

docs/utils/shiki-theme.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// eslint-disable-next-line import-x/named
21
import { createCssVariablesTheme } from 'shiki'
32

43
export let colorTheme = createCssVariablesTheme({

eslint.config.js

-41
This file was deleted.

eslint.config.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type { Linter } from 'eslint'
2+
3+
import eslintPlugin from 'eslint-plugin-eslint-plugin/configs/recommended'
4+
import eslintConfig from '@azat-io/eslint-config'
5+
6+
export default eslintConfig({
7+
extends: eslintPlugin,
8+
perfectionist: true,
9+
typescript: true,
10+
svelte: true,
11+
vitest: true,
12+
astro: true,
13+
node: true,
14+
}) satisfies Promise<Linter.Config[]>

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040
"test:astro": "astro check",
4141
"test:css": "stylelint \"docs/**/*.{astro,svelte,css}\"",
4242
"test:format": "prettier --check \"**/*.{astro,svelte,js,ts,json,md,yml}\"",
43-
"test:js": "eslint .",
43+
"test:js": "eslint --flag unstable_ts_config .",
4444
"test:spelling": "cspell \"**/*\"",
4545
"test:svelte": "svelte-check",
4646
"test:types": "tsc --noEmit --pretty",
4747
"test:unit": "vitest --run --coverage"
4848
},
4949
"dependencies": {
50-
"@azat-io/eslint-config": "^2.0.0",
50+
"@azat-io/eslint-config": "^2.1.2",
5151
"@typescript-eslint/types": "^8.14.0",
5252
"@typescript-eslint/utils": "^8.14.0",
5353
"natural-orderby": "^5.0.0"
@@ -72,7 +72,7 @@
7272
"@typescript-eslint/rule-tester": "^8.14.0",
7373
"@typescript-eslint/types": "^6.13.0",
7474
"@vercel/og": "^0.6.3",
75-
"@vitest/coverage-v8": "^2.1.4",
75+
"@vitest/coverage-v8": "^2.1.5",
7676
"astro": "^4.16.10",
7777
"browserslist": "^4.24.2",
7878
"changelogen": "^0.5.7",
@@ -109,7 +109,7 @@
109109
"vite": "^5.4.10",
110110
"vite-plugin-dts": "4.3.0",
111111
"vite-plugin-lightningcss": "^0.0.5",
112-
"vitest": "^2.1.4"
112+
"vitest": "^2.1.5"
113113
},
114114
"peerDependencies": {
115115
"eslint": ">=8.0.0"

0 commit comments

Comments
 (0)