File tree Expand file tree Collapse file tree 3 files changed +1794
-1420
lines changed Expand file tree Collapse file tree 3 files changed +1794
-1420
lines changed Original file line number Diff line number Diff line change 1
- const { FlatCompat } = require ( '@eslint/eslintrc' ) ;
1
+ const { nodeConfigs, testConfigs } = require ( '@devpow112/eslint-config' ) ;
2
+ const { defineConfig } = require ( 'eslint/config' ) ;
2
3
const { includeIgnoreFile } = require ( '@eslint/compat' ) ;
3
- const js = require ( '@eslint/js' ) ;
4
- const path = require ( 'node:path' ) ;
4
+ const { resolve } = require ( 'node:path' ) ;
5
5
6
- const gitignorePath = path . resolve ( __dirname , '.gitignore' ) ;
7
- const compat = new FlatCompat ( {
8
- baseDirectory : __dirname ,
9
- recommendedConfig : js . configs . recommended ,
10
- allConfig : js . configs . all
11
- } ) ;
6
+ const gitignorePath = resolve ( __dirname , '.gitignore' ) ;
12
7
13
- module . exports = [
8
+ module . exports = defineConfig ( [
14
9
includeIgnoreFile ( gitignorePath ) ,
15
- ...compat . extends ( '@devpow112/eslint-config/node' )
16
- ] ;
10
+ ...nodeConfigs ,
11
+ ...testConfigs
12
+ ] ) ;
You can’t perform that action at this time.
0 commit comments