Skip to content

Commit

Permalink
⬆️ Dependencies (#3579)
Browse files Browse the repository at this point in the history
* ⬆️ storybook + plugins

* floating-ui

* rollup

* @testing-library/jest-dom

* downshift

* @testing-library/dom

* babel

* typescript

* styled-components

* react-hook-form

* postcss

* calendar + dates

* calenndar deps

* axios ts-jest

* react-aria

* @tanstack/react-table

* eslint-plugin-*

* lightningcss-cli

* react-router-dom

* vite

* @figma/rest-api-spec

* vite-plugin-dts

* @types/node

* @typescript-eslint/*

* fix linting changes
  • Loading branch information
oddvernes authored Aug 8, 2024
1 parent 1ab26d2 commit d30e272
Show file tree
Hide file tree
Showing 22 changed files with 3,043 additions and 4,876 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ module.exports = {
'react/no-array-index-key': ['error'],
'react/no-typos': ['error'],
'react/destructuring-assignment': ['error', 'always'],
'@typescript-eslint/no-unused-expressions': [
'error',
{
allowShortCircuit: true,
enforceForJSX: true,
allowTernary: true,
},
],
// 'jsx-a11y/accessible-emoji': ['warn'],
// 'jsx-a11y/control-has-associated-label': ['warn'],
'jsx-a11y/label-has-associated-control': [
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,30 +42,30 @@
"types": "pnpm --filter @equinor/eds-tokens types && pnpm --filter @equinor/eds-utils types && pnpm --filter @equinor/eds-icons types && pnpm --filter @equinor/eds-core-react types && pnpm --filter @equinor/eds-lab-react types && pnpm --filter @equinor/eds-data-grid-react types"
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/eslint-parser": "^7.24.7",
"@babel/core": "^7.25.2",
"@babel/eslint-parser": "^7.25.1",
"@babel/plugin-transform-runtime": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/preset-env": "^7.25.3",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@babel/runtime": "^7.24.7",
"@babel/runtime": "^7.25.0",
"@types/jest": "^29.5.12",
"@types/jest-axe": "^3.5.9",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.16.0",
"@typescript-eslint/eslint-plugin": "^8.0.1",
"@typescript-eslint/parser": "^8.0.1",
"babel-plugin-styled-components": "^2.1.4",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-testing-library": "^6.2.2",
"jest-axe": "^9.0.0",
"prettier": "3.3.3",
"typescript": "^5.5.3"
"typescript": "^5.5.4"
},
"browserslist": "last 2 Chrome versions, last 2 firefox versions, last 2 safari versions, last 2 edge versions, not dead"
}
1 change: 1 addition & 0 deletions packages/eds-core-react/jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { toHaveNoViolations } from 'jest-axe'
expect.extend(toHaveNoViolations)

// Workaround for jest-axe error: https://github.com/nickcolley/jest-axe/issues/147
// eslint-disable-next-line @typescript-eslint/unbound-method
const { getComputedStyle } = window
window.getComputedStyle = (elt) => getComputedStyle(elt)

Expand Down
54 changes: 27 additions & 27 deletions packages/eds-core-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@storybook/addon-a11y": "^8.1.11",
"@storybook/addon-actions": "^8.1.11",
"@storybook/addon-docs": "^8.1.11",
"@storybook/addon-essentials": "^8.1.11",
"@storybook/addon-links": "^8.1.11",
"@storybook/blocks": "^8.1.11",
"@storybook/preview-api": "^8.1.11",
"@storybook/react": "^8.1.11",
"@storybook/react-vite": "^8.1.11",
"@testing-library/dom": "^10.3.1",
"@testing-library/jest-dom": "^6.4.6",
"@storybook/addon-a11y": "^8.2.8",
"@storybook/addon-actions": "^8.2.8",
"@storybook/addon-docs": "^8.2.8",
"@storybook/addon-essentials": "^8.2.8",
"@storybook/addon-links": "^8.2.8",
"@storybook/blocks": "^8.2.8",
"@storybook/preview-api": "^8.2.8",
"@storybook/react": "^8.2.8",
"@storybook/react-vite": "^8.2.8",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "16.0.0",
"@testing-library/user-event": "14.5.2",
"@types/jest": "^29.5.12",
Expand All @@ -67,38 +67,38 @@
"jest-environment-jsdom": "^29.7.0",
"jest-styled-components": "^7.2.0",
"js-file-download": "^0.4.12",
"postcss": "^8.4.39",
"postcss": "^8.4.41",
"ramda": "^0.30.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.52.1",
"react-router-dom": "^6.24.1",
"rollup": "^4.18.1",
"react-hook-form": "^7.52.2",
"react-router-dom": "^6.26.0",
"rollup": "^4.20.0",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-postcss": "^4.0.2",
"storybook": "^8.1.11",
"styled-components": "6.1.11",
"storybook": "^8.2.8",
"styled-components": "6.1.12",
"tsc-watch": "^6.2.0",
"typescript": "^5.5.3"
"typescript": "^5.5.4"
},
"peerDependencies": {
"react": ">=16.8",
"react-dom": ">=16.8",
"styled-components": ">=5.1"
},
"dependencies": {
"@babel/runtime": "^7.24.7",
"@babel/runtime": "^7.25.0",
"@equinor/eds-icons": "workspace:^",
"@equinor/eds-tokens": "workspace:*",
"@equinor/eds-utils": "workspace:*",
"@floating-ui/react": "^0.26.19",
"@internationalized/date": "^3.5.4",
"@react-aria/utils": "^3.24.1",
"@react-stately/calendar": "^3.5.1",
"@react-stately/datepicker": "^3.9.4",
"@react-types/shared": "^3.23.1",
"@floating-ui/react": "^0.26.22",
"@internationalized/date": "^3.5.5",
"@react-aria/utils": "^3.25.1",
"@react-stately/calendar": "^3.5.3",
"@react-stately/datepicker": "^3.10.1",
"@react-types/shared": "^3.24.1",
"@tanstack/react-virtual": "3.8.4",
"downshift": "9.0.6",
"react-aria": "^3.33.1"
"downshift": "9.0.7",
"react-aria": "^3.34.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ function AutocompleteInner<T>(
try {
// eslint-disable-next-line @typescript-eslint/no-base-to-string
return item?.toString()
} catch (error) {
} catch {
throw new Error(
'Unable to find label, make sure your are using options as documented',
)
Expand Down
2 changes: 1 addition & 1 deletion packages/eds-core-react/src/components/Chip/Chip.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('Chips', () => {
const { asFragment: asFragment2 } = render(
<Chip
onClick={() => {
jest.fn
jest.fn()
}}
>
<Icon data={add} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ describe('Search', () => {
})
it('Should pass a11y test', async () => {
/** workaround the console error */
// eslint-disable-next-line @typescript-eslint/unbound-method
const { getComputedStyle } = window
window.getComputedStyle = (elt) => getComputedStyle(elt)

Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/styled.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import 'styled-components'
import { ComponentToken } from '@equinor/eds-tokens'
// and extend them!
declare module 'styled-components' {
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface DefaultTheme extends ComponentToken {}
}
1 change: 1 addition & 0 deletions packages/eds-data-grid-react/jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { toHaveNoViolations } from 'jest-axe'
expect.extend(toHaveNoViolations)

// Workaround for jest-axe error: https://github.com/nickcolley/jest-axe/issues/147
// eslint-disable-next-line @typescript-eslint/unbound-method
const { getComputedStyle } = window
window.getComputedStyle = (elt) => getComputedStyle(elt)

Expand Down
40 changes: 20 additions & 20 deletions packages/eds-data-grid-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,28 @@
"@equinor/eds-icons": "workspace:^",
"@equinor/eds-tokens": "workspace:*",
"@equinor/eds-utils": "workspace:^",
"@tanstack/react-table": "^8.19.2",
"@tanstack/react-table": "^8.20.1",
"@tanstack/react-virtual": "^3.8.4"
},
"devDependencies": {
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@storybook/addon-a11y": "^8.1.11",
"@storybook/addon-actions": "^8.1.11",
"@storybook/addon-docs": "^8.1.11",
"@storybook/addon-essentials": "^8.1.11",
"@storybook/addon-links": "^8.1.11",
"@storybook/blocks": "^8.1.11",
"@storybook/preview-api": "^8.1.11",
"@storybook/react": "^8.1.11",
"@storybook/react-vite": "^8.1.11",
"@testing-library/dom": "^10.3.1",
"@testing-library/jest-dom": "^6.4.6",
"@storybook/addon-a11y": "^8.2.8",
"@storybook/addon-actions": "^8.2.8",
"@storybook/addon-docs": "^8.2.8",
"@storybook/addon-essentials": "^8.2.8",
"@storybook/addon-links": "^8.2.8",
"@storybook/blocks": "^8.2.8",
"@storybook/preview-api": "^8.2.8",
"@storybook/react": "^8.2.8",
"@storybook/react-vite": "^8.2.8",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/node": "20.14.10",
"@types/node": "22.1.0",
"@types/ramda": "^0.30.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
Expand All @@ -63,20 +63,20 @@
"jest-environment-jsdom": "29.7.0",
"jest-styled-components": "^7.2.0",
"js-file-download": "^0.4.12",
"postcss": "^8.4.39",
"postcss": "^8.4.41",
"ramda": "^0.30.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.52.1",
"rollup": "^4.18.1",
"react-hook-form": "^7.52.2",
"rollup": "^4.20.0",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-postcss": "^4.0.2",
"storybook": "^8.1.11",
"styled-components": "6.1.11",
"ts-jest": "29.2.0",
"storybook": "^8.2.8",
"styled-components": "6.1.12",
"ts-jest": "29.2.4",
"ts-node": "10.9.2",
"tsc-watch": "^6.2.0",
"typescript": "~5.5.3"
"typescript": "~5.5.4"
},
"homepage": "https://eds.equinor.com",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions packages/eds-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"rollup": "^4.18.1",
"rollup": "^4.20.0",
"rollup-plugin-delete": "^2.0.0",
"typescript": "^5.5.3"
"typescript": "^5.5.4"
}
}
34 changes: 17 additions & 17 deletions packages/eds-lab-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@storybook/addon-a11y": "^8.1.11",
"@storybook/addon-actions": "^8.1.11",
"@storybook/addon-docs": "^8.1.11",
"@storybook/addon-essentials": "^8.1.11",
"@storybook/addon-links": "^8.1.11",
"@storybook/react": "^8.1.11",
"@storybook/react-vite": "^8.1.11",
"@testing-library/dom": "^10.3.1",
"@testing-library/jest-dom": "^6.4.6",
"@storybook/addon-a11y": "^8.2.8",
"@storybook/addon-actions": "^8.2.8",
"@storybook/addon-docs": "^8.2.8",
"@storybook/addon-essentials": "^8.2.8",
"@storybook/addon-links": "^8.2.8",
"@storybook/react": "^8.2.8",
"@storybook/react-vite": "^8.2.8",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "14.5.2",
"@types/jest": "^29.5.12",
Expand All @@ -67,34 +67,34 @@
"jest-environment-jsdom": "^29.7.0",
"jest-styled-components": "^7.2.0",
"js-file-download": "^0.4.12",
"postcss": "^8.4.39",
"postcss": "^8.4.41",
"ramda": "^0.30.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.52.1",
"react-hook-form": "^7.52.2",
"react-is": "^18.3.1",
"rollup": "^4.18.1",
"rollup": "^4.20.0",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-postcss": "^4.0.2",
"storybook": "8.1.11",
"styled-components": "6.1.11",
"storybook": "8.2.8",
"styled-components": "6.1.12",
"tsc-watch": "^6.2.0",
"typescript": "^5.5.3"
"typescript": "^5.5.4"
},
"peerDependencies": {
"react": ">=16.8",
"react-dom": ">=16.8",
"styled-components": ">=5.1"
},
"dependencies": {
"@babel/runtime": "^7.24.7",
"@babel/runtime": "^7.25.0",
"@equinor/eds-core-react": "workspace:^",
"@equinor/eds-icons": "workspace:^",
"@equinor/eds-tokens": "workspace:*",
"@equinor/eds-utils": "workspace:^",
"@types/react-datepicker": "^6.2.0",
"date-fns": "^3.6.0",
"downshift": "9.0.6",
"downshift": "9.0.7",
"react-datepicker": "^6.2.0",
"react-fast-compare": "3.2.2"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/unbound-method */
import styled from 'styled-components'
import { datePicker as tokens } from './DatePicker.tokens'
import { arrow_back, arrow_forward } from '@equinor/eds-icons'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/unbound-method */
import styled from 'styled-components'
import { getMonth, getYear } from 'date-fns'
import { datePicker as tokens } from './DatePicker.tokens'
Expand Down
1 change: 1 addition & 0 deletions packages/eds-lab-react/src/components/styled.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import 'styled-components'
import { ComponentToken } from '@equinor/eds-tokens'
// and extend them!
declare module 'styled-components' {
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface DefaultTheme extends ComponentToken {}
}
4 changes: 2 additions & 2 deletions packages/eds-tokens-build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
},
"devDependencies": {
"@equinor/eds-tokens-sync": "workspace:*",
"@types/node": "^20.14.10",
"@types/node": "^22.1.0",
"prettier": "3.3.3",
"style-dictionary": "3.8.0",
"style-dictionary-utils": "^2.4.1",
"typescript": "^5.5.3"
"typescript": "^5.5.4"
},
"engines": {
"pnpm": ">=8",
Expand Down
12 changes: 6 additions & 6 deletions packages/eds-tokens-sync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"lint": "eslint"
},
"devDependencies": {
"@figma/rest-api-spec": "^0.15.0",
"@types/node": "^20.14.10",
"axios": "^1.7.2",
"@figma/rest-api-spec": "^0.16.0",
"@types/node": "^22.1.0",
"axios": "^1.7.3",
"dotenv": "^16.4.5",
"prettier": "^3.3.3",
"typescript": "^5.5.3",
"vite": "^5.3.3",
"vite-plugin-dts": "^3.9.1"
"typescript": "^5.5.4",
"vite": "^5.4.0",
"vite-plugin-dts": "^4.0.1"
}
}
Loading

0 comments on commit d30e272

Please sign in to comment.