@naturalcycles/dev-lib 19.34.0 → 19.34.1
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/cfg/eslint.config.js
CHANGED
|
@@ -30,7 +30,7 @@ export default config
|
|
|
30
30
|
* This function only exists, because typescript-eslint started to have an issue with auto-detecting tsconfigRootDir.
|
|
31
31
|
* If the issue is fixed - we can remove this and come back to having just a single config.
|
|
32
32
|
*/
|
|
33
|
-
export function getEslintConfigForDir(
|
|
33
|
+
export function getEslintConfigForDir(dir) {
|
|
34
34
|
return [
|
|
35
35
|
{
|
|
36
36
|
...eslint.configs.recommended,
|
|
@@ -74,7 +74,7 @@ export function getEslintConfigForDir(cwd) {
|
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
files: defaultFiles,
|
|
77
|
-
...getConfig(
|
|
77
|
+
...getConfig(dir),
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
ignores: ['**/__exclude/**', '**/*.scss', '**/*.js'],
|
|
@@ -82,7 +82,7 @@ export function getEslintConfigForDir(cwd) {
|
|
|
82
82
|
].filter(Boolean)
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
function getConfig(
|
|
85
|
+
function getConfig(dir) {
|
|
86
86
|
return {
|
|
87
87
|
plugins: {
|
|
88
88
|
'@typescript-eslint': tseslint.plugin,
|
|
@@ -102,7 +102,7 @@ function getConfig(cwd) {
|
|
|
102
102
|
},
|
|
103
103
|
// parser: tseslint.parser,
|
|
104
104
|
parserOptions: {
|
|
105
|
-
project: `${
|
|
105
|
+
project: `${dir}/tsconfig.json`,
|
|
106
106
|
// tsconfigRootDir: cwd,
|
|
107
107
|
parser: tseslint.parser,
|
|
108
108
|
extraFileExtensions: ['.vue', '.html'],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/dev-lib",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "19.34.
|
|
4
|
+
"version": "19.34.1",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@biomejs/biome": "^2",
|
|
7
7
|
"@commitlint/cli": "^19",
|
|
@@ -50,8 +50,6 @@
|
|
|
50
50
|
"./cfg/biome.jsonc": "./cfg/biome.jsonc",
|
|
51
51
|
"./cfg/commitlint.config.js": "./cfg/commitlint.config.js",
|
|
52
52
|
"./cfg/eslint.config.js": "./cfg/eslint.config.js",
|
|
53
|
-
"./cfg/eslint.scripts.config.js": "./cfg/eslint.scripts.config.js",
|
|
54
|
-
"./cfg/eslint.e2e.config.js": "./cfg/eslint.e2e.config.js",
|
|
55
53
|
"./cfg/prettier.config.js": "./cfg/prettier.config.js",
|
|
56
54
|
"./cfg/stylelint.config.js": "./cfg/stylelint.config.js",
|
|
57
55
|
"./cfg/tsconfig.json": "./cfg/tsconfig.json",
|
package/cfg/eslint.e2e.config.js
DELETED