Skip to content

Commit b915d45

Browse files
committed
deps: eslint v8 -> v9
1 parent c0df621 commit b915d45

6 files changed

Lines changed: 292 additions & 263 deletions

File tree

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/index.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

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

eslint.config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
const js = require('@eslint/js');
2+
const { FlatCompat } = require('@eslint/eslintrc');
3+
const globals = require('globals');
4+
5+
const compat = new FlatCompat({
6+
baseDirectory: __dirname,
7+
recommendedConfig: js.configs.recommended,
8+
allConfig: js.configs.all,
9+
});
10+
11+
module.exports = [
12+
{
13+
ignores: ['**/dist/'],
14+
},
15+
...compat.extends('eslint:recommended', 'prettier'),
16+
{
17+
languageOptions: {
18+
globals: {
19+
...globals.node,
20+
...globals.jest,
21+
},
22+
23+
ecmaVersion: 2018,
24+
sourceType: 'commonjs',
25+
},
26+
},
27+
];

0 commit comments

Comments
 (0)