Skip to content

Commit 5154271

Browse files
committed
Migrate ESLint config from TypeScript to JavaScript
Replace eslint.config.ts with eslint.config.js and update dependencies.
1 parent e74a3e7 commit 5154271

File tree

3 files changed

+229
-207
lines changed

3 files changed

+229
-207
lines changed

eslint.config.ts renamed to eslint.config.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
// @ts-check
2+
import { defineConfig } from 'eslint/config';
13
import tseslint from 'typescript-eslint';
24

3-
export default tseslint.config(
4-
...tseslint.configs.strict,
5-
...tseslint.configs.stylistic,
5+
export default defineConfig(
6+
tseslint.configs.strict,
7+
tseslint.configs.stylistic,
68
{
79
files: ['**/*.ts'],
810
languageOptions: {
911
ecmaVersion: 2021,
1012
sourceType: 'module',
1113
globals: {
14+
process: true
1215
},
1316
parserOptions: {
1417
project: './tsconfig.json',

0 commit comments

Comments
 (0)