-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade to prettier v3 (#2606)
Following the docs: https://prettier.io/blog/2023/07/05/3.0.0.html We relay currently on an older prettier version. Also this [PR](#2586) shows the need for an upgrade.
- Loading branch information
1 parent
f9aae68
commit de796d3
Showing
474 changed files
with
5,098 additions
and
4,679 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"*.js": [ | ||
"*.{js,ts,tsx}": [ | ||
"yarn prettier:js:staged", | ||
"yarn lint:js:staged" | ||
], | ||
"*.{js,css}": [ | ||
"yarn lint:styles:staged", | ||
"yarn test:staged" | ||
], | ||
"*.{json,md}": [ | ||
"*.{json,md,mdx}": [ | ||
"yarn prettier:other:staged" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ | |
"useTabs": false, | ||
"semi": false, | ||
"bracketSameLine": false, | ||
"trailingComma": "es5" | ||
"trailingComma": "all" | ||
} |
43 changes: 26 additions & 17 deletions
43
packages/dnb-design-system-portal/above_the_line_medium.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
import _extends from "@babel/runtime/helpers/esm/extends"; | ||
import _extends from '@babel/runtime/helpers/esm/extends' | ||
|
||
var _path; | ||
var _path | ||
|
||
import React from 'react'; | ||
import React from 'react' | ||
|
||
const above_the_line_medium = props => React.createElement("svg", _extends({ | ||
xmlns: "http://www.w3.org/2000/svg", | ||
width: 24, | ||
height: 24, | ||
fill: "none", | ||
viewBox: "0 0 24 24" | ||
}, props), _path || (_path = React.createElement("path", { | ||
stroke: "#000", | ||
strokeLinecap: "round", | ||
strokeLinejoin: "round", | ||
strokeWidth: 1.5, | ||
d: "M12 21V9m0 0-4 4m4-4s2.243 2.047 4 4M2 3.5h2m4 0h2m4 0h2m4 0h2" | ||
}))); | ||
const above_the_line_medium = (props) => | ||
React.createElement( | ||
'svg', | ||
_extends( | ||
{ | ||
xmlns: 'http://www.w3.org/2000/svg', | ||
width: 24, | ||
height: 24, | ||
fill: 'none', | ||
viewBox: '0 0 24 24', | ||
}, | ||
props, | ||
), | ||
_path || | ||
(_path = React.createElement('path', { | ||
stroke: '#000', | ||
strokeLinecap: 'round', | ||
strokeLinejoin: 'round', | ||
strokeWidth: 1.5, | ||
d: 'M12 21V9m0 0-4 4m4-4s2.243 2.047 4 4M2 3.5h2m4 0h2m4 0h2m4 0h2', | ||
})), | ||
) | ||
|
||
export default above_the_line_medium; | ||
export default above_the_line_medium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,6 @@ import { Theme } from '@dnb/eufemia/shared' | |
render( | ||
<Theme name="sbanken"> | ||
<App /> | ||
</Theme> | ||
</Theme>, | ||
) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
de796d3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
eufemia – ./
eufemia-eufemia.vercel.app
eufemia-git-main-eufemia.vercel.app
eufemia-dnb-design-system-portal.vercel.app