Skip to content

Commit dc8f287

Browse files
committed
add @eslint/js
1 parent df3e044 commit dc8f287

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

eslint.config.mjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import noticePlugin from "eslint-plugin-notice";
1818
import importPlugin from "eslint-plugin-import";
1919
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
20+
import eslint from '@eslint/js';
2021
import tseslint from 'typescript-eslint';
2122
// import eslintPluginImport from 'eslint-plugin-import';
2223
import * as eslintPluginMdx from 'eslint-plugin-mdx'
@@ -68,11 +69,9 @@ export default [
6869
},
6970

7071
// typescript
72+
{ ...eslint.configs.recommended, files: ['**/*.ts', '**/*.tsx'] },
73+
...tseslint.configs.recommended.map(conf => ({ ...conf, files: ['**/*.ts', '**/*.tsx'] })),
7174
/** @type {import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigFile} */
72-
...tseslint.configs.recommended.map(conf => ({
73-
...conf,
74-
files: ['**/*.ts', '**/*.tsx'],
75-
})),
7675
{
7776
files: ['**/*.ts', '**/*.tsx'],
7877
// ...eslintPluginImport.configs.recommended, // To uncomment when it will support flat config

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"vanilla-cookieconsent": "^2.9.2"
3737
},
3838
"devDependencies": {
39+
"@eslint/js": "^9.0.0",
3940
"@types/chroma-js": "^2.4.4",
4041
"@types/react": "^18.2.74",
4142
"babel-plugin-styled-components": "^2.1.4",

0 commit comments

Comments
 (0)