Skip to content

Commit b0a915e

Browse files
Merge release/2.2.2 into main branch (#1044)
* Migrates Tabs component to TS and CSS modules (#1038) * remove jest mock functions from stories (#1040) * Fixes storybook webpack config (#1042) * re-write components without styled-components (#1043)
1 parent 4f088bd commit b0a915e

28 files changed

+1581
-5253
lines changed

.eslintrc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"env": {
2424
"browser": true
2525
},
26-
"parser": "babel-eslint",
26+
"parser": "@typescript-eslint/parser",
2727
"plugins": [ "babel", "react", "react-hooks" ],
2828
"rules": {
2929
"babel/semi": 2,
@@ -112,6 +112,12 @@
112112
"react-hooks/rules-of-hooks": "error",
113113
"semi": 0
114114
}
115+
},
116+
{
117+
"files": "**/*.{ts,tsx}",
118+
"rules": {
119+
"react/require-default-props": "off"
120+
}
115121
}
116122
],
117123
"settings": {
@@ -123,6 +129,7 @@
123129
},
124130
"rules": {
125131
"@typescript-eslint/explicit-function-return-type": "off",
132+
"@typescript-eslint/no-empty-function": "off",
126133
"class-methods-use-this": 0,
127134
"function-paren-newline": ["error", "consistent"],
128135
"func-names": ["error", "never"],

.storybook/webpack.config.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@ const path = require('path');
33
module.exports = function({ config }) {
44
config.module.rules.push({
55
test: /\.scss$/,
6-
use: ['style-loader', 'css-loader', 'sass-loader'],
6+
use: [
7+
'style-loader',
8+
{
9+
loader: 'css-loader',
10+
options: {
11+
modules: {
12+
mode: (path) => path.endsWith('.module.scss') ? 'local' : 'global'
13+
}
14+
}
15+
},
16+
'sass-loader'
17+
],
718
include: path.resolve(__dirname, '../')
819
});
920

build-storybook.log

Lines changed: 369 additions & 4329 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@user-interviews/ui-design-system",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"dependencies": {
55
"@tiptap/core": "^2.0.3",
66
"@tiptap/extension-bold": "^2.0.3",
@@ -18,6 +18,7 @@
1818
"@tiptap/extension-text": "^2.0.3",
1919
"@tiptap/pm": "^2.0.3",
2020
"@tiptap/react": "^2.0.3",
21+
"@types/testing-library__jest-dom": "^6.0.0",
2122
"@typescript-eslint/eslint-plugin": "^2",
2223
"@typescript-eslint/parser": "^2",
2324
"react-bootstrap": "^2.5.0",
@@ -36,7 +37,7 @@
3637
"build-storybook-docs": "storybook build -s public --docs",
3738
"build-ts": "tsc",
3839
"chromatic": "npx chromatic",
39-
"lint": "eslint . --ext .js,.jsx",
40+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
4041
"prepublishOnly": "yarn build",
4142
"rs:link": "bin/link-rs",
4243
"rs:link:watch": "nodemon",
@@ -73,8 +74,7 @@
7374
"react-dom": "^16.12.0",
7475
"react-modal": "^3.12.1",
7576
"react-popper": "^2.2.3",
76-
"react-tracking": "^8.1.0",
77-
"styled-components": "^5.3.3"
77+
"react-tracking": "^8.1.0"
7878
},
7979
"devDependencies": {
8080
"@babel/cli": "^7.8.4",
@@ -106,10 +106,11 @@
106106
"@storybook/addons": "7.4.1",
107107
"@storybook/react": "7.4.1",
108108
"@storybook/react-webpack5": "7.4.1",
109-
"@testing-library/jest-dom": "^5.15.0",
109+
"@testing-library/jest-dom": "^6.1.3",
110110
"@testing-library/react": "^12.1.2",
111111
"@testing-library/react-hooks": "^3.2.1",
112112
"@testing-library/user-event": "^13.5.0",
113+
"@types/jest": "^29.5.5",
113114
"@types/react": "16.14.0",
114115
"@types/react-dom": "^16.0.0",
115116
"babel-eslint": "^10.0.3",
@@ -148,7 +149,6 @@
148149
"storybook": "7.4.1",
149150
"storybook-addon-designs": "6.3.1",
150151
"style-loader": "^1.1.3",
151-
"styled-components": "^5.3.3",
152152
"typescript": "^4.9.5",
153153
"webpack": "^5.80.0",
154154
"yalc": "^1.0.0-pre.53"
@@ -159,8 +159,7 @@
159159
"jackspeak": "2.1.1",
160160
"make-dir": "4.0.0",
161161
"normalize-package-data": "^3.0.0",
162-
"semver": "^7.5.3",
163-
"styled-components": "^5"
162+
"semver": "^7.5.3"
164163
},
165164
"description": "UI Storybook design system",
166165
"files": [

0 commit comments

Comments
 (0)