@seayoo-web/scripts 1.3.1 → 1.3.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/dist/index.js CHANGED
@@ -260,7 +260,11 @@ const importOrderRuleConfig = {
260
260
  group: "internal"
261
261
  }
262
262
  ],
263
+ distinctGroup: true,
264
+ sortTypesGroup: true,
263
265
  "newlines-between": "always",
266
+ "newlines-between-types": "never",
267
+ name: true,
264
268
  alphabetize: {
265
269
  order: "asc",
266
270
  caseInsensitive: true
@@ -270,6 +274,7 @@ const importEslintConfig = [
270
274
  flatConfigs.recommended,
271
275
  {
272
276
  rules: {
277
+ "import/no-deprecated": "on",
273
278
  "import/no-unresolved": "off",
274
279
  "import/named": "off",
275
280
  "import/namespace": "off",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seayoo-web/scripts",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "scripts for seayoo web monorepos",
5
5
  "type": "module",
6
6
  "source": "index.ts",
@@ -1,12 +1,20 @@
1
1
  import { type TSESLint } from "@typescript-eslint/utils";
2
- /** 默认的 import order 检查配置 */
2
+ /**
3
+ * 默认的 import order 检查配置
4
+ *
5
+ * https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/order.md
6
+ */
3
7
  export declare const importOrderRuleConfig: {
4
8
  groups: string[];
5
9
  pathGroups: {
6
10
  pattern: string;
7
11
  group: string;
8
12
  }[];
13
+ distinctGroup: boolean;
14
+ sortTypesGroup: boolean;
9
15
  "newlines-between": string;
16
+ "newlines-between-types": string;
17
+ name: boolean;
10
18
  alphabetize: {
11
19
  order: string;
12
20
  caseInsensitive: boolean;