@itcase/lint 1.0.20 → 1.0.22

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/index.js +7 -4
  2. package/package.json +2 -7
package/eslint/index.js CHANGED
@@ -77,9 +77,12 @@ const eslintConfig = [
77
77
  'set-method',
78
78
  'method',
79
79
  ],
80
- customGroups: {
81
- top: ['id'],
82
- },
80
+ customGroups: [
81
+ {
82
+ groupName: 'top',
83
+ elementNamePattern: 'id',
84
+ },
85
+ ],
83
86
  },
84
87
  ],
85
88
 
@@ -166,7 +169,7 @@ const eslintConfig = [
166
169
  order: 'asc',
167
170
  groups: ['top', 'unknown', 'is', 'callback', 'set'],
168
171
  customGroups: {
169
- top: ['id', '*Id'],
172
+ top: ['id', 'Id'],
170
173
  is: 'is*',
171
174
  callback: 'on*',
172
175
  set: ['set*'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/lint",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets",
6
6
  "engines": {
@@ -47,19 +47,14 @@
47
47
  "eslint-plugin-react-hooks": "^5.0.0",
48
48
  "eslint-plugin-react-native": "^4.1.0",
49
49
  "eslint-plugin-react-refresh": "^0.4.14",
50
- "prettier": "^3.4.1",
51
50
  "eslint-plugin-storybook": "^0.11.1",
51
+ "prettier": "^3.4.1",
52
52
  "stylelint-config-standard": "^36.0.1",
53
53
  "stylelint-no-unsupported-browser-features": "^8.0.2",
54
54
  "stylelint-order": "^6.0.4",
55
55
  "stylelint-prettier": "^5.0.2",
56
56
  "typescript-eslint": "^8.16.0"
57
57
  },
58
- "peerDependencies": {
59
- "@ianvs/prettier-plugin-sort-imports": "^4.3.1",
60
- "prettier": "^3.3.3",
61
- "stylelint": "^16.7.0"
62
- },
63
58
  "devDependencies": {
64
59
  "@commitlint/cli": "^19.6.0",
65
60
  "@commitlint/config-conventional": "^19.6.0",