Skip to content

Commit

Permalink
chore(devdeps): update dependency prettier to v3.1.1 (#3193)
Browse files Browse the repository at this point in the history
* chore(devdeps): update dependency prettier to v3.1.1

* fix: prettier on all files

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Matthias <[email protected]>
  • Loading branch information
renovate[bot] and matthprost authored Dec 18, 2023
1 parent 10c677f commit a4775a6
Show file tree
Hide file tree
Showing 30 changed files with 69 additions and 99 deletions.
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"groupName": "Code Editor",
"groupSlug": "uiw-code-editor-react",
"stabilityDays": 5,
"matchUpdateTypes": [ "minor", "patch"]
"matchUpdateTypes": ["minor", "patch"]
},
{
"automerge": false,
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/pull_request_title.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Pull Request
on:
pull_request:
Expand All @@ -8,12 +7,12 @@ jobs:
check-title:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: pnpm/[email protected]
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- run: echo '${{ github.event.pull_request.title }}' | pnpm commitlint
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: pnpm/[email protected]
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- run: echo '${{ github.event.pull_request.title }}' | pnpm commitlint
4 changes: 2 additions & 2 deletions .github/workflows/sync-design-tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Design tokens
on:
workflow_dispatch:
schedule:
- cron: "30 9 * * 1-5"
- cron: '30 9 * * 1-5'

jobs:
synchronise:
Expand Down Expand Up @@ -35,4 +35,4 @@ jobs:
body: |
Design system tokens update. This MR is created automatically when a change is detected in design tokens.
team-reviewers: console
labels: design system
labels: design system
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"singleQuote": true,
"trailingComma": "all",
"semi": false,
"arrowParens":"avoid"
"arrowParens": "avoid"
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# Ultraviolet Core

Ultraviolet Core contains the core features of the Ultraviolet UI library.
Ultraviolet Core contains the core features of the Ultraviolet UI library.
It is set of React library that can be used to build fast application.

- [Ultraviolet UI](https://github.com/scaleway/ultraviolet/tree/main/packages/ui): The main library that includes a set of components and utilities to build fast application.
Expand Down Expand Up @@ -47,7 +47,7 @@ $ pnpm install

Our storybook includes `@ultraviolet/ui`, `@ultraviolet/form` and `@ultraviolet/icons`.

In order to start storybook without errors you will need to build the project once
In order to start storybook without errors you will need to build the project once
(this is because `@ultraviolet/form` uses `@ultraviolet/ui` build to run).

```sh
Expand Down Expand Up @@ -124,7 +124,7 @@ You can redo the same with `@ultraviolet/form` if you want to test it.

We are using [Changeset](https://github.com/changesets/changesets) to manage our versioning.

Once your modifications are ready to be released, you can run `pnpm run changeset` to create a new changeset.
Once your modifications are ready to be released, you can run `pnpm run changeset` to create a new changeset.
It will ask you to describe your changes and will create a new changeset file in the `changesets` folder.

## Documentation
Expand Down
4 changes: 1 addition & 3 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"plugins": [
"@emotion"
],
"plugins": ["@emotion"],
"presets": [
"@babel/preset-typescript",
[
Expand Down
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ comment:
ignore:
- 'packages/themes'
- 'packages/ui/src/theme/index.ts'
- "packages/plus/src/components/CodeEditor"
- 'packages/plus/src/components/CodeEditor'
- 'packages/illustrations'
- 'examples'
2 changes: 1 addition & 1 deletion examples/next-advanced/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module.exports = {
'error',
{ packageDir: [__dirname, join(__dirname, '../')] },
],
"@typescript-eslint/no-unnecessary-condition": "off"
'@typescript-eslint/no-unnecessary-condition': 'off',
},
}
2 changes: 0 additions & 2 deletions examples/next-advanced/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,3 @@ To learn more about Next.js, take a look at the following resources:
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!


10 changes: 2 additions & 8 deletions examples/next-advanced/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
"noEmit": true,
"incremental": true,
"isolatedModules": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"moduleResolution": "Node"
Expand All @@ -26,7 +22,5 @@
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
"exclude": ["node_modules"]
}
2 changes: 1 addition & 1 deletion examples/next-simple/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module.exports = {
'error',
{ packageDir: [__dirname, join(__dirname, '../')] },
],
"@typescript-eslint/no-unnecessary-condition": "off"
'@typescript-eslint/no-unnecessary-condition': 'off',
},
}
1 change: 0 additions & 1 deletion examples/next-simple/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ To learn more about Next.js, take a look at the following resources:
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

10 changes: 2 additions & 8 deletions examples/next-simple/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
"noEmit": true,
"incremental": true,
"isolatedModules": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"moduleResolution": "Node"
Expand All @@ -25,7 +21,5 @@
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
"exclude": ["node_modules"]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"jest-junit": "16.0.0",
"lint-staged": "15.2.0",
"postcss": "8.4.32",
"prettier": "3.0.3",
"prettier": "3.1.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-router-dom": "6.20.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/form/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"compilerOptions": {
"baseUrl": "."
},
"include": [
"src",
],
"include": ["src"],
"exclude": ["node_modules", "coverage", "dist"]
}
1 change: 0 additions & 1 deletion packages/icons/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ $ pnpm add @ultraviolet/icons

Checkout our [documentation website](https://storybook.ultraviolet.scaleway.com/).


## Contributing

📝 You can participate in the development and [start contributing](/CONTRIBUTING.md) to it.
6 changes: 1 addition & 5 deletions packages/icons/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
"compilerOptions": {
"baseUrl": "."
},
"include": [
"src",
"../../global.d.ts",
"src/emotion.d.ts"
],
"include": ["src", "../../global.d.ts", "src/emotion.d.ts"],
"exclude": ["node_modules", "coverage", "dist"]
}
7 changes: 1 addition & 6 deletions packages/illustrations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ $ pnpm add @ultraviolet/illustrations
```js
import { instanceOriginal } from '@ultraviolet/illustrations/products/instance'

const App = () => (
<img
src={instanceOriginal}
alt="illustration instance"
/>
)
const App = () => <img src={instanceOriginal} alt="illustration instance" />
```

## Documentation
Expand Down
4 changes: 1 addition & 3 deletions packages/illustrations/babel.config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"plugins": [
"@emotion"
],
"plugins": ["@emotion"],
"presets": [
"@babel/preset-typescript",
[
Expand Down
11 changes: 2 additions & 9 deletions packages/illustrations/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@
"compilerOptions": {
"baseUrl": "."
},
"include": [
"src",
"../../global.d.ts"
],
"exclude": [
"node_modules",
"coverage",
"dist"
]
"include": ["src", "../../global.d.ts"],
"exclude": ["node_modules", "coverage", "dist"]
}
1 change: 0 additions & 1 deletion packages/plus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ $ pnpm add @ultraviolet/plus

Checkout our [documentation website](https://storybook.ultraviolet.scaleway.com/).


## Contributing

📝 You can participate in the development and [start contributing](/CONTRIBUTING.md) to it.
8 changes: 6 additions & 2 deletions packages/themes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Ultraviolet Themes is a set of themes for the Ultraviolet UI library.

> **Note**
>
>
> `@ultraviolet/ui` is using `@ultraviolet/theme` under the hood, therefore you don't need to install it if you want to use the default theme (`consoleLightTheme` and `consoleDarkTheme` are the default themes).
## Installation
Expand All @@ -23,7 +23,11 @@ import { Global, css, ThemeProvider } from '@emotion/react'

const App = () => (
<ThemeProvider theme={consoleDarkTheme}>
<Global styles={css`${normalize()}`} />
<Global
styles={css`
${normalize()}
`}
/>
<Button variant="primary" onClick={() => console.log('clicked')}>
Click Me
</Button>
Expand Down
4 changes: 1 addition & 3 deletions packages/themes/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"compilerOptions": {
"baseUrl": "."
},
"include": [
"src",
],
"include": ["src"],
"exclude": ["node_modules", "coverage", "dist"]
}
21 changes: 14 additions & 7 deletions packages/ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ $ pnpm add @ultraviolet/ui @emotion/react @emotion/styled
You will also need to import fonts in your project by adding:

```html
<link href="https://fonts.cdnfonts.com/css/inter?styles=29139,29137,29140" rel="stylesheet">
<link href="https://fonts.cdnfonts.com/css/jetbrains-mono-2?styles=156604" rel="stylesheet">
<link
href="https://fonts.cdnfonts.com/css/inter?styles=29139,29137,29140"
rel="stylesheet"
/>
<link
href="https://fonts.cdnfonts.com/css/jetbrains-mono-2?styles=156604"
rel="stylesheet"
/>
```

### Usage
Expand All @@ -25,10 +31,12 @@ import { Button, normalize, theme } from '@ultraviolet/ui'

const App = () => (
<ThemeProvider theme={theme}>
<Global styles={css`${normalize()}`} />
<Button onClick={() => console.log('clicked')}>
Click Me
</Button>
<Global
styles={css`
${normalize()}
`}
/>
<Button onClick={() => console.log('clicked')}>Click Me</Button>
</ThemeProvider>
)
```
Expand Down Expand Up @@ -64,7 +72,6 @@ declare module '@emotion/react' {

Checkout our [documentation website](https://storybook.ultraviolet.scaleway.com/).


## Contributing

📝 You can participate in the development and [start contributing](/CONTRIBUTING.md) to it.
5 changes: 2 additions & 3 deletions packages/ui/src/__stories__/MigrationMenuV2.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {Meta} from '@storybook/blocks'

<Meta title="Migrations/Menu to MenuV2"/>
import { Meta } from '@storybook/blocks'

<Meta title="Migrations/Menu to MenuV2" />

# Migrate Menu to MenuV2

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/__stories__/Tools/index.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Meta } from '@storybook/blocks'
import {ThemeGenerator} from './ThemeGenerator/'
import { ThemeGenerator } from './ThemeGenerator/'
import ThemeWrapper from '../components/ThemeWrapper'

<Meta title="Tools/Theme generator" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Meta } from '@storybook/blocks'
import { Badge } from "../../components"
import { Badge } from '../../components'
import ThemeWrapper from '../components/ThemeWrapper'

<Meta title="Customization/Understand Tokens" />
Expand Down Expand Up @@ -75,7 +75,9 @@ Text and Icon color will be: `theme.colors.info.textStrong`.
All those colors combined will result in:

<ThemeWrapper>
<Badge variant="info" prominence="strong">This is a simple badge with info sentiment and prominence strong</Badge>
<Badge variant="info" prominence="strong">
This is a simple badge with info sentiment and prominence strong
</Badge>
</ThemeWrapper>

It results in a different sets of colors and style to express a different context on where the badge is displayed.
4 changes: 2 additions & 2 deletions packages/ui/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ type SingleXOR<T, U> = T | U extends object
export type XOR<T extends unknown[]> = T extends [infer Only]
? Only
: T extends [infer A, infer B, ...infer Rest]
? XOR<[SingleXOR<A, B>, ...Rest]>
: never
? XOR<[SingleXOR<A, B>, ...Rest]>
: never
Loading

0 comments on commit a4775a6

Please sign in to comment.