@jsenv/eslint-config-relax 1.0.0 → 1.0.2
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/package.json
CHANGED
|
@@ -20,8 +20,8 @@ const patternForEachExtension = (pattern, extensions) => {
|
|
|
20
20
|
export const eslintConfigRelax = ({
|
|
21
21
|
rootDirectoryUrl,
|
|
22
22
|
type = "browser",
|
|
23
|
-
prettier = true,
|
|
24
|
-
prettierSortImport = false,
|
|
23
|
+
prettier = true, // ideally check presence of prettier config files, or in package.json dev deps
|
|
24
|
+
prettierSortImport = false, // check presence in package deps
|
|
25
25
|
jsxPragmaAuto = false,
|
|
26
26
|
importResolutionLogLevel,
|
|
27
27
|
|
|
@@ -94,7 +94,7 @@ export const eslintConfigRelax = ({
|
|
|
94
94
|
settings: {
|
|
95
95
|
"import-x/resolver": {
|
|
96
96
|
"@jsenv/eslint-import-resolver": {
|
|
97
|
-
rootDirectoryUrl,
|
|
97
|
+
rootDirectoryUrl: String(rootDirectoryUrl),
|
|
98
98
|
packageConditions: ["node", "development", "import"],
|
|
99
99
|
logLevel: importResolutionLogLevel,
|
|
100
100
|
},
|
|
@@ -114,7 +114,7 @@ export const eslintConfigRelax = ({
|
|
|
114
114
|
settings: {
|
|
115
115
|
"import-x/resolver": {
|
|
116
116
|
"@jsenv/eslint-import-resolver": {
|
|
117
|
-
rootDirectoryUrl,
|
|
117
|
+
rootDirectoryUrl: String(rootDirectoryUrl),
|
|
118
118
|
packageConditions: ["node", "development"],
|
|
119
119
|
logLevel: importResolutionLogLevel,
|
|
120
120
|
},
|
|
@@ -220,7 +220,7 @@ export const eslintConfigRelax = ({
|
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
ignores: [
|
|
223
|
-
"
|
|
223
|
+
"**/.*/",
|
|
224
224
|
"!**/.github/",
|
|
225
225
|
"**/node_modules/",
|
|
226
226
|
"**/git_ignored/",
|
|
@@ -229,9 +229,9 @@ export const eslintConfigRelax = ({
|
|
|
229
229
|
"**/*.noeslint.*",
|
|
230
230
|
"**/tests/**/**syntax_error**.*",
|
|
231
231
|
"**/tests/**/**syntax_error**/main.html",
|
|
232
|
-
"**/tests/**/snapshots
|
|
233
|
-
"**/tests/**/output
|
|
234
|
-
"**/tests/**/_*test
|
|
232
|
+
"**/tests/**/snapshots/",
|
|
233
|
+
"**/tests/**/output/",
|
|
234
|
+
"**/tests/**/_*test.*/",
|
|
235
235
|
],
|
|
236
236
|
},
|
|
237
237
|
];
|