react-tab-set 2.1.4 → 2.1.6
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.config.mjs +59 -28
- package/package.json +3 -3
package/eslint.config.mjs
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import globals from 'globals'
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
configs as standard
|
|
4
|
+
} from '@sequencemedia/eslint-config-standard'
|
|
5
|
+
import {
|
|
6
|
+
configs as typescript
|
|
7
|
+
} from '@sequencemedia/eslint-config-typescript'
|
|
4
8
|
import babelParser from '@babel/eslint-parser'
|
|
5
9
|
import typescriptParser from '@typescript-eslint/parser'
|
|
6
10
|
import reactPlugin from 'eslint-plugin-react'
|
|
@@ -11,6 +15,10 @@ const reactParserOptions = {
|
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
|
|
18
|
+
const reactPlugins = {
|
|
19
|
+
react: reactPlugin
|
|
20
|
+
}
|
|
21
|
+
|
|
14
22
|
const reactRules = {
|
|
15
23
|
'no-unused-vars': [
|
|
16
24
|
'error',
|
|
@@ -47,13 +55,13 @@ export default [
|
|
|
47
55
|
* React config for all `jsx` and `tsx` files
|
|
48
56
|
*/
|
|
49
57
|
{
|
|
58
|
+
...reactPlugin.configs.flat.recommended,
|
|
50
59
|
files: [
|
|
51
|
-
'**/*.tsx'
|
|
52
|
-
|
|
53
|
-
],
|
|
54
|
-
...reactPlugin.configs.flat.recommended
|
|
60
|
+
'**/*.{jsx,tsx}'
|
|
61
|
+
]
|
|
55
62
|
},
|
|
56
|
-
|
|
63
|
+
{
|
|
64
|
+
...standard.recommended,
|
|
57
65
|
files: [
|
|
58
66
|
'**/*.{mjs,cjs}'
|
|
59
67
|
],
|
|
@@ -62,49 +70,61 @@ export default [
|
|
|
62
70
|
'stories'
|
|
63
71
|
],
|
|
64
72
|
languageOptions: {
|
|
73
|
+
...standard.recommended.languageOptions,
|
|
65
74
|
globals: {
|
|
75
|
+
...standard.recommended.globals,
|
|
66
76
|
...globals.node
|
|
67
77
|
}
|
|
68
78
|
}
|
|
69
|
-
}
|
|
70
|
-
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
...standard.recommended,
|
|
71
82
|
files: [
|
|
72
83
|
'src/**/*.{mjs,cjs}'
|
|
73
84
|
],
|
|
74
85
|
languageOptions: {
|
|
86
|
+
...standard.recommended.languageOptions,
|
|
75
87
|
globals: {
|
|
88
|
+
...standard.recommended.languageOptions.globals,
|
|
76
89
|
...globals.browser
|
|
77
90
|
}
|
|
78
91
|
}
|
|
79
|
-
}
|
|
92
|
+
},
|
|
80
93
|
/**
|
|
81
94
|
* Standard config for all `jsx` and `tsx` files
|
|
82
95
|
*/
|
|
83
|
-
|
|
96
|
+
{
|
|
97
|
+
...standard.recommended,
|
|
84
98
|
files: [
|
|
85
|
-
'**/*.tsx'
|
|
86
|
-
'**/*.jsx'
|
|
99
|
+
'**/*.{jsx,tsx}'
|
|
87
100
|
],
|
|
88
|
-
plugins: {
|
|
89
|
-
react: reactPlugin
|
|
90
|
-
},
|
|
91
101
|
languageOptions: {
|
|
102
|
+
...standard.recommended.languageOptions,
|
|
92
103
|
parser: babelParser,
|
|
93
104
|
parserOptions: {
|
|
105
|
+
...standard.recommended.languageOptions.parserOptions,
|
|
94
106
|
...reactParserOptions
|
|
95
107
|
},
|
|
96
108
|
globals: {
|
|
109
|
+
...standard.recommended.globals,
|
|
97
110
|
...globals.browser
|
|
98
111
|
}
|
|
99
112
|
},
|
|
113
|
+
plugins: {
|
|
114
|
+
...standard.recommended.plugins,
|
|
115
|
+
...reactPlugins
|
|
116
|
+
},
|
|
100
117
|
rules: {
|
|
118
|
+
...standard.recommended.rules,
|
|
101
119
|
...reactRules
|
|
102
120
|
},
|
|
103
121
|
settings: {
|
|
122
|
+
...standard.recommended.settings,
|
|
104
123
|
...reactSettings
|
|
105
124
|
}
|
|
106
|
-
}
|
|
107
|
-
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
...typescript.recommended,
|
|
108
128
|
files: [
|
|
109
129
|
'**/*.{mts,cts}'
|
|
110
130
|
],
|
|
@@ -113,46 +133,57 @@ export default [
|
|
|
113
133
|
'stories'
|
|
114
134
|
],
|
|
115
135
|
languageOptions: {
|
|
136
|
+
...typescript.recommended.languageOptions,
|
|
116
137
|
globals: {
|
|
138
|
+
...typescript.recommended.languageOptions.globals,
|
|
117
139
|
...globals.node
|
|
118
140
|
}
|
|
119
141
|
}
|
|
120
|
-
}
|
|
121
|
-
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
...typescript.recommended,
|
|
122
145
|
files: [
|
|
123
146
|
'src/**/*.{mts,cts}'
|
|
124
147
|
],
|
|
125
148
|
languageOptions: {
|
|
149
|
+
...typescript.recommended.languageOptions,
|
|
126
150
|
globals: {
|
|
151
|
+
...typescript.recommended.languageOptions.globals,
|
|
127
152
|
...globals.browser
|
|
128
153
|
}
|
|
129
154
|
}
|
|
130
|
-
}
|
|
155
|
+
},
|
|
131
156
|
/**
|
|
132
157
|
* TypeScript config for only `tsx` files
|
|
133
158
|
*/
|
|
134
|
-
|
|
159
|
+
{
|
|
160
|
+
...typescript.recommended,
|
|
135
161
|
files: [
|
|
136
162
|
'src/**/*.tsx'
|
|
137
163
|
],
|
|
138
|
-
plugins: {
|
|
139
|
-
react: reactPlugin
|
|
140
|
-
},
|
|
141
164
|
languageOptions: {
|
|
165
|
+
...typescript.recommended.languageOptions,
|
|
142
166
|
parser: typescriptParser,
|
|
143
167
|
parserOptions: {
|
|
144
|
-
...
|
|
145
|
-
|
|
168
|
+
...typescript.recommended.languageOptions.parserOptions,
|
|
169
|
+
...reactParserOptions
|
|
146
170
|
},
|
|
147
171
|
globals: {
|
|
172
|
+
...typescript.recommended.languageOptions.globals,
|
|
148
173
|
...globals.browser
|
|
149
174
|
}
|
|
150
175
|
},
|
|
176
|
+
plugins: {
|
|
177
|
+
...typescript.recommended.plugins,
|
|
178
|
+
...reactPlugins
|
|
179
|
+
},
|
|
151
180
|
rules: {
|
|
181
|
+
...typescript.recommended.rules,
|
|
152
182
|
...reactRules
|
|
153
183
|
},
|
|
154
184
|
settings: {
|
|
185
|
+
...typescript.recommended.settings,
|
|
155
186
|
...reactSettings
|
|
156
187
|
}
|
|
157
|
-
}
|
|
188
|
+
}
|
|
158
189
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-tab-set",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "A React Tab Set component",
|
|
5
5
|
"main": "./src/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@babel/preset-react": "^7.26.3",
|
|
38
38
|
"@babel/preset-typescript": "^7.26.0",
|
|
39
39
|
"@babel/register": "^7.25.9",
|
|
40
|
-
"@sequencemedia/eslint-config-standard": "^0.1
|
|
41
|
-
"@sequencemedia/eslint-config-typescript": "^0.
|
|
40
|
+
"@sequencemedia/eslint-config-standard": "^0.2.1",
|
|
41
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.1",
|
|
42
42
|
"@storybook/addon-essentials": "7.6.20",
|
|
43
43
|
"@storybook/react": "7.6.20",
|
|
44
44
|
"@storybook/react-webpack5": "7.6.20",
|