@itcase/lint 1.0.31 → 1.0.33
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 +2 -1
- package/eslint/mobx/index.js +0 -1
- package/eslint/storybook/index.js +1 -7
- package/package.json +5 -3
package/eslint/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { fixupPluginRules } from '@eslint/compat'
|
|
2
2
|
import eslintJs from '@eslint/js'
|
|
3
3
|
import eslintMarkdown from '@eslint/markdown'
|
|
4
|
+
import eslintHtml from 'eslint-plugin-html'
|
|
4
5
|
import eslintJson from 'eslint-plugin-json'
|
|
5
6
|
import eslintPerfectionist from 'eslint-plugin-perfectionist'
|
|
6
7
|
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
|
|
@@ -30,6 +31,7 @@ const eslintConfig = [
|
|
|
30
31
|
plugins: {
|
|
31
32
|
react: eslintReact,
|
|
32
33
|
'react-hooks': fixupPluginRules(eslintReactHooks),
|
|
34
|
+
html: eslintHtml,
|
|
33
35
|
perfectionist: eslintPerfectionist,
|
|
34
36
|
},
|
|
35
37
|
},
|
|
@@ -42,7 +44,6 @@ const eslintConfig = [
|
|
|
42
44
|
files: ['**/*.json'],
|
|
43
45
|
...eslintJson.configs['recommended'],
|
|
44
46
|
},
|
|
45
|
-
|
|
46
47
|
{
|
|
47
48
|
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
|
|
48
49
|
rules: {
|
package/eslint/mobx/index.js
CHANGED
|
@@ -5,12 +5,6 @@ export default [
|
|
|
5
5
|
plugins: {
|
|
6
6
|
strorybook: eslintStorybook,
|
|
7
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
|
-
},
|
|
8
|
+
files: ['**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)']
|
|
15
9
|
},
|
|
16
10
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/lint",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Code style linter configuration presets",
|
|
6
6
|
"engines": {
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"eslint/mobx",
|
|
23
23
|
"eslint/perfectionist",
|
|
24
24
|
"eslint/react-native",
|
|
25
|
+
"eslint/storybook",
|
|
25
26
|
"prettier",
|
|
26
27
|
"README.md",
|
|
27
28
|
"storybook",
|
|
@@ -34,11 +35,12 @@
|
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@babel/eslint-parser": "^7.25.9",
|
|
36
37
|
"@eslint/compat": "^1.2.3",
|
|
37
|
-
"@eslint/js": "^9.
|
|
38
|
+
"@eslint/js": "^9.16.0",
|
|
38
39
|
"@eslint/markdown": "^6.2.1",
|
|
39
40
|
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
|
|
40
|
-
"eslint": "^9.
|
|
41
|
+
"eslint": "^9.16.0",
|
|
41
42
|
"eslint-config-prettier": "^9.1.0",
|
|
43
|
+
"eslint-plugin-html": "^8.1.2",
|
|
42
44
|
"eslint-plugin-json": "^4.0.1",
|
|
43
45
|
"eslint-plugin-mobx": "^0.0.13",
|
|
44
46
|
"eslint-plugin-n": "^17.14.0",
|