@dword-design/eslint-config 7.0.5 → 7.0.7
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/dist/create/index.d.ts +4 -0
- package/dist/create/index.js +134 -127
- package/dist/create/restricted-imports.d.ts +17 -0
- package/dist/create/restricted-imports.js +48 -48
- package/dist/index.d.ts +2 -0
- package/package.json +16 -9
package/dist/create/index.js
CHANGED
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
import pathLib from
|
|
2
|
-
import { fileURLToPath } from
|
|
3
|
-
import importAlias from
|
|
4
|
-
import { FlatCompat } from
|
|
5
|
-
import confusingBrowserGlobals from
|
|
6
|
-
import packageName from
|
|
7
|
-
import { defineConfig } from
|
|
8
|
-
import gitignore from
|
|
9
|
-
import { createTypeScriptImportResolver } from
|
|
10
|
-
import { importX } from
|
|
11
|
-
import eslintPluginJsonc from
|
|
12
|
-
import pluginPlaywright from
|
|
13
|
-
import eslintPluginPrettierRecommended from
|
|
14
|
-
import pluginPromise from
|
|
15
|
-
import eslintPluginUnicorn from
|
|
16
|
-
import pluginVue from
|
|
17
|
-
import globals from
|
|
18
|
-
import loadPkg from
|
|
19
|
-
import { compact, omit, without } from
|
|
20
|
-
import { sortOrder as packageJsonSortOrder } from
|
|
21
|
-
import tseslint from
|
|
1
|
+
import pathLib from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
import importAlias from "@dword-design/eslint-plugin-import-alias";
|
|
4
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
5
|
+
import confusingBrowserGlobals from "confusing-browser-globals";
|
|
6
|
+
import packageName from "depcheck-package-name";
|
|
7
|
+
import { defineConfig } from "eslint/config";
|
|
8
|
+
import gitignore from "eslint-config-flat-gitignore";
|
|
9
|
+
import { createTypeScriptImportResolver } from "eslint-import-resolver-typescript";
|
|
10
|
+
import { importX } from "eslint-plugin-import-x";
|
|
11
|
+
import eslintPluginJsonc from "eslint-plugin-jsonc";
|
|
12
|
+
import pluginPlaywright from "eslint-plugin-playwright";
|
|
13
|
+
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
|
|
14
|
+
import pluginPromise from "eslint-plugin-promise";
|
|
15
|
+
import eslintPluginUnicorn from "eslint-plugin-unicorn";
|
|
16
|
+
import pluginVue from "eslint-plugin-vue";
|
|
17
|
+
import globals from "globals";
|
|
18
|
+
import loadPkg from "load-pkg";
|
|
19
|
+
import { compact, omit, without } from "lodash-es";
|
|
20
|
+
import { sortOrder as packageJsonSortOrder } from "sort-package-json";
|
|
21
|
+
import tseslint from "typescript-eslint";
|
|
22
22
|
import restrictedImports from "./restricted-imports.js";
|
|
23
23
|
export default ({
|
|
24
|
-
cwd =
|
|
24
|
+
cwd = "."
|
|
25
25
|
} = {}) => {
|
|
26
26
|
const packageConfig = loadPkg.sync(cwd) || {};
|
|
27
|
-
const eslintRestrictedImports = restrictedImports.filter(importDef => importDef.alternative ===
|
|
28
|
-
...omit(importDef, [
|
|
29
|
-
message: compact([importDef.message, importDef.alternative ? `Use '${importDef.alternative}' instead` :
|
|
27
|
+
const eslintRestrictedImports = restrictedImports.filter(importDef => importDef.alternative === void 0 || importDef.alternative !== packageConfig.name).map(importDef => ({
|
|
28
|
+
...omit(importDef, ["alternative"]),
|
|
29
|
+
message: compact([importDef.message, importDef.alternative ? `Use '${importDef.alternative}' instead` : ""]).join(" ")
|
|
30
30
|
}));
|
|
31
|
-
// mimic CommonJS variables -- not needed if using CommonJS
|
|
32
31
|
const __filename = fileURLToPath(import.meta.url);
|
|
33
32
|
const __dirname = pathLib.dirname(__filename);
|
|
34
33
|
const compat = new FlatCompat({
|
|
@@ -36,34 +35,40 @@ export default ({
|
|
|
36
35
|
});
|
|
37
36
|
return defineConfig([gitignore({
|
|
38
37
|
strict: false
|
|
39
|
-
}), tseslint.configs.recommended, importX.flatConfigs.recommended, importX.flatConfigs.typescript, pluginPromise.configs[
|
|
40
|
-
files: [
|
|
38
|
+
}), tseslint.configs.recommended, importX.flatConfigs.recommended, importX.flatConfigs.typescript, pluginPromise.configs["flat/recommended"], ...pluginVue.configs["flat/recommended"].map(plugin => ({
|
|
39
|
+
files: ["**/*.ts", "**/*.vue"],
|
|
41
40
|
...plugin
|
|
42
41
|
})), {
|
|
43
|
-
files: [
|
|
42
|
+
files: ["**/*.ts", "**/*.vue"],
|
|
44
43
|
...importAlias.configs.recommended
|
|
45
44
|
}, {
|
|
46
|
-
files: [
|
|
45
|
+
files: ["**/*.ts", "**/*.vue"],
|
|
47
46
|
...eslintPluginPrettierRecommended
|
|
48
|
-
}, pluginPlaywright.configs[
|
|
49
|
-
files: [
|
|
47
|
+
}, pluginPlaywright.configs["flat/recommended"], ...compat.plugins(packageName`eslint-plugin-prefer-arrow`), ...compat.plugins(packageName`eslint-plugin-simple-import-sort`), ...compat.plugins(packageName`eslint-plugin-sort-keys-fix`), {
|
|
48
|
+
files: ["**/*.ts", "**/*.vue"],
|
|
50
49
|
...eslintPluginUnicorn.configs.recommended
|
|
51
|
-
}, ...eslintPluginJsonc.configs[
|
|
52
|
-
files: [
|
|
50
|
+
}, ...eslintPluginJsonc.configs["flat/recommended-with-jsonc"], {
|
|
51
|
+
files: ["**/*.json"],
|
|
53
52
|
rules: {
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
"jsonc/indent": ["error", 2],
|
|
54
|
+
"jsonc/sort-keys": "error"
|
|
56
55
|
}
|
|
57
56
|
}, {
|
|
58
|
-
files: [
|
|
57
|
+
files: ["**/package.json"],
|
|
59
58
|
rules: {
|
|
60
|
-
|
|
59
|
+
"jsonc/sort-keys": ["error", {
|
|
61
60
|
order: packageJsonSortOrder,
|
|
62
|
-
pathPattern:
|
|
61
|
+
pathPattern: "^$"
|
|
63
62
|
}]
|
|
64
63
|
}
|
|
65
64
|
}, {
|
|
66
|
-
files: [
|
|
65
|
+
files: ["**/*.ts"],
|
|
66
|
+
rules: {
|
|
67
|
+
"unicorn/no-empty-file": "off"
|
|
68
|
+
// TODO: Deactivate comments when it's possible https://github.com/sindresorhus/eslint-plugin-unicorn/pull/2300
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
files: ["**/*.ts", "**/*.vue"],
|
|
67
72
|
languageOptions: {
|
|
68
73
|
globals: {
|
|
69
74
|
...globals.node,
|
|
@@ -74,105 +79,105 @@ export default ({
|
|
|
74
79
|
}
|
|
75
80
|
},
|
|
76
81
|
rules: {
|
|
77
|
-
|
|
82
|
+
"@dword-design/import-alias/prefer-alias": ["error", {
|
|
78
83
|
alias: {
|
|
79
|
-
|
|
84
|
+
"@": "."
|
|
80
85
|
}
|
|
81
86
|
}],
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
ts:
|
|
87
|
+
"arrow-body-style": ["error", "as-needed"],
|
|
88
|
+
"func-names": ["error", "never"],
|
|
89
|
+
"global-require": "off",
|
|
90
|
+
"import-x/extensions": ["error", "ignorePackages", {
|
|
91
|
+
ts: "never"
|
|
87
92
|
}],
|
|
88
|
-
|
|
89
|
-
devDependencies: [
|
|
93
|
+
"import-x/no-extraneous-dependencies": ["error", {
|
|
94
|
+
devDependencies: ["**/*.spec.ts", "fixtures/**", "global-setup.ts", "global-teardown.ts", "playwright.config.ts"]
|
|
90
95
|
}],
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
"import-x/no-named-as-default": "off",
|
|
97
|
+
"import-x/no-named-as-default-member": "off",
|
|
98
|
+
"linebreak-style": ["error", "unix"],
|
|
99
|
+
"new-cap": "off",
|
|
100
|
+
"no-await-in-loop": "off",
|
|
101
|
+
"no-console": "off",
|
|
102
|
+
"no-constant-condition": ["error", {
|
|
98
103
|
checkLoops: false
|
|
99
104
|
}],
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
"no-continue": "off",
|
|
106
|
+
"no-empty-pattern": "error",
|
|
107
|
+
"no-lonely-if": "off",
|
|
108
|
+
"no-negated-condition": "error",
|
|
109
|
+
"no-nested-ternary": "off",
|
|
110
|
+
"no-param-reassign": "off",
|
|
111
|
+
"no-promise-executor-return": "off",
|
|
112
|
+
"no-regex-spaces": "off",
|
|
108
113
|
// https://github.com/facebook/create-react-app/issues/12847
|
|
109
|
-
|
|
110
|
-
message:
|
|
111
|
-
name:
|
|
114
|
+
"no-restricted-globals": ["error", {
|
|
115
|
+
message: "Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite",
|
|
116
|
+
name: "isFinite"
|
|
112
117
|
}, {
|
|
113
|
-
message:
|
|
114
|
-
name:
|
|
115
|
-
}, ...without(confusingBrowserGlobals,
|
|
118
|
+
message: "Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan",
|
|
119
|
+
name: "isNaN"
|
|
120
|
+
}, ...without(confusingBrowserGlobals, "self").map(g => ({
|
|
116
121
|
message: `Use window.${g} instead. https://github.com/facebook/create-react-app/blob/HEAD/packages/confusing-browser-globals/README.md`,
|
|
117
122
|
name: g
|
|
118
123
|
}))],
|
|
119
|
-
|
|
124
|
+
"no-restricted-imports": ["error", {
|
|
120
125
|
paths: eslintRestrictedImports
|
|
121
126
|
}],
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
[`${packageName`prettier`}/prettier`]: [
|
|
127
|
-
arrowParens:
|
|
128
|
-
objectWrap:
|
|
127
|
+
"no-return-assign": "off",
|
|
128
|
+
"no-template-curly-in-string": "off",
|
|
129
|
+
"no-underscore-dangle": "off",
|
|
130
|
+
"no-var": "error",
|
|
131
|
+
[`${packageName`prettier`}/prettier`]: ["error", {
|
|
132
|
+
arrowParens: "avoid",
|
|
133
|
+
objectWrap: "collapse",
|
|
129
134
|
singleQuote: true,
|
|
130
|
-
trailingComma:
|
|
135
|
+
trailingComma: "all"
|
|
131
136
|
}],
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
blankLine:
|
|
135
|
-
next:
|
|
136
|
-
prev:
|
|
137
|
+
"object-shorthand": ["error", "always"],
|
|
138
|
+
"padding-line-between-statements": ["error", {
|
|
139
|
+
blankLine: "never",
|
|
140
|
+
next: "*",
|
|
141
|
+
prev: "*"
|
|
137
142
|
}, {
|
|
138
|
-
blankLine:
|
|
139
|
-
next:
|
|
140
|
-
prev:
|
|
143
|
+
blankLine: "always",
|
|
144
|
+
next: "*",
|
|
145
|
+
prev: "import"
|
|
141
146
|
}, {
|
|
142
|
-
blankLine:
|
|
143
|
-
next:
|
|
144
|
-
prev:
|
|
147
|
+
blankLine: "any",
|
|
148
|
+
next: "import",
|
|
149
|
+
prev: "import"
|
|
145
150
|
}, ...Object.keys({
|
|
146
|
-
|
|
151
|
+
"block-like": true,
|
|
147
152
|
const: true,
|
|
148
153
|
expression: true,
|
|
149
154
|
let: true
|
|
150
155
|
}).flatMap(name => [{
|
|
151
|
-
blankLine:
|
|
156
|
+
blankLine: "always",
|
|
152
157
|
next: `multiline-${name}`,
|
|
153
|
-
prev:
|
|
158
|
+
prev: "*"
|
|
154
159
|
}, {
|
|
155
|
-
blankLine:
|
|
156
|
-
next:
|
|
160
|
+
blankLine: "always",
|
|
161
|
+
next: "*",
|
|
157
162
|
prev: `multiline-${name}`
|
|
158
163
|
}]), {
|
|
159
|
-
blankLine:
|
|
160
|
-
next:
|
|
161
|
-
prev:
|
|
164
|
+
blankLine: "always",
|
|
165
|
+
next: "export",
|
|
166
|
+
prev: "*"
|
|
162
167
|
}],
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
168
|
+
"prefer-arrow/prefer-arrow-functions": ["error"],
|
|
169
|
+
"prefer-destructuring": "off",
|
|
170
|
+
"require-await": "error",
|
|
171
|
+
"simple-import-sort/imports": "error",
|
|
172
|
+
"sort-keys-fix/sort-keys-fix": "error",
|
|
173
|
+
"unicorn/catch-error-name": "off",
|
|
174
|
+
"unicorn/consistent-function-scoping": "off",
|
|
175
|
+
"unicorn/no-anonymous-default-export": "off",
|
|
176
|
+
"unicorn/no-negated-condition": "off",
|
|
177
|
+
"unicorn/no-nested-ternary": "off",
|
|
178
|
+
"unicorn/no-null": "off",
|
|
179
|
+
"unicorn/prevent-abbreviations": "off",
|
|
180
|
+
"unicorn/template-indent": ["error", {
|
|
176
181
|
tags: Object.keys({
|
|
177
182
|
css: true,
|
|
178
183
|
endent: true,
|
|
@@ -183,41 +188,43 @@ export default ({
|
|
|
183
188
|
xml: true
|
|
184
189
|
})
|
|
185
190
|
}],
|
|
186
|
-
|
|
191
|
+
"vue/attributes-order": ["error", {
|
|
187
192
|
alphabetical: true
|
|
188
193
|
}],
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
+
"vue/no-deprecated-functional-template": "error",
|
|
195
|
+
"vue/order-in-components": "off",
|
|
196
|
+
"vue/prefer-true-attribute-shorthand": "error",
|
|
197
|
+
"vue/require-default-prop": "off",
|
|
198
|
+
"vue/require-prop-types": "off"
|
|
199
|
+
// Complains about title not being a string if variable is passed
|
|
194
200
|
},
|
|
195
201
|
settings: {
|
|
196
|
-
|
|
202
|
+
"import-x/resolver-next": [createTypeScriptImportResolver({
|
|
197
203
|
extensionAlias: {
|
|
198
|
-
|
|
204
|
+
".js": [".js"]
|
|
199
205
|
},
|
|
200
206
|
// Disable auto-guessing of .ts when .js is imported
|
|
201
|
-
project: pathLib.join(cwd,
|
|
207
|
+
project: pathLib.join(cwd, "tsconfig.json")
|
|
202
208
|
})]
|
|
203
209
|
}
|
|
204
210
|
}, {
|
|
205
|
-
files: [
|
|
211
|
+
files: ["**/*.spec.ts"],
|
|
206
212
|
rules: {
|
|
207
|
-
|
|
208
|
-
|
|
213
|
+
"playwright/expect-expect": "off",
|
|
214
|
+
"playwright/no-focused-test": "off",
|
|
215
|
+
"playwright/valid-title": ["error", {
|
|
209
216
|
ignoreTypeOfTestName: true
|
|
210
217
|
}]
|
|
211
218
|
}
|
|
212
219
|
}, {
|
|
213
|
-
files: [
|
|
220
|
+
files: ["fixtures/**", "**/*.spec.ts"],
|
|
214
221
|
rules: {
|
|
215
|
-
|
|
222
|
+
"no-empty-pattern": "off"
|
|
216
223
|
}
|
|
217
224
|
}, {
|
|
218
|
-
files: [
|
|
225
|
+
files: ["**/*.vue"],
|
|
219
226
|
rules: {
|
|
220
|
-
|
|
227
|
+
"vue/multi-word-component-names": "off"
|
|
221
228
|
}
|
|
222
229
|
}]);
|
|
223
230
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: ({
|
|
2
|
+
alternative: string;
|
|
3
|
+
message: string;
|
|
4
|
+
name: string;
|
|
5
|
+
importNames?: undefined;
|
|
6
|
+
} | {
|
|
7
|
+
alternative: string;
|
|
8
|
+
name: string;
|
|
9
|
+
message?: undefined;
|
|
10
|
+
importNames?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
importNames: string[];
|
|
13
|
+
message: string;
|
|
14
|
+
name: string;
|
|
15
|
+
alternative?: undefined;
|
|
16
|
+
})[];
|
|
17
|
+
export default _default;
|
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
export default [{
|
|
2
|
-
alternative:
|
|
3
|
-
message:
|
|
4
|
-
name:
|
|
2
|
+
alternative: "parse-packagejson-name",
|
|
3
|
+
message: "Does not work in the browser due to fs dependency in ow.",
|
|
4
|
+
name: "parse-pkg-name"
|
|
5
5
|
}, {
|
|
6
|
-
alternative:
|
|
7
|
-
message:
|
|
8
|
-
name:
|
|
6
|
+
alternative: "@dword-design/nuxt-auth",
|
|
7
|
+
message: "Does not auto-rewrite redirects.",
|
|
8
|
+
name: "@nuxtjs/auth"
|
|
9
9
|
}, {
|
|
10
|
-
alternative:
|
|
11
|
-
message:
|
|
12
|
-
name:
|
|
10
|
+
alternative: "@dword-design/chdir",
|
|
11
|
+
message: "It is not maintained anymore.",
|
|
12
|
+
name: "chdir"
|
|
13
13
|
}, {
|
|
14
|
-
alternative:
|
|
14
|
+
alternative: "execa",
|
|
15
15
|
message: "'execa' provides more features and syntactic sugar.",
|
|
16
|
-
name:
|
|
16
|
+
name: "child-process-promise"
|
|
17
17
|
}, {
|
|
18
|
-
alternative:
|
|
19
|
-
message:
|
|
20
|
-
name:
|
|
18
|
+
alternative: "execa",
|
|
19
|
+
message: "It does not support promises.",
|
|
20
|
+
name: "child_process"
|
|
21
21
|
}, {
|
|
22
|
-
alternative:
|
|
23
|
-
message:
|
|
24
|
-
name:
|
|
22
|
+
alternative: "fs-extra",
|
|
23
|
+
message: "Does not support promises.",
|
|
24
|
+
name: "fs"
|
|
25
25
|
}, {
|
|
26
|
-
alternative:
|
|
27
|
-
message:
|
|
28
|
-
name:
|
|
26
|
+
alternative: "globby",
|
|
27
|
+
message: "Does not support promises.",
|
|
28
|
+
name: "glob"
|
|
29
29
|
}, {
|
|
30
|
-
alternative:
|
|
31
|
-
message:
|
|
32
|
-
name:
|
|
30
|
+
alternative: "globby",
|
|
31
|
+
message: "Does not support pattern arrays.",
|
|
32
|
+
name: "glob-promise"
|
|
33
33
|
}, {
|
|
34
|
-
alternative:
|
|
35
|
-
message:
|
|
36
|
-
name:
|
|
34
|
+
alternative: "globby",
|
|
35
|
+
message: "Only works for Node.js >= 12.",
|
|
36
|
+
name: "matched"
|
|
37
37
|
}, {
|
|
38
|
-
alternative:
|
|
39
|
-
message:
|
|
40
|
-
name:
|
|
38
|
+
alternative: "node-sass-package-importer",
|
|
39
|
+
message: "Does not support inline importing CSS files.",
|
|
40
|
+
name: "node-sass-tilde-importer"
|
|
41
41
|
}, {
|
|
42
|
-
alternative:
|
|
43
|
-
message:
|
|
44
|
-
name:
|
|
42
|
+
alternative: "@dword-design/proxyquire",
|
|
43
|
+
message: "Does not set some important default values.",
|
|
44
|
+
name: "proxyquire"
|
|
45
45
|
}, {
|
|
46
|
-
alternative:
|
|
47
|
-
message:
|
|
48
|
-
name:
|
|
46
|
+
alternative: "stealthy-require-no-leak",
|
|
47
|
+
message: "Has a memory leak when requiring the same module multiple times.",
|
|
48
|
+
name: "stealthy-require"
|
|
49
49
|
}, {
|
|
50
|
-
alternative:
|
|
51
|
-
name:
|
|
50
|
+
alternative: "matchdep",
|
|
51
|
+
name: "resolve-dep"
|
|
52
52
|
}, {
|
|
53
|
-
alternative:
|
|
54
|
-
name:
|
|
53
|
+
alternative: "@dword-design/endent",
|
|
54
|
+
name: "dedent"
|
|
55
55
|
}, {
|
|
56
|
-
alternative:
|
|
57
|
-
message:
|
|
58
|
-
name:
|
|
56
|
+
alternative: "sort-keys",
|
|
57
|
+
message: "Does not support recursive sorting.",
|
|
58
|
+
name: "sort-object-keys"
|
|
59
59
|
}, {
|
|
60
|
-
alternative:
|
|
61
|
-
message:
|
|
62
|
-
name:
|
|
60
|
+
alternative: "tree-kill-promise",
|
|
61
|
+
message: "Does not support promises.",
|
|
62
|
+
name: "tree-kill"
|
|
63
63
|
}, {
|
|
64
|
-
importNames: [
|
|
65
|
-
message:
|
|
66
|
-
name:
|
|
64
|
+
importNames: ["zipObject"],
|
|
65
|
+
message: "Use map and fromPairs instead",
|
|
66
|
+
name: "@dword-design/functions"
|
|
67
67
|
}];
|
package/dist/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/eslint-config",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.7",
|
|
4
4
|
"repository": "dword-design/eslint-config",
|
|
5
5
|
"funding": "https://github.com/sponsors/dword-design",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Sebastian Landwehr <info@sebastianlandwehr.com>",
|
|
8
8
|
"type": "module",
|
|
9
|
-
"exports":
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"default": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
10
17
|
"main": "dist/index.js",
|
|
11
18
|
"files": [
|
|
12
19
|
"dist"
|
|
@@ -26,30 +33,30 @@
|
|
|
26
33
|
"@eslint/eslintrc": "^3.3.1",
|
|
27
34
|
"confusing-browser-globals": "^1.0.11",
|
|
28
35
|
"depcheck-package-name": "^3.0.1",
|
|
29
|
-
"eslint": "^9.
|
|
36
|
+
"eslint": "^9.29.0",
|
|
30
37
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
31
38
|
"eslint-config-prettier": "^10.1.5",
|
|
32
39
|
"eslint-import-resolver-typescript": "^4.4.3",
|
|
33
|
-
"eslint-plugin-import-x": "^4.15.
|
|
40
|
+
"eslint-plugin-import-x": "^4.15.2",
|
|
34
41
|
"eslint-plugin-jsonc": "^2.20.1",
|
|
35
42
|
"eslint-plugin-playwright": "^2.2.0",
|
|
36
43
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
37
|
-
"eslint-plugin-prettier": "^5.
|
|
44
|
+
"eslint-plugin-prettier": "^5.5.0",
|
|
38
45
|
"eslint-plugin-promise": "^7.2.1",
|
|
39
46
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
40
47
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
41
48
|
"eslint-plugin-unicorn": "npm:@dword-design/eslint-plugin-unicorn@^0.0.1",
|
|
42
|
-
"eslint-plugin-vue": "^10.
|
|
49
|
+
"eslint-plugin-vue": "^10.2.0",
|
|
43
50
|
"globals": "^16.2.0",
|
|
44
51
|
"load-pkg": "^4.0.0",
|
|
45
52
|
"lodash-es": "^4.17.21",
|
|
46
53
|
"prettier": "^3.5.3",
|
|
47
54
|
"sort-package-json": "^3.2.1",
|
|
48
|
-
"typescript-eslint": "^8.
|
|
55
|
+
"typescript-eslint": "^8.34.1"
|
|
49
56
|
},
|
|
50
57
|
"devDependencies": {
|
|
51
|
-
"@dword-design/base": "^13.0.
|
|
52
|
-
"@playwright/test": "^1.
|
|
58
|
+
"@dword-design/base": "^13.0.9",
|
|
59
|
+
"@playwright/test": "^1.53.1",
|
|
53
60
|
"endent": "npm:@dword-design/endent@^1.4.1",
|
|
54
61
|
"output-files": "^2.0.32"
|
|
55
62
|
},
|