@naturalcycles/dev-lib 20.11.0 → 20.11.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.
|
@@ -118,7 +118,6 @@ export function runOxlintPrettier(match) {
|
|
|
118
118
|
export function runPrettier(match) {
|
|
119
119
|
const filesList = getFilesList(match)
|
|
120
120
|
if (!filesList || !prettierCmd) return []
|
|
121
|
-
// oxlint-disable-next-line typescript/restrict-template-expressions
|
|
122
121
|
return [prettierCmd].map(s => `${s} ${filesList}`)
|
|
123
122
|
}
|
|
124
123
|
|
package/cfg/oxlint.config.json
CHANGED
|
@@ -126,6 +126,7 @@
|
|
|
126
126
|
"typescript/no-base-to-string": 2,
|
|
127
127
|
"typescript/unbound-method": 0,
|
|
128
128
|
"typescript/require-array-sort-compare": 0, // not good
|
|
129
|
+
"typescript/restrict-template-expressions": 0, // not good
|
|
129
130
|
"typescript/no-redundant-type-constituents": 0, // `'a' | string` is still useful for DX
|
|
130
131
|
"unicorn/no-anonymous-default-export": 2,
|
|
131
132
|
"unicorn/no-array-reduce": 2,
|
package/cfg/tsconfig.e2e.json
CHANGED
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
"rootDir": "${configDir}/..",
|
|
8
8
|
// "baseUrl": "${configDir}/..",
|
|
9
9
|
"outDir": "${configDir}/../dist/e2e",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
// copy-paste the paths if needed
|
|
11
|
+
// "paths": {
|
|
12
|
+
// "@src/*": ["../src/*"]
|
|
13
|
+
// },
|
|
13
14
|
"tsBuildInfoFile": "${configDir}/../node_modules/.cache/e2e.tsbuildinfo",
|
|
14
15
|
"module": "esnext",
|
|
15
16
|
"moduleResolution": "bundler",
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
"target": "es2023", // es2023+ browsers, adjust to your requirements!
|
|
10
10
|
"lib": ["esnext", "dom", "dom.iterable"],
|
|
11
11
|
"module": "esnext",
|
|
12
|
-
"moduleResolution": "bundler"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
"moduleResolution": "bundler"
|
|
13
|
+
// copy-paste the paths if needed
|
|
14
|
+
// "paths": {
|
|
15
|
+
// "@src/*": ["./src/*"]
|
|
16
|
+
// },
|
|
16
17
|
}
|
|
17
18
|
}
|
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
"rootDir": "${configDir}/..",
|
|
8
8
|
// "baseUrl": "${configDir}/..",
|
|
9
9
|
"outDir": "${configDir}/../dist/scripts",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
// copy-paste the paths if needed
|
|
11
|
+
// "paths": {
|
|
12
|
+
// "@src/*": ["../src/*"]
|
|
13
|
+
// },
|
|
13
14
|
"tsBuildInfoFile": "${configDir}/../node_modules/.cache/scripts.tsbuildinfo"
|
|
14
15
|
},
|
|
15
16
|
"include": ["${configDir}"]
|