@blueking/bkui-lint 0.1.9 → 0.1.10

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/eslint.mjs +18 -10
  2. package/package.json +25 -23
package/eslint.mjs CHANGED
@@ -3,7 +3,7 @@ import eslintConfigPrettier from 'eslint-config-prettier';
3
3
  import tencentEslintLegacyRules from 'eslint-config-tencent/ts';
4
4
  import codecc from 'eslint-plugin-codecc';
5
5
  import perfectionist from 'eslint-plugin-perfectionist';
6
- // import prettier from 'eslint-plugin-prettier';
6
+ import prettier from 'eslint-plugin-prettier';
7
7
  import eslintVuePlugin from 'eslint-plugin-vue';
8
8
  import tsEslint from 'typescript-eslint';
9
9
 
@@ -147,10 +147,10 @@ export default [
147
147
  {
148
148
  ignores: ['node_modules', 'dist', '*.json'],
149
149
  },
150
- // {
151
- // plugins: { prettier },
152
- // rules: { ...prettier.configs.recommended.rules },
153
- // },
150
+ {
151
+ plugins: { prettier },
152
+ rules: { ...prettier.configs.recommended.rules },
153
+ },
154
154
  ...createVueEslintConfig(),
155
155
  {
156
156
  files: ['*.js', '**/*.js', '*.ts', '**/*.ts'],
@@ -235,11 +235,19 @@ export default [
235
235
  'vueI18n',
236
236
  'magicBox',
237
237
  'tsxSupport',
238
- ['builtin', 'external'],
239
- ['internal', 'sibling', 'parent', 'side-effect', 'index', 'object'],
238
+ ['value-builtin', 'value-external'],
239
+ ['value-internal', 'value-sibling', 'value-parent', 'value-side-effect', 'value-index'],
240
240
  'unknown',
241
- ['type', 'builtin-type', 'external-type', 'internal-type', 'parent-type', 'sibling-type', 'index-type'],
242
- ['side-effect-style', 'style'],
241
+ [
242
+ 'type-import',
243
+ 'type-builtin',
244
+ 'type-external',
245
+ 'type-internal',
246
+ 'type-parent',
247
+ 'type-sibling',
248
+ 'type-index',
249
+ ],
250
+ ['side-effect-style', 'value-style'],
243
251
  ],
244
252
  customGroups: [
245
253
  {
@@ -267,7 +275,7 @@ export default [
267
275
  type: 'natural',
268
276
  order: 'asc',
269
277
  },
270
- newlinesBetween: 'always',
278
+ newlinesBetween: 1,
271
279
  internalPattern: ['^@/', '^@router/', '^@store/', '^@page/', '^@static/'],
272
280
  sortSideEffects: true,
273
281
  },
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@blueking/bkui-lint",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "蓝鲸监控平台公共lint工具",
5
5
  "license": "MIT",
6
6
  "author": "Tencent BlueKing",
7
+ "scripts": {
8
+ "prepublishOnly": "echo \"========== @blueking/bkmonitor-lint publish ==========\""
9
+ },
7
10
  "module": "index.js",
8
11
  "files": [
9
12
  "eslint.mjs",
@@ -19,31 +22,30 @@
19
22
  "registry": "https://registry.npmjs.org/"
20
23
  },
21
24
  "dependencies": {
22
- "@biomejs/biome": "^2.1.2",
23
- "@eslint/js": "^9.31.0",
24
- "eslint": "^9.31.0",
25
+ "@biomejs/biome": "^2.3.13",
26
+ "@eslint/js": "^9.39.2",
27
+ "eslint": "^9.39.2",
25
28
  "eslint-config-prettier": "^10.1.8",
26
29
  "eslint-config-tencent": "^1.1.3",
27
30
  "eslint-plugin-codecc": "1.0.0-beta.1",
28
- "eslint-plugin-perfectionist": "^4.15.0",
29
- "eslint-plugin-prettier": "^5.5.3",
30
- "eslint-plugin-vue": "^10.3.0",
31
- "lint-staged": "16.1.2",
32
- "picocolors": "^1.0.0",
33
- "postcss-html": "^1.8.0",
31
+ "eslint-plugin-perfectionist": "^5.4.0",
32
+ "eslint-plugin-prettier": "^5.5.5",
33
+ "eslint-plugin-vue": "^10.7.0",
34
+ "lint-staged": "16.2.7",
35
+ "picocolors": "^1.1.1",
36
+ "postcss-html": "^1.8.1",
34
37
  "postcss-less": "^6.0.0",
35
38
  "postcss-scss": "^4.0.9",
36
- "prettier": "^3.6.2",
37
- "simple-git-hooks": "^2.13.0",
38
- "stylelint": "^16.22.0",
39
- "stylelint-config-recess-order": "^7.1.0",
39
+ "prettier": "^3.8.1",
40
+ "simple-git-hooks": "^2.13.1",
41
+ "stylelint": "^17.1.0",
42
+ "stylelint-config-recess-order": "^7.6.0",
40
43
  "stylelint-config-recommended-vue": "1.5.0",
41
- "stylelint-config-standard": "39.0.0",
42
- "stylelint-config-standard-scss": "16.0.0",
43
- "stylelint-order": "^7.0.0",
44
- "stylelint-scss": "^6.12.1",
45
- "typescript": "^5.8.3",
46
- "typescript-eslint": "^8.38.0"
47
- },
48
- "scripts": {}
49
- }
44
+ "stylelint-config-standard": "40.0.0",
45
+ "stylelint-config-standard-scss": "17.0.0",
46
+ "stylelint-order": "^7.0.1",
47
+ "stylelint-scss": "^7.0.0",
48
+ "typescript": "^5.9.3",
49
+ "typescript-eslint": "^8.54.0"
50
+ }
51
+ }