react-tab-set 2.1.3 → 2.1.5
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 +33 -20
- package/package.json +3 -3
package/eslint.config.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import globals from 'globals'
|
|
2
|
-
import standard from '@sequencemedia/eslint-config-standard/merge'
|
|
3
|
-
import typescript from '@sequencemedia/eslint-config-typescript/merge'
|
|
2
|
+
import standard from '@sequencemedia/eslint-config-standard/merge/recommended'
|
|
3
|
+
import typescript from '@sequencemedia/eslint-config-typescript/merge/recommended'
|
|
4
4
|
import babelParser from '@babel/eslint-parser'
|
|
5
5
|
import typescriptParser from '@typescript-eslint/parser'
|
|
6
6
|
import reactPlugin from 'eslint-plugin-react'
|
|
@@ -11,6 +11,10 @@ const reactParserOptions = {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
const reactPlugins = {
|
|
15
|
+
react: reactPlugin
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
const reactRules = {
|
|
15
19
|
'no-unused-vars': [
|
|
16
20
|
'error',
|
|
@@ -43,14 +47,16 @@ const reactSettings = {
|
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
export default [
|
|
50
|
+
/**
|
|
51
|
+
* React config for all `jsx` and `tsx` files
|
|
52
|
+
*/
|
|
46
53
|
{
|
|
54
|
+
...reactPlugin.configs.flat.recommended,
|
|
47
55
|
files: [
|
|
48
|
-
'**/*.tsx'
|
|
49
|
-
|
|
50
|
-
],
|
|
51
|
-
...reactPlugin.configs.flat.recommended
|
|
56
|
+
'**/*.{jsx,tsx}'
|
|
57
|
+
]
|
|
52
58
|
},
|
|
53
|
-
|
|
59
|
+
standard({
|
|
54
60
|
files: [
|
|
55
61
|
'**/*.{mjs,cjs}'
|
|
56
62
|
],
|
|
@@ -64,7 +70,7 @@ export default [
|
|
|
64
70
|
}
|
|
65
71
|
}
|
|
66
72
|
}),
|
|
67
|
-
|
|
73
|
+
standard({
|
|
68
74
|
files: [
|
|
69
75
|
'src/**/*.{mjs,cjs}'
|
|
70
76
|
],
|
|
@@ -74,13 +80,13 @@ export default [
|
|
|
74
80
|
}
|
|
75
81
|
}
|
|
76
82
|
}),
|
|
77
|
-
|
|
83
|
+
/**
|
|
84
|
+
* Standard config for all `jsx` and `tsx` files
|
|
85
|
+
*/
|
|
86
|
+
standard({
|
|
78
87
|
files: [
|
|
79
|
-
'
|
|
88
|
+
'**/*.{jsx,tsx}'
|
|
80
89
|
],
|
|
81
|
-
plugins: {
|
|
82
|
-
react: reactPlugin
|
|
83
|
-
},
|
|
84
90
|
languageOptions: {
|
|
85
91
|
parser: babelParser,
|
|
86
92
|
parserOptions: {
|
|
@@ -90,6 +96,9 @@ export default [
|
|
|
90
96
|
...globals.browser
|
|
91
97
|
}
|
|
92
98
|
},
|
|
99
|
+
plugins: {
|
|
100
|
+
...reactPlugins
|
|
101
|
+
},
|
|
93
102
|
rules: {
|
|
94
103
|
...reactRules
|
|
95
104
|
},
|
|
@@ -97,12 +106,13 @@ export default [
|
|
|
97
106
|
...reactSettings
|
|
98
107
|
}
|
|
99
108
|
}),
|
|
100
|
-
|
|
109
|
+
typescript({
|
|
101
110
|
files: [
|
|
102
111
|
'**/*.{mts,cts}'
|
|
103
112
|
],
|
|
104
113
|
ignores: [
|
|
105
|
-
'src'
|
|
114
|
+
'src',
|
|
115
|
+
'stories'
|
|
106
116
|
],
|
|
107
117
|
languageOptions: {
|
|
108
118
|
globals: {
|
|
@@ -110,7 +120,7 @@ export default [
|
|
|
110
120
|
}
|
|
111
121
|
}
|
|
112
122
|
}),
|
|
113
|
-
|
|
123
|
+
typescript({
|
|
114
124
|
files: [
|
|
115
125
|
'src/**/*.{mts,cts}'
|
|
116
126
|
],
|
|
@@ -120,13 +130,13 @@ export default [
|
|
|
120
130
|
}
|
|
121
131
|
}
|
|
122
132
|
}),
|
|
123
|
-
|
|
133
|
+
/**
|
|
134
|
+
* TypeScript config for only `tsx` files
|
|
135
|
+
*/
|
|
136
|
+
typescript({
|
|
124
137
|
files: [
|
|
125
138
|
'src/**/*.tsx'
|
|
126
139
|
],
|
|
127
|
-
plugins: {
|
|
128
|
-
react: reactPlugin
|
|
129
|
-
},
|
|
130
140
|
languageOptions: {
|
|
131
141
|
parser: typescriptParser,
|
|
132
142
|
parserOptions: {
|
|
@@ -137,6 +147,9 @@ export default [
|
|
|
137
147
|
...globals.browser
|
|
138
148
|
}
|
|
139
149
|
},
|
|
150
|
+
plugins: {
|
|
151
|
+
...reactPlugins
|
|
152
|
+
},
|
|
140
153
|
rules: {
|
|
141
154
|
...reactRules
|
|
142
155
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-tab-set",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
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.
|
|
41
|
-
"@sequencemedia/eslint-config-typescript": "^0.0
|
|
40
|
+
"@sequencemedia/eslint-config-standard": "^0.2.0",
|
|
41
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.0",
|
|
42
42
|
"@storybook/addon-essentials": "7.6.20",
|
|
43
43
|
"@storybook/react": "7.6.20",
|
|
44
44
|
"@storybook/react-webpack5": "7.6.20",
|