Skip to content

Commit

Permalink
Add contentRight prop to RadioButtonBox (#737)
Browse files Browse the repository at this point in the history
* - Upgrade Typescript to 5.4.5.
- Upgrade eslint to latest.
- Upgrade vite and vitest to latest.
- Add contentRight prop to RadioButtonBox. Cannot be used together with icon prop.

* - Fix tslib resolution.

* - Remove ts-ignore.
  • Loading branch information
mattias800 authored May 21, 2024
1 parent 1879d75 commit efdac60
Show file tree
Hide file tree
Showing 20 changed files with 2,619 additions and 975 deletions.
21 changes: 21 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export default [
{
plugins: {
lodash: import("eslint-plugin-lodash"),
},
languageOptions: {
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
},
linterOptions: {
reportUnusedDisableDirectives: true,
},
extends: ["react-app", "plugin:storybook/recommended"],
rules: {
"lodash/import-scope": ["error", "member"],
},
files: ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"],
},
];
37 changes: 19 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"watch": "lerna exec --parallel -- yarn start",
"generate-svg-icons": "node scripts/generate-icons.cjs",
"prerelease": "yarn build-all && yarn check-deps-match && yarn check-builds && yarn test",
"lint": "eslint --ignore-path .gitignore \"packages/**/src/**/*.ts*\"",
"lint": "eslint",
"test": "lerna run test",
"check-deps-match": "node scripts/check-deps-match.cjs",
"check-builds": "node scripts/check-builds.cjs",
Expand Down Expand Up @@ -61,8 +61,8 @@
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^14.5.2",
"@types/node": "^20.8.7",
"@typescript-eslint/eslint-plugin": "^4.4.0",
"@typescript-eslint/parser": "^4.4.0",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"@vitejs/plugin-react": "^4.2.1",
"auto": "^11.1.1",
"autoprefixer": "^10.4.16",
Expand All @@ -71,20 +71,21 @@
"concurrently": "^6.4.0",
"cross-env": "^5.2.0",
"dpdm": "^3.5.0",
"eslint": "7.9.0",
"eslint-config-react-app": "5.2.1",
"eslint-plugin-flowtype": "4.2.0",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-lodash": "^7.4.0",
"eslint-plugin-react": "7.20.6",
"eslint-plugin-react-hooks": "4.1.2",
"eslint-plugin-storybook": "^0.6.15",
"eslint": "9.3.0",
"eslint-config-react-app": "7.0.1",
"eslint-define-config": "^2.1.0",
"eslint-plugin-flowtype": "8.0.3",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-lodash": "^8.0.0",
"eslint-plugin-react": "7.34.1",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-storybook": "^0.8.0",
"husky": "^8.0.3",
"jsdom": "^24.0.0",
"lerna": "^7.3.0",
"lodash": "^4.17.21",
"lint-staged": "^12.1.2",
"lodash": "^4.17.21",
"path-that-svg": "1.2.4",
"postcss-nested": "^6.0.1",
"postcss-preset-env": "^9.3.0",
Expand All @@ -95,12 +96,12 @@
"storybook": "^7.6.17",
"svgpath": "^2.6.0",
"svgson": "4.1.0",
"tslib": "2.3.1",
"typescript": "4.8.2",
"vite": "^5.0.12",
"tslib": "2.6.2",
"typescript": "5.4.5",
"vite": "^5.2.11",
"vite-plugin-css-injected-by-js": "^3.3.1",
"vite-plugin-svgr": "^4.2.0",
"vitest": "^1.2.1"
"vitest": "^1.6.0"
},
"optionalDependencies": {
"fsevents": "^2.2.1"
Expand All @@ -120,7 +121,7 @@
"@babel/core": "7.13.15",
"@types/react": "18.0.14",
"@types/react-dom": "18.0.5",
"tslib": "2.3.1",
"tslib": "2.6.2",
"ts-node": "10.9.1"
},
"browserslist": [
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit efdac60

Please sign in to comment.