File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ const {
2+ defineConfig,
3+ globalIgnores,
4+ } = require ( "eslint/config" ) ;
5+
6+ const globals = require ( "globals" ) ;
7+ const js = require ( "@eslint/js" ) ;
8+
9+ const {
10+ FlatCompat,
11+ } = require ( "@eslint/eslintrc" ) ;
12+
13+ const compat = new FlatCompat ( {
14+ baseDirectory : __dirname ,
15+ recommendedConfig : js . configs . recommended ,
16+ allConfig : js . configs . all
17+ } ) ;
18+
19+ module . exports = defineConfig ( [ globalIgnores ( [ "**/dist/" ] ) , {
20+ extends : compat . extends ( "eslint:recommended" ) ,
21+
22+ languageOptions : {
23+ globals : {
24+ ...globals . commonjs ,
25+ ...globals . jest ,
26+ ...globals . node ,
27+ Atomics : "readonly" ,
28+ SharedArrayBuffer : "readonly" ,
29+ } ,
30+
31+ ecmaVersion : 2020 ,
32+ sourceType : "commonjs" ,
33+ } ,
34+
35+ rules : { } ,
36+ } ] ) ;
You can’t perform that action at this time.
0 commit comments