File tree Expand file tree Collapse file tree 8 files changed +11
-9
lines changed Expand file tree Collapse file tree 8 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
- module . exports = require ( "./dist/index.js" )
1
+ module . exports = require ( "./dist/index.js" ) . default
Original file line number Diff line number Diff line change 82
82
"react" : " react.js" ,
83
83
"strict" : " strict.js" ,
84
84
"strict-react" : " strict-react.js"
85
- }
85
+ }
Original file line number Diff line number Diff line change 1
- module . exports = require ( "./dist/index-react.js" )
1
+ module . exports = require ( "./dist/index-react.js" ) . default
Original file line number Diff line number Diff line change 1
1
import child_process from "child_process"
2
+ import eslintPackageJson from "eslint/package.json"
2
3
3
4
export function getEslintVersion ( ) {
4
5
if ( process . argv [ 1 ] . includes ( "eslint.js" ) ) {
@@ -8,6 +9,6 @@ export function getEslintVersion() {
8
9
} )
9
10
return eslintVersion
10
11
} else {
11
- return require ( "eslint/package.json" ) . version
12
+ return eslintPackageJson . version
12
13
}
13
14
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const nonStrictConfig = {
17
17
...base . overrides . slice ( 1 ) ,
18
18
] ,
19
19
settings : {
20
- ...( base . settings || { } ) ,
20
+ ...base . settings ,
21
21
react : {
22
22
version : "detect" ,
23
23
} ,
Original file line number Diff line number Diff line change @@ -7,8 +7,9 @@ import { findOneFile } from "./utils"
7
7
const tsFiles = [ "**/*.tsx" , "**/*.ts" ]
8
8
const project = [ "**/tsconfig.json" , "!**/node_modules/**/tsconfig.json" ]
9
9
10
- async function globifyGitIgnoreFileWithDeps ( cwd : string , include : boolean ) {
11
- const { globifyGitIgnoreFile } = require ( "globify-gitignore" ) as typeof import ( "globify-gitignore" )
10
+ function globifyGitIgnoreFileWithDeps ( cwd : string , include : boolean ) {
11
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
12
+ const { globifyGitIgnoreFile } = require ( "globify-gitignore" ) as typeof import ( "globify-gitignore" ) // prettier-ignore
12
13
return globifyGitIgnoreFile ( cwd , include )
13
14
}
14
15
const globifyGitIgnoreFileSync = makeSynchronous ( globifyGitIgnoreFileWithDeps )
Original file line number Diff line number Diff line change 1
- module . exports = require ( "./dist/index-strict-react.js" )
1
+ module . exports = require ( "./dist/index-strict-react.js" ) . default
Original file line number Diff line number Diff line change 1
- module . exports = require ( "./dist/index-strict.js" )
1
+ module . exports = require ( "./dist/index-strict.js" ) . default
You can’t perform that action at this time.
0 commit comments