@itcase/lint 1.1.120 → 1.1.121

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/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## [1.1.121](https://github.com/ITCase/itcase-lint/compare/v1.1.120...v1.1.121) (2026-08-07)
2
+
1
3
  ## [1.1.120](https://github.com/ITCase/itcase-lint/compare/v1.1.119...v1.1.120) (2026-08-06)
2
4
 
3
5
  ## [1.1.119](https://github.com/ITCase/itcase-lint/compare/v1.1.118...v1.1.119) (2026-07-28)
@@ -1,13 +1,16 @@
1
1
  import { fixupPluginRules } from '@eslint/compat';
2
2
  import eslintReactNative from 'eslint-plugin-react-native';
3
3
 
4
+ const jsTsFiles = ['**/*.{js,jsx,mjs,cjs,ts,tsx}'];
4
5
  var index = [
5
6
  {
7
+ files: jsTsFiles,
6
8
  plugins: {
7
9
  'react-native': fixupPluginRules(eslintReactNative),
8
10
  },
9
11
  },
10
12
  {
13
+ files: jsTsFiles,
11
14
  rules: {
12
15
  'react-native/no-color-literals': 'warn',
13
16
  'react-native/no-inline-styles': 'warn',
package/dist/eslint.js CHANGED
@@ -54,10 +54,20 @@ const pluginWithConfigs = {
54
54
  };
55
55
 
56
56
  /* eslint-disable perfectionist/sort-objects */
57
+ const jsTsFiles = ['**/*.{js,jsx,mjs,cjs,ts,tsx}'];
57
58
  const eslintConfig = [
58
- eslintJs.configs.recommended,
59
- ...eslintTypeScript.configs.recommended,
60
- eslintPluginPrettierRecommended,
59
+ {
60
+ ...eslintJs.configs.recommended,
61
+ files: jsTsFiles,
62
+ },
63
+ ...eslintTypeScript.configs.recommended.map((config) => ({
64
+ ...config,
65
+ files: 'files' in config && config.files ? config.files : jsTsFiles,
66
+ })),
67
+ {
68
+ ...eslintPluginPrettierRecommended,
69
+ files: jsTsFiles,
70
+ },
61
71
  {
62
72
  languageOptions: {
63
73
  ...pluginWithConfigs$1.configs.recommended.languageOptions,
@@ -88,10 +98,11 @@ const eslintConfig = [
88
98
  files: ['**/*.json'],
89
99
  ...eslintJson.configs['recommended'],
90
100
  },
91
- {
101
+ // configs.recommended is an array; spreading it into an object created invalid key "0"
102
+ ...eslintMarkdown.configs.recommended.map((config) => ({
103
+ ...config,
92
104
  files: ['**/*.md', '**/*.mdx'],
93
- ...eslintMarkdown.configs.recommended,
94
- },
105
+ })),
95
106
  {
96
107
  // Rules for HTML files
97
108
  files: ['**/*.html'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/lint",
3
- "version": "1.1.120",
3
+ "version": "1.1.121",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets ",
6
6
  "engines": {
@@ -72,7 +72,7 @@
72
72
  "eslint-plugin-react-hooks": "^7.1.1",
73
73
  "eslint-plugin-react-native": "^5.0.0",
74
74
  "eslint-plugin-react-refresh": "^0.5.3",
75
- "eslint-plugin-storybook": "^10.5.6",
75
+ "eslint-plugin-storybook": "^10.5.7",
76
76
  "expo-modules-autolinking": "^57.0.9",
77
77
  "globals": "^17.9.0",
78
78
  "prettier": "^3.9.6",
@@ -108,7 +108,7 @@
108
108
  "react": "^19.2.4",
109
109
  "rollup-preserve-directives": "^1.1.3",
110
110
  "semantic-release": "^25.0.9",
111
- "storybook": "^10.5.6",
111
+ "storybook": "^10.5.7",
112
112
  "tsx": "^4.23.9",
113
113
  "typescript": "^6.0.3"
114
114
  }