@papillonarts/setup 0.47.1 → 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
|
{
|
|
@@ -46,7 +70,7 @@ export function getESLintSetup({ eslintIgnores }) {
|
|
|
46
70
|
|
|
47
71
|
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
|
|
48
72
|
|
|
49
|
-
ignores: ['**/__tests__/**', '**/*.test.ts', '**/*.test.tsx'],
|
|
73
|
+
ignores: ['**/__tests__/**', '**/*.test.ts', '**/*.test.tsx', '**/*.d.ts'],
|
|
50
74
|
|
|
51
75
|
plugins: {
|
|
52
76
|
react: fixupPluginRules(react),
|
|
@@ -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'],
|
|
99
|
-
},
|
|
100
|
-
},
|
|
116
|
+
parserOptions,
|
|
101
117
|
},
|
|
102
118
|
|
|
103
119
|
settings: {
|
|
@@ -120,7 +136,8 @@ export function getESLintSetup({ eslintIgnores }) {
|
|
|
120
136
|
'<root>packages/components/tsconfig.json',
|
|
121
137
|
'<root>packages/library/tsconfig.json',
|
|
122
138
|
'<root>packages/lodash/tsconfig.json',
|
|
123
|
-
'<root>packages/setup/
|
|
139
|
+
'<root>packages/setup/tsconfig.json',
|
|
140
|
+
'<root>packages/core/tsconfig.json',
|
|
124
141
|
],
|
|
125
142
|
}),
|
|
126
143
|
],
|
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
|
}
|