Skip to content

Commit bd53ff1

Browse files
committed
build: use native type stripping for eslint run
1 parent 687bb37 commit bd53ff1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
- uses: actions/setup-node@v4
3333
with:
3434
node-version: 'lts/*'
35+
check-latest: true
3536
- run: npm install
3637
- run: npm run lint
3738

eslint.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { FlatCompat } from '@eslint/eslintrc';
55
import { defineConfig } from 'eslint/config';
66
import markdown from 'eslint-plugin-markdown';
77
import pluginN from 'eslint-plugin-n';
8-
import eslintPlugin from './lib/index.js';
8+
import eslintPlugin from './lib/index.ts';
99

1010
const dirname = path.dirname(fileURLToPath(import.meta.url));
1111
const compat = new FlatCompat({

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"lint": "npm-run-all --continue-on-error --aggregate-output --parallel lint:*",
1616
"lint:docs": "markdownlint \"**/*.md\"",
1717
"lint:eslint-docs": "npm-run-all -s build \"update:eslint-docs -- --check\"",
18-
"lint:js": "eslint --cache --ignore-pattern \"**/*.md\" .",
19-
"lint:js-docs": "eslint --no-inline-config \"**/*.md\"",
18+
"lint:js": "eslint --cache --ignore-pattern \"**/*.md\" --flag unstable_native_nodejs_ts_config",
19+
"lint:js-docs": "eslint --no-inline-config \"**/*.md\" --flag unstable_native_nodejs_ts_config",
2020
"lint:package-json": "npmPkgJsonLint .",
2121
"release": "release-it",
2222
"test": "vitest run --coverage",

0 commit comments

Comments
 (0)