@papillonarts/setup 0.48.0 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/eslint/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export function getESLintSetup({ eslintIgnores }: {
|
|
1
|
+
export function getESLintSetup({ eslintIgnores, languageOptionsParserOptionsProject }: {
|
|
2
2
|
eslintIgnores: any;
|
|
3
|
+
languageOptionsParserOptionsProject: any;
|
|
3
4
|
}): import("eslint/config").Config[];
|
|
4
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/eslint/index.mjs"],"names":[],"mappings":"AAwBA
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/eslint/index.mjs"],"names":[],"mappings":"AAwBA;;;qCAqLC"}
|
package/build/eslint/index.mjs
CHANGED
|
@@ -22,7 +22,31 @@ const compat = new FlatCompat({
|
|
|
22
22
|
allConfig: js.configs.all,
|
|
23
23
|
})
|
|
24
24
|
|
|
25
|
-
export function getESLintSetup({ eslintIgnores }) {
|
|
25
|
+
export function getESLintSetup({ eslintIgnores, languageOptionsParserOptionsProject }) {
|
|
26
|
+
let parserOptions = {
|
|
27
|
+
ecmaFeatures: {
|
|
28
|
+
jsx: true,
|
|
29
|
+
},
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (!languageOptionsParserOptionsProject) {
|
|
33
|
+
parserOptions = {
|
|
34
|
+
...parserOptions,
|
|
35
|
+
|
|
36
|
+
// https://typescript-eslint.io/packages/parser/#projectservice
|
|
37
|
+
projectService: {
|
|
38
|
+
allowDefaultProject: ['*.js', '*.jsx', '*.ts', '*.tsx', '*.d.ts'],
|
|
39
|
+
},
|
|
40
|
+
}
|
|
41
|
+
} else {
|
|
42
|
+
parserOptions = {
|
|
43
|
+
...parserOptions,
|
|
44
|
+
|
|
45
|
+
// https://typescript-eslint.io/packages/parser/#project
|
|
46
|
+
project: languageOptionsParserOptionsProject,
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
26
50
|
return defineConfig([
|
|
27
51
|
globalIgnores(eslintIgnores),
|
|
28
52
|
{
|
|
@@ -89,15 +113,7 @@ export function getESLintSetup({ eslintIgnores }) {
|
|
|
89
113
|
ecmaVersion: 'latest',
|
|
90
114
|
sourceType: 'module',
|
|
91
115
|
|
|
92
|
-
parserOptions
|
|
93
|
-
ecmaFeatures: {
|
|
94
|
-
jsx: true,
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
projectService: {
|
|
98
|
-
allowDefaultProject: ['*.js', '*.jsx', '*.ts', '*.tsx', '*.d.ts'],
|
|
99
|
-
},
|
|
100
|
-
},
|
|
116
|
+
parserOptions,
|
|
101
117
|
},
|
|
102
118
|
|
|
103
119
|
settings: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@papillonarts/setup",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"description": "Papillon Arts Setup",
|
|
5
5
|
"homepage": "https://github.com/papillonarts/papillonarts/tree/master/packages/setup",
|
|
6
6
|
"repository": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"build-acceptance": "npm run build",
|
|
38
38
|
"build-release": "npm run build"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "73a2726fae9337d5f4aaf6577d9e7bbe5c894200"
|
|
41
41
|
}
|