@dword-design/eslint-config 7.0.6 → 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 +131 -129
- 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,39 +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"],
|
|
67
66
|
rules: {
|
|
68
|
-
|
|
67
|
+
"unicorn/no-empty-file": "off"
|
|
68
|
+
// TODO: Deactivate comments when it's possible https://github.com/sindresorhus/eslint-plugin-unicorn/pull/2300
|
|
69
69
|
}
|
|
70
70
|
}, {
|
|
71
|
-
files: [
|
|
71
|
+
files: ["**/*.ts", "**/*.vue"],
|
|
72
72
|
languageOptions: {
|
|
73
73
|
globals: {
|
|
74
74
|
...globals.node,
|
|
@@ -79,105 +79,105 @@ export default ({
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
rules: {
|
|
82
|
-
|
|
82
|
+
"@dword-design/import-alias/prefer-alias": ["error", {
|
|
83
83
|
alias: {
|
|
84
|
-
|
|
84
|
+
"@": "."
|
|
85
85
|
}
|
|
86
86
|
}],
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
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"
|
|
92
92
|
}],
|
|
93
|
-
|
|
94
|
-
devDependencies: [
|
|
93
|
+
"import-x/no-extraneous-dependencies": ["error", {
|
|
94
|
+
devDependencies: ["**/*.spec.ts", "fixtures/**", "global-setup.ts", "global-teardown.ts", "playwright.config.ts"]
|
|
95
95
|
}],
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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", {
|
|
103
103
|
checkLoops: false
|
|
104
104
|
}],
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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",
|
|
113
113
|
// https://github.com/facebook/create-react-app/issues/12847
|
|
114
|
-
|
|
115
|
-
message:
|
|
116
|
-
name:
|
|
114
|
+
"no-restricted-globals": ["error", {
|
|
115
|
+
message: "Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite",
|
|
116
|
+
name: "isFinite"
|
|
117
117
|
}, {
|
|
118
|
-
message:
|
|
119
|
-
name:
|
|
120
|
-
}, ...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 => ({
|
|
121
121
|
message: `Use window.${g} instead. https://github.com/facebook/create-react-app/blob/HEAD/packages/confusing-browser-globals/README.md`,
|
|
122
122
|
name: g
|
|
123
123
|
}))],
|
|
124
|
-
|
|
124
|
+
"no-restricted-imports": ["error", {
|
|
125
125
|
paths: eslintRestrictedImports
|
|
126
126
|
}],
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
[`${packageName`prettier`}/prettier`]: [
|
|
132
|
-
arrowParens:
|
|
133
|
-
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",
|
|
134
134
|
singleQuote: true,
|
|
135
|
-
trailingComma:
|
|
135
|
+
trailingComma: "all"
|
|
136
136
|
}],
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
blankLine:
|
|
140
|
-
next:
|
|
141
|
-
prev:
|
|
137
|
+
"object-shorthand": ["error", "always"],
|
|
138
|
+
"padding-line-between-statements": ["error", {
|
|
139
|
+
blankLine: "never",
|
|
140
|
+
next: "*",
|
|
141
|
+
prev: "*"
|
|
142
142
|
}, {
|
|
143
|
-
blankLine:
|
|
144
|
-
next:
|
|
145
|
-
prev:
|
|
143
|
+
blankLine: "always",
|
|
144
|
+
next: "*",
|
|
145
|
+
prev: "import"
|
|
146
146
|
}, {
|
|
147
|
-
blankLine:
|
|
148
|
-
next:
|
|
149
|
-
prev:
|
|
147
|
+
blankLine: "any",
|
|
148
|
+
next: "import",
|
|
149
|
+
prev: "import"
|
|
150
150
|
}, ...Object.keys({
|
|
151
|
-
|
|
151
|
+
"block-like": true,
|
|
152
152
|
const: true,
|
|
153
153
|
expression: true,
|
|
154
154
|
let: true
|
|
155
155
|
}).flatMap(name => [{
|
|
156
|
-
blankLine:
|
|
156
|
+
blankLine: "always",
|
|
157
157
|
next: `multiline-${name}`,
|
|
158
|
-
prev:
|
|
158
|
+
prev: "*"
|
|
159
159
|
}, {
|
|
160
|
-
blankLine:
|
|
161
|
-
next:
|
|
160
|
+
blankLine: "always",
|
|
161
|
+
next: "*",
|
|
162
162
|
prev: `multiline-${name}`
|
|
163
163
|
}]), {
|
|
164
|
-
blankLine:
|
|
165
|
-
next:
|
|
166
|
-
prev:
|
|
164
|
+
blankLine: "always",
|
|
165
|
+
next: "export",
|
|
166
|
+
prev: "*"
|
|
167
167
|
}],
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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", {
|
|
181
181
|
tags: Object.keys({
|
|
182
182
|
css: true,
|
|
183
183
|
endent: true,
|
|
@@ -188,41 +188,43 @@ export default ({
|
|
|
188
188
|
xml: true
|
|
189
189
|
})
|
|
190
190
|
}],
|
|
191
|
-
|
|
191
|
+
"vue/attributes-order": ["error", {
|
|
192
192
|
alphabetical: true
|
|
193
193
|
}],
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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
|
|
199
200
|
},
|
|
200
201
|
settings: {
|
|
201
|
-
|
|
202
|
+
"import-x/resolver-next": [createTypeScriptImportResolver({
|
|
202
203
|
extensionAlias: {
|
|
203
|
-
|
|
204
|
+
".js": [".js"]
|
|
204
205
|
},
|
|
205
206
|
// Disable auto-guessing of .ts when .js is imported
|
|
206
|
-
project: pathLib.join(cwd,
|
|
207
|
+
project: pathLib.join(cwd, "tsconfig.json")
|
|
207
208
|
})]
|
|
208
209
|
}
|
|
209
210
|
}, {
|
|
210
|
-
files: [
|
|
211
|
+
files: ["**/*.spec.ts"],
|
|
211
212
|
rules: {
|
|
212
|
-
|
|
213
|
-
|
|
213
|
+
"playwright/expect-expect": "off",
|
|
214
|
+
"playwright/no-focused-test": "off",
|
|
215
|
+
"playwright/valid-title": ["error", {
|
|
214
216
|
ignoreTypeOfTestName: true
|
|
215
217
|
}]
|
|
216
218
|
}
|
|
217
219
|
}, {
|
|
218
|
-
files: [
|
|
220
|
+
files: ["fixtures/**", "**/*.spec.ts"],
|
|
219
221
|
rules: {
|
|
220
|
-
|
|
222
|
+
"no-empty-pattern": "off"
|
|
221
223
|
}
|
|
222
224
|
}, {
|
|
223
|
-
files: [
|
|
225
|
+
files: ["**/*.vue"],
|
|
224
226
|
rules: {
|
|
225
|
-
|
|
227
|
+
"vue/multi-word-component-names": "off"
|
|
226
228
|
}
|
|
227
229
|
}]);
|
|
228
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
|
},
|