@itcase/lint 1.0.13 → 1.0.15

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/eslint/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  import { fixupPluginRules } from '@eslint/compat'
2
2
  import eslintJs from '@eslint/js'
3
+ import eslintMarkdown from '@eslint/markdown'
4
+ import eslintJson from 'eslint-plugin-json'
3
5
  import eslintPerfectionist from 'eslint-plugin-perfectionist'
4
6
  import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
5
7
  import eslintReact from 'eslint-plugin-react'
@@ -26,6 +28,10 @@ const eslintConfig = [
26
28
  ignores: ['dist', 'node_modules', 'eslint.config.mjs'],
27
29
  },
28
30
 
31
+ {
32
+ files: ['**/*.json'],
33
+ ...eslintJson.configs['recommended'],
34
+ },
29
35
  {
30
36
  files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
31
37
  rules: {
@@ -197,6 +203,7 @@ const eslintConfig = [
197
203
  'perfectionist/sort-intersection-types': ['error', { type: 'natural', order: 'asc' }],
198
204
  },
199
205
  },
206
+ ...eslintMarkdown.configs.recommended,
200
207
  ]
201
208
 
202
209
  export default eslintConfig
@@ -6,7 +6,6 @@ export default [
6
6
  mobx: eslintMobx,
7
7
  },
8
8
  },
9
-
10
9
  {
11
10
  rules: {
12
11
  // mobx
@@ -0,0 +1,20 @@
1
+ import { fixupPluginRules } from '@eslint/compat'
2
+ import eslintReactNative from 'eslint-plugin-react-native'
3
+
4
+ export default [
5
+ {
6
+ plugins: {
7
+ 'react-native': fixupPluginRules(eslintReactNative),
8
+ },
9
+ },
10
+ {
11
+ rules: {
12
+ 'react-native/no-unused-styles': 'error',
13
+ 'react-native/split-platform-components': 'error',
14
+ 'react-native/no-inline-styles': 'error',
15
+ 'react-native/no-color-literals': 'error',
16
+ 'react-native/no-raw-text': 'error',
17
+ 'react-native/no-single-element-style-arrays': 'error',
18
+ },
19
+ },
20
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/lint",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets",
6
6
  "engines": {
@@ -29,45 +29,47 @@
29
29
  "registry": "https://registry.npmjs.org/"
30
30
  },
31
31
  "dependencies": {
32
- "@babel/eslint-parser": "^7.25.1",
33
- "@eslint/compat": "^1.1.1",
34
- "@eslint/js": "^9.10.0",
35
- "@ianvs/prettier-plugin-sort-imports": "^4.3.1",
36
- "eslint": "^9.10.0",
32
+ "@babel/eslint-parser": "^7.25.9",
33
+ "@eslint/compat": "^1.2.2",
34
+ "@eslint/js": "^9.14.0",
35
+ "@eslint/markdown": "^6.2.1",
36
+ "@ianvs/prettier-plugin-sort-imports": "^4.4.0",
37
+ "eslint": "^9.14.0",
37
38
  "eslint-config-prettier": "^9.1.0",
38
- "eslint-plugin-mobx": "^0.0.11",
39
- "eslint-plugin-n": "^17.10.2",
39
+ "eslint-plugin-json": "^4.0.1",
40
+ "eslint-plugin-mobx": "^0.0.13",
41
+ "eslint-plugin-n": "^17.13.1",
40
42
  "eslint-plugin-node": "^11.1.0",
41
- "eslint-plugin-perfectionist": "^3.5.0",
43
+ "eslint-plugin-perfectionist": "^3.9.1",
42
44
  "eslint-plugin-prettier": "^5.2.1",
43
45
  "eslint-plugin-promise": "^7.1.0",
44
- "eslint-plugin-react": "^7.35.2",
45
- "eslint-plugin-react-hooks": "^4.6.2",
46
- "eslint-plugin-react-refresh": "^0.4.11",
46
+ "eslint-plugin-react": "^7.37.2",
47
+ "eslint-plugin-react-hooks": "^5.0.0",
48
+ "eslint-plugin-react-native": "^4.1.0",
49
+ "eslint-plugin-react-refresh": "^0.4.14",
47
50
  "prettier": "^3.3.3",
48
51
  "stylelint-config-standard": "^36.0.1",
49
- "stylelint-no-unsupported-browser-features": "^8.0.1",
52
+ "stylelint-no-unsupported-browser-features": "^8.0.2",
50
53
  "stylelint-order": "^6.0.4",
51
54
  "stylelint-prettier": "^5.0.2",
52
- "typescript-eslint": "^8.5.0"
55
+ "typescript-eslint": "^8.14.0"
53
56
  },
54
57
  "peerDependencies": {
55
58
  "@ianvs/prettier-plugin-sort-imports": "^4.3.1",
56
- "eslint": "^9.7.0",
57
59
  "prettier": "^3.3.3",
58
60
  "stylelint": "^16.7.0"
59
61
  },
60
62
  "devDependencies": {
61
- "@commitlint/cli": "^19.4.1",
62
- "@commitlint/config-conventional": "^19.4.1",
63
+ "@commitlint/cli": "^19.5.0",
64
+ "@commitlint/config-conventional": "^19.5.0",
63
65
  "@semantic-release/changelog": "^6.0.3",
64
66
  "@semantic-release/git": "^10.0.1",
65
67
  "@semantic-release/release-notes-generator": "14.0.1",
66
68
  "conventional-changelog-conventionalcommits": "^8.0.0",
67
- "husky": "^9.1.5",
69
+ "husky": "^9.1.6",
68
70
  "lint-staged": "^15.2.10",
69
71
  "react": "^18.3.1",
70
- "semantic-release": "^24.1.0",
71
- "typescript": "^5.6.2"
72
+ "semantic-release": "^24.2.0",
73
+ "typescript": "^5.6.3"
72
74
  }
73
75
  }
@@ -71,6 +71,12 @@ export default {
71
71
  ignoreTypes: ['/^/'],
72
72
  },
73
73
  ],
74
+ 'function-no-unknown': [
75
+ true,
76
+ {
77
+ ignoreFunctions: ['fluid'],
78
+ },
79
+ ],
74
80
  'shorthand-property-no-redundant-values': null,
75
81
  'order/order': [
76
82
  [