Skip to content

Commit

Permalink
chore: upgrade dependencies and migrate to eslint flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
dukeluo committed May 31, 2024
1 parent 934087d commit 789ac00
Show file tree
Hide file tree
Showing 5 changed files with 833 additions and 1,276 deletions.
37 changes: 0 additions & 37 deletions .eslintrc.json

This file was deleted.

28 changes: 28 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from '@eslint/js';
import eslintPlugin from 'eslint-plugin-eslint-plugin';
import jsdoc from 'eslint-plugin-jsdoc';
import node from 'eslint-plugin-n';
import prettier from 'eslint-plugin-prettier';

export default [
{
ignores: ['dist'],
},
js.configs.recommended,
eslintPlugin.configs['flat/recommended'],
jsdoc.configs['flat/recommended'],
node.configs['flat/recommended'],
{
plugins: {
prettier: prettier,
},
rules: {
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
},
},
];
4 changes: 2 additions & 2 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"checkJs": true,
"target": "es2017",
"module": "node16"
"target": "es2022",
"module": "nodenext"
},
"include": ["lib", "tests"]
}
Loading

0 comments on commit 789ac00

Please sign in to comment.