react-tab-set 2.1.8 → 2.1.9
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/babel.config.cjs +12 -1
- package/eslint.config.mjs +25 -5
- package/package.json +5 -2
package/babel.config.cjs
CHANGED
|
@@ -38,10 +38,21 @@ const presets = [
|
|
|
38
38
|
]
|
|
39
39
|
]
|
|
40
40
|
|
|
41
|
+
const plugins = [
|
|
42
|
+
[
|
|
43
|
+
'module-resolver', {
|
|
44
|
+
alias: {
|
|
45
|
+
'react-tab-set': './src'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
]
|
|
50
|
+
|
|
41
51
|
module.exports = (api) => {
|
|
42
52
|
if (api) api.cache.using(env)
|
|
43
53
|
|
|
44
54
|
return {
|
|
45
|
-
presets
|
|
55
|
+
presets,
|
|
56
|
+
plugins
|
|
46
57
|
}
|
|
47
58
|
}
|
package/eslint.config.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import typescript from '@sequencemedia/eslint-config-typescript/configs/recommen
|
|
|
4
4
|
import babelParser from '@babel/eslint-parser'
|
|
5
5
|
import typescriptParser from '@typescript-eslint/parser'
|
|
6
6
|
import reactPlugin from 'eslint-plugin-react'
|
|
7
|
+
import storybookPlugin from 'eslint-plugin-storybook'
|
|
7
8
|
|
|
8
9
|
const reactParserOptions = {
|
|
9
10
|
ecmaFeatures: {
|
|
@@ -15,6 +16,10 @@ const reactPlugins = {
|
|
|
15
16
|
react: reactPlugin
|
|
16
17
|
}
|
|
17
18
|
|
|
19
|
+
const storybookPlugins = {
|
|
20
|
+
storybook: storybookPlugin
|
|
21
|
+
}
|
|
22
|
+
|
|
18
23
|
const reactRules = {
|
|
19
24
|
'no-unused-vars': [
|
|
20
25
|
'error',
|
|
@@ -52,10 +57,18 @@ export default [
|
|
|
52
57
|
*/
|
|
53
58
|
{
|
|
54
59
|
...reactPlugin.configs.flat.recommended,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
60
|
+
settings: {
|
|
61
|
+
...reactPlugin.configs.flat.recommended.settings,
|
|
62
|
+
...reactSettings
|
|
63
|
+
}
|
|
58
64
|
},
|
|
65
|
+
/**
|
|
66
|
+
* Storybook config
|
|
67
|
+
*/
|
|
68
|
+
...storybookPlugin.configs['flat/recommended'],
|
|
69
|
+
/**
|
|
70
|
+
* Standard config
|
|
71
|
+
*/
|
|
59
72
|
standard({
|
|
60
73
|
files: [
|
|
61
74
|
'**/*.{mjs,cjs}'
|
|
@@ -98,15 +111,22 @@ export default [
|
|
|
98
111
|
}
|
|
99
112
|
},
|
|
100
113
|
plugins: {
|
|
101
|
-
...reactPlugins
|
|
114
|
+
...reactPlugins,
|
|
115
|
+
...storybookPlugins
|
|
102
116
|
},
|
|
103
117
|
rules: {
|
|
104
118
|
...reactRules
|
|
105
119
|
},
|
|
106
120
|
settings: {
|
|
107
|
-
...reactSettings
|
|
121
|
+
...reactSettings,
|
|
122
|
+
'import/resolver': {
|
|
123
|
+
'babel-module': {}
|
|
124
|
+
}
|
|
108
125
|
}
|
|
109
126
|
}),
|
|
127
|
+
/**
|
|
128
|
+
* TypeScript config
|
|
129
|
+
*/
|
|
110
130
|
typescript({
|
|
111
131
|
files: [
|
|
112
132
|
'**/*.{mts,cts}'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-tab-set",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.9",
|
|
4
4
|
"description": "A React Tab Set component",
|
|
5
5
|
"main": "./src/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"storybook": "storybook dev -p 6006"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"debug": "^4.
|
|
28
|
+
"debug": "^4.4.0",
|
|
29
29
|
"uuid": "^11.0.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -40,14 +40,17 @@
|
|
|
40
40
|
"@sequencemedia/eslint-config-standard": "^0.2.4",
|
|
41
41
|
"@sequencemedia/eslint-config-typescript": "^0.1.4",
|
|
42
42
|
"@storybook/addon-essentials": "7.6.20",
|
|
43
|
+
"@storybook/addon-links": "7.6.20",
|
|
43
44
|
"@storybook/react": "7.6.20",
|
|
44
45
|
"@storybook/react-webpack5": "7.6.20",
|
|
45
46
|
"@types/debug": "^4.1.12",
|
|
46
47
|
"@types/react": "^18.3.13",
|
|
47
48
|
"@types/uuid": "^10.0.0",
|
|
48
49
|
"@typescript-eslint/parser": "^8.17.0",
|
|
50
|
+
"babel-plugin-module-resolver": "^5.0.2",
|
|
49
51
|
"core-js": "^3.39.0",
|
|
50
52
|
"eslint": "^9.16.0",
|
|
53
|
+
"eslint-import-resolver-babel-module": "^5.3.2",
|
|
51
54
|
"eslint-plugin-react": "^7.37.2",
|
|
52
55
|
"eslint-plugin-storybook": "^0.11.1",
|
|
53
56
|
"globals": "^15.13.0",
|