File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11// @ts -check
22import globals from 'globals' ;
33import { includeIgnoreFile } from '@eslint/compat' ;
4+ import { defineConfig } from 'eslint/config' ;
45import js from '@eslint/js' ;
56import ts from 'typescript-eslint' ;
67import antiTrojanSource from 'eslint-plugin-anti-trojan-source' ;
@@ -143,7 +144,7 @@ const restrictedImports = {
143144
144145const gitignorePath = fileURLToPath ( new URL ( './.gitignore' , import . meta. url ) ) ;
145146
146- export default ts . config (
147+ export default defineConfig (
147148 includeIgnoreFile ( gitignorePath ) ,
148149 { ignores : ignorePatterns . default } ,
149150 js . configs . recommended ,
@@ -154,8 +155,11 @@ export default ts.config(
154155 languageOptions : { ...defaultLanguageOptions } ,
155156 linterOptions : { reportUnusedDisableDirectives : true } ,
156157 plugins : {
158+ // @ts -ignore
157159 'import-x' : importX ,
160+ // @ts -ignore
158161 'anti-trojan-source' : antiTrojanSource ,
162+ // @ts -ignore
159163 '@gitlens' : { rules : { 'no-src-imports' : noSrcImports } } ,
160164 } ,
161165 rules : {
You can’t perform that action at this time.
0 commit comments