Skip to content

Commit eb7711b

Browse files
committed
updaet linter
1 parent f0290ee commit eb7711b

File tree

5 files changed

+938
-124
lines changed

5 files changed

+938
-124
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 102 deletions
This file was deleted.

.github/workflows/quality-checks.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ jobs:
2828
node-version: 22
2929
cache: 'npm'
3030

31-
- name: Remove Husky Prepare Script
32-
run: npm pkg delete scripts.prepare
33-
3431
- name: Install Dependencies
3532
run: npm ci
3633

@@ -48,12 +45,12 @@ jobs:
4845
node-version: 22
4946
cache: 'npm'
5047

51-
- name: Remove Husky Prepare Script
52-
run: npm pkg delete scripts.prepare
53-
5448
- name: Install Dependencies
5549
run: npm ci
5650

51+
- name: Run Type Check
52+
run: npm run typecheck
53+
5754
- name: Run ESLint
5855
run: npm run lint
5956

@@ -63,9 +60,6 @@ jobs:
6360
- name: Run Markdown Lint Check
6461
run: npm run lint:md
6562

66-
- name: Run Type Check
67-
run: npm run typecheck
68-
6963
build:
7064
needs: quality
7165
name: Build
@@ -80,9 +74,6 @@ jobs:
8074
node-version: 22
8175
cache: 'npm'
8276

83-
- name: Remove Husky Prepare Script
84-
run: npm pkg delete scripts.prepare
85-
8677
- name: Install Dependencies
8778
run: npm ci
8879

eslint.config.mjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,25 @@ export default defineConfig([
124124
'jsx-a11y/no-unescaped-entities': 'off',
125125
},
126126
},
127+
{
128+
files: ['**/*.mdx', '**/*.md'],
129+
130+
extends: compat.extends('plugin:mdx/recommended'),
131+
132+
languageOptions: {
133+
ecmaVersion: 'latest',
134+
sourceType: 'module',
135+
},
136+
137+
settings: {
138+
'mdx/code-blocks': true,
139+
'mdx/language-mapper': {},
140+
},
141+
142+
rules: {
143+
'mdx/remark': 'off',
144+
},
145+
},
127146
{
128147
files: ['**/*.ts', '**/*.tsx'],
129148

0 commit comments

Comments
 (0)