Skip to content

Commit

Permalink
chore: run prettier on everything (#12653)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored Apr 12, 2022
1 parent 7e6c458 commit 59d3e51
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 13 deletions.
11 changes: 8 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
!.*
**/coverage/**
**/node_modules/**
bin/
flow-typed/**
packages/*/build/**
packages/*/dist/**
packages/jest-diff/src/cleanupSemantic.ts
website/.docusaurus
website/blog
website/build
website/node_modules
website/i18n/*.js
website/static
!.eslintrc.js

# Third-party script
packages/jest-diff/src/cleanupSemantic.ts

**/.yarn
**/.pnp.*

8 changes: 2 additions & 6 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,6 @@ module.exports = {
'import/order': 'off',
},
},
{
files: 'packages/jest-types/**/*',
rules: {
'import/no-extraneous-dependencies': 'off',
},
},
{
files: 'packages/**/*.ts',
rules: {
Expand Down Expand Up @@ -247,6 +241,8 @@ module.exports = {
'**/__tests__/**',
'e2e/**',
'**/pretty-format/perf/**',
'packages/jest-types/**/*',
'.eslintplugin/**',
],
rules: {
'import/no-extraneous-dependencies': 'off',
Expand Down
15 changes: 15 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
.idea
.DS_STORE
.eslintcache
*.swp
*~
api-extractor.json
coverage

/packages/*/build
/packages/*/dist
/packages/jest-config/src/__tests__/jest-preset.json
/packages/pretty-format/perf/world.geo.json

# Breaks tests
/e2e/coverage-handlebars/greet.hbs

# Third-party script
packages/jest-diff/src/cleanupSemantic.ts

/website/.docusaurus
/website/backers.json
/website/build
/website/versions.json

**/.yarn
**/.pnp.*
2 changes: 1 addition & 1 deletion examples/angular/.babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ module.exports = {
},
],
'@babel/preset-typescript',
]
],
};
2 changes: 1 addition & 1 deletion examples/react-native/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@
"jest-jasmine-ci": "yarn jest-jasmine --color --config jest.config.ci.mjs",
"jest-coverage": "yarn jest --coverage",
"lint": "eslint . --cache --ext js,jsx,cjs,mjs,ts,tsx,md",
"lint:prettier": "prettier '**/*.{json,md,yml,yaml}' 'website/**/*.{css,js}' --write",
"lint:prettier:ci": "prettier '**/*.{json,md,yml,yaml}' 'website/**/*.{css,js}' --check",
"lint:prettier": "prettier . \"!**/*.{js,jsx,cjs,mjs,ts,tsx}\" --write",
"lint:prettier:ci": "prettier . \"!**/*.{js,jsx,cjs,mjs,ts,tsx}\" --check",
"remove-examples": "node ./scripts/remove-examples.mjs",
"test-types": "yarn jest --config jest.config.tsd.mjs",
"test-ci-partial": "yarn test-ci-partial:parallel -i",
Expand Down

0 comments on commit 59d3e51

Please sign in to comment.