Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 74449cc

Browse files
committed
chore: run prettier on more files
Run on all known file types by default and add more things to the .prettierignore files instead. This simplifies the package.json script a bit as well.
1 parent 80c1c79 commit 74449cc

File tree

7 files changed

+66
-56
lines changed

7 files changed

+66
-56
lines changed

.prettierignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1+
coverage
2+
packages/*/build
3+
packages/*/dist
4+
packages/docs/src/props.json
5+
16
**/__generated__/**
7+
8+
.yarn/
9+
.pnp.js
10+
11+
CHANGELOG.md

.yarnrc.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -8,72 +8,72 @@ enableGlobalCache: false
88
nmHoistingLimits: workspaces
99

1010
packageExtensions:
11-
"@mdx-js/loader@*":
11+
'@mdx-js/loader@*':
1212
dependencies:
13-
react: "*"
14-
"@types/hoist-non-react-statics@*":
13+
react: '*'
14+
'@types/hoist-non-react-statics@*':
1515
dependencies:
16-
react: "*"
17-
"@types/mdx-js__react@*":
16+
react: '*'
17+
'@types/mdx-js__react@*':
1818
dependencies:
19-
react: "*"
20-
"@types/react-dom@*":
19+
react: '*'
20+
'@types/react-dom@*':
2121
dependencies:
22-
react: "*"
23-
"@types/react-router-dom@*":
22+
react: '*'
23+
'@types/react-router-dom@*':
2424
dependencies:
25-
react: "*"
26-
"@types/react-router@*":
25+
react: '*'
26+
'@types/react-router@*':
2727
dependencies:
28-
react: "*"
29-
"@types/react-transition-group@*":
28+
react: '*'
29+
'@types/react-transition-group@*':
3030
dependencies:
31-
react: "*"
32-
"@types/styled-components@*":
31+
react: '*'
32+
'@types/styled-components@*':
3333
dependencies:
34-
react: "*"
34+
react: '*'
3535
babel-plugin-styled-components@*:
3636
dependencies:
37-
react: "*"
38-
react-dom: "*"
39-
react-is: "*"
40-
styled-components: "*"
37+
react: '*'
38+
react-dom: '*'
39+
react-is: '*'
40+
styled-components: '*'
4141
cypress@*:
4242
dependencies:
43-
graceful-fs: "*"
43+
graceful-fs: '*'
4444
debug@*:
4545
dependencies:
46-
supports-color: "*"
46+
supports-color: '*'
4747
eslint-module-utils@*:
4848
dependencies:
49-
eslint: "*"
50-
eslint-import-resolver-node: "*"
49+
eslint: '*'
50+
eslint-import-resolver-node: '*'
5151
focus-trap-react@*:
5252
dependencies:
53-
"@types/react": "*"
53+
'@types/react': '*'
5454
formik@*:
5555
dependencies:
56-
"@types/react": "*"
56+
'@types/react': '*'
5757
jest-styled-components@*:
5858
dependencies:
59-
react: "*"
60-
react-dom: "*"
61-
react-is: "*"
62-
styled-components: "*"
59+
react: '*'
60+
react-dom: '*'
61+
react-is: '*'
62+
styled-components: '*'
6363
practical-react-components-formik@*:
6464
dependencies:
65-
pepjs: "*"
65+
pepjs: '*'
6666
react-live@*:
6767
dependencies:
68-
react: "*"
69-
react-dom: "*"
68+
react: '*'
69+
react-dom: '*'
7070

7171
plugins:
7272
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
73-
spec: "@yarnpkg/plugin-interactive-tools"
73+
spec: '@yarnpkg/plugin-interactive-tools'
7474
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
75-
spec: "@yarnpkg/plugin-workspace-tools"
75+
spec: '@yarnpkg/plugin-workspace-tools'
7676
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
77-
spec: "@yarnpkg/plugin-version"
77+
spec: '@yarnpkg/plugin-version'
7878

7979
yarnPath: .yarn/releases/yarn-2.4.0.cjs

CODE_OF_CONDUCT.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
3333

3434
## Our Responsibilities
3535

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ module.exports = {
33
coveragePathIgnorePatterns: ['/node_modules/', '/__generated__/', '/build/'],
44
testMatch: ['**/packages/**/?(*.)test.ts?(x)'],
55
transformIgnorePatterns: ['node_modules/(?!@juggle)'],
6-
setupFiles: ["<rootDir>/jest/globals.tsx"]
6+
setupFiles: ['<rootDir>/jest/globals.tsx'],
77
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
"lint:ts": "eslint --ext \".ts,.tsx\" . --cache",
2626
"lint:css": "stylelint \"./**/*.tsx\"",
2727
"commitlint": "sbin/commitlint.py",
28-
"prettier:check": "prettier --check '{packages/*/src/**/*.{js,ts,jsx,tsx},cypress/**/*.{js,ts,jsx,tsx,json}}'",
28+
"prettier:check": "prettier --check -u '**/*'",
2929
"test": "jest",
3030
"build": "yarn workspaces foreach --topological run build",
31-
"prettier:fix": "prettier --write '{packages/*/src/**/*.{js,ts,jsx,tsx},cypress/**/*.{js,ts,jsx,tsx,json}}'",
31+
"prettier:fix": "prettier --write -u '**/*'",
3232
"release": "yarn --immutable --immutable-cache && yarn build:libs && yarn lint && yarn test && sbin/release.py",
3333
"dev": "yarn workspaces foreach -i --parallel --exclude practical-react-components-ui-tests run dev",
3434
"cypress:ui-tests": "yarn workspace practical-react-components-ui-tests dev",

packages/docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<body>
1414
<noscript>
1515
<span class="noscript-content">
16-
JavaScript is disabled or not supported by the browser. To use the
17-
web application, enable JavaScript.
16+
JavaScript is disabled or not supported by the browser. To use the web
17+
application, enable JavaScript.
1818
</span>
1919
</noscript>
2020
<div class="root" id="root"></div>

packages/ui-tests/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<body>
1717
<noscript>
1818
<span class="noscript-content">
19-
JavaScript is disabled or not supported by the browser. To use the
20-
web application, enable JavaScript.
19+
JavaScript is disabled or not supported by the browser. To use the web
20+
application, enable JavaScript.
2121
</span>
2222
</noscript>
2323
<div class="root" id="root"></div>

0 commit comments

Comments
 (0)