@itcase/lint 1.0.17 → 1.0.19

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
@@ -27,7 +27,6 @@ const eslintConfig = [
27
27
  {
28
28
  ignores: ['dist', 'node_modules', 'eslint.config.mjs'],
29
29
  },
30
-
31
30
  {
32
31
  files: ['**/*.json'],
33
32
  ...eslintJson.configs['recommended'],
@@ -41,12 +40,9 @@ const eslintConfig = [
41
40
  // @typescript-eslint
42
41
  '@typescript-eslint/ban-ts-comment': 'off',
43
42
  '@typescript-eslint/no-explicit-any': 'off',
44
- <<<<<<< HEAD
45
43
  // Sometimes you need an empty one, for example when extends
46
44
  '@typescript-eslint/no-empty-object-type': 'off',
47
- =======
48
45
  "@typescript-eslint/no-unused-expressions": 'off',
49
- >>>>>>> develop
50
46
 
51
47
  // react
52
48
  // TODO: make rule "react/prop-types" as error only for JS(x) files
@@ -0,0 +1,16 @@
1
+ import eslintStorybook from 'eslint-plugin-storybook'
2
+
3
+ export default [
4
+ {
5
+ plugins: {
6
+ strorybook: eslintStorybook,
7
+ },
8
+ files: ['**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)'],
9
+ rules: {
10
+ // example of overriding a rule
11
+ 'storybook/hierarchy-separator': 'error',
12
+ // example of disabling a rule
13
+ 'storybook/default-exports': 'off',
14
+ },
15
+ },
16
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/lint",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets",
6
6
  "engines": {
@@ -33,7 +33,7 @@
33
33
  "@eslint/compat": "^1.2.2",
34
34
  "@eslint/js": "^9.14.0",
35
35
  "@eslint/markdown": "^6.2.1",
36
- "@ianvs/prettier-plugin-sort-imports": "^4.4.0",
36
+ "@ianvs/prettier-plugin-sort-imports": "^4.3.1",
37
37
  "eslint": "^9.14.0",
38
38
  "eslint-config-prettier": "^9.1.0",
39
39
  "eslint-plugin-json": "^4.0.1",
@@ -66,6 +66,7 @@
66
66
  "@semantic-release/git": "^10.0.1",
67
67
  "@semantic-release/release-notes-generator": "14.0.1",
68
68
  "conventional-changelog-conventionalcommits": "^8.0.0",
69
+ "eslint-plugin-storybook": "^0.11.1",
69
70
  "husky": "^9.1.6",
70
71
  "lint-staged": "^15.2.10",
71
72
  "react": "^18.3.1",