File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Original file line number Diff line number Diff line change 1
1
const globals = require ( 'globals' )
2
2
const github = require ( '../../plugin' )
3
3
const importPlugin = require ( 'eslint-plugin-import' )
4
- const escompatPlugin = require ( 'eslint-plugin-escompat' )
4
+ const escompat = require ( 'eslint-plugin-escompat' )
5
5
const { fixupPluginRules} = require ( '@eslint/compat' )
6
6
7
7
module . exports = {
8
- ...escompatPlugin . configs [ 'flat/recommended' ] ,
8
+ ...escompat . configs [ 'flat/recommended' ] ,
9
9
languageOptions : {
10
10
globals : {
11
11
...globals . browser ,
12
12
} ,
13
13
} ,
14
- plugins : { importPlugin, escompatPlugin , github : fixupPluginRules ( github ) } ,
14
+ plugins : { importPlugin, escompat , github : fixupPluginRules ( github ) } ,
15
15
rules : {
16
- 'escompatPlugin /no-dynamic-imports' : 'off' ,
16
+ 'escompat /no-dynamic-imports' : 'off' ,
17
17
'github/async-currenttarget' : 'error' ,
18
18
'github/async-preventdefault' : 'error' ,
19
19
'github/get-attribute' : 'error' ,
Original file line number Diff line number Diff line change 1
1
const eslint = require ( '@eslint/js' )
2
2
const tseslint = require ( 'typescript-eslint' )
3
- const escompatPlugin = require ( 'eslint-plugin-escompat' )
3
+ const escompat = require ( 'eslint-plugin-escompat' )
4
4
const github = require ( '../../plugin' )
5
5
const { fixupPluginRules} = require ( '@eslint/compat' )
6
6
7
- module . exports = tseslint . config ( eslint . configs . recommended , ...tseslint . configs . recommended , {
7
+ module . exports = tseslint . config ( eslint . configs . recommended , ...tseslint . configs . recommended , ... escompat . configs [ 'flat/typescript-2020' ] , {
8
8
languageOptions : {
9
9
parser : tseslint . parser ,
10
10
} ,
11
- plugins : { '@typescript-eslint' : tseslint . plugin , escompatPlugin , github : fixupPluginRules ( github ) } ,
11
+ plugins : { '@typescript-eslint' : tseslint . plugin , escompat , github : fixupPluginRules ( github ) } ,
12
12
rules : {
13
13
camelcase : 'off' ,
14
14
'no-unused-vars' : 'off' ,
You can’t perform that action at this time.
0 commit comments