@cuiqg/eslint-config 2.7.3 → 2.8.0

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.
Files changed (2) hide show
  1. package/dist/index.mjs +10 -2
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -397,8 +397,16 @@ async function promise() {
397
397
  //#region src/configs/imports.js
398
398
  async function imports() {
399
399
  return [{
400
- ...(await interopDefault(import("eslint-plugin-import"))).flatConfigs.recommended,
401
- name: "cuiqg/imports"
400
+ name: "cuiqg/imports",
401
+ plugins: { import: await interopDefault(import("eslint-plugin-import-lite")) },
402
+ rules: {
403
+ "import/consistent-type-specifier-style": ["error", "top-level"],
404
+ "import/first": "error",
405
+ "import/no-duplicates": "error",
406
+ "import/no-mutable-exports": "error",
407
+ "import/no-named-default": "error",
408
+ "import/newline-after-import": ["error", { count: 1 }]
409
+ }
402
410
  }];
403
411
  }
404
412
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuiqg/eslint-config",
3
- "version": "2.7.3",
3
+ "version": "2.8.0",
4
4
  "description": "Eslint config for @cuiqg",
5
5
  "keywords": [
6
6
  "eslint-config"
@@ -43,7 +43,7 @@
43
43
  "eslint-config-prettier": "^10.1.8",
44
44
  "eslint-flat-config-utils": "^2.1.4",
45
45
  "eslint-plugin-compat": "^6.0.2",
46
- "eslint-plugin-import": "^2.32.0",
46
+ "eslint-plugin-import-lite": "^0.3.0",
47
47
  "eslint-plugin-jsdoc": "^61.4.1",
48
48
  "eslint-plugin-package-json": "^0.85.0",
49
49
  "eslint-plugin-perfectionist": "^4.15.1",