File tree 6 files changed +301
-359
lines changed
6 files changed +301
-359
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const { readGitignoreFiles } = require('eslint-gitignore');
11
11
module . exports = defineConfig ( {
12
12
ignorePatterns : [
13
13
...readGitignoreFiles ( ) ,
14
- '.eslintrc.js ' , // Skip self linting
14
+ '.eslintrc.cjs ' , // Skip self linting
15
15
] ,
16
16
root : true ,
17
17
env : {
Original file line number Diff line number Diff line change 1
1
// @ts -check
2
2
3
3
/**
4
- * @type {import('prettier').Options }
4
+ * @type {import('prettier').Config }
5
5
*/
6
- module . exports = {
6
+ export default {
7
7
plugins : [ 'prettier-plugin-organize-imports' ] ,
8
8
singleQuote : true ,
9
9
trailingComma : 'es5' ,
@@ -20,6 +20,7 @@ module.exports = {
20
20
{
21
21
files : '*.md' ,
22
22
options : {
23
+ // @ts -expect-error: known property
23
24
organizeImportsSkipDestructiveCodeActions : true ,
24
25
} ,
25
26
} ,
Original file line number Diff line number Diff line change 28
28
],
29
29
"bugs" : " https://github.com/faker-js/faker/issues" ,
30
30
"license" : " MIT" ,
31
+ "type" : " module" ,
31
32
"main" : " dist/cjs/index.js" ,
32
- "module" : " dist/esm/index.mjs " ,
33
+ "module" : " dist/esm/index.js " ,
33
34
"types" : " index.d.ts" ,
34
35
"typesVersions" : {
35
36
">=4.0" : {
41
42
"exports" : {
42
43
"." : {
43
44
"types" : " ./dist/types/index.d.ts" ,
45
+ "import" : " ./dist/esm/index.js" ,
44
46
"require" : " ./dist/cjs/index.js" ,
45
- "import " : " ./dist/esm/index.mjs "
47
+ "default " : " ./dist/esm/index.js "
46
48
},
47
49
"./locale/*" : {
48
50
"types" : " ./dist/types/locale/*.d.ts" ,
51
+ "import" : " ./dist/esm/locale/*.js" ,
49
52
"require" : " ./dist/cjs/locale/*.js" ,
50
- "import " : " ./dist/esm/locale/*.mjs "
53
+ "default " : " ./dist/esm/locale/*.js "
51
54
},
52
55
"./package.json" : " ./package.json"
53
56
},
You can’t perform that action at this time.
0 commit comments