chore: run prettier on everything (#12653)

This commit is contained in:
fisker Cheung 2022-04-12 17:28:06 +08:00 committed by GitHub
parent 7e6c458e7b
commit 59d3e51de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 13 deletions

View File

@ -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.*

View File

@ -184,12 +184,6 @@ module.exports = {
'import/order': 'off',
},
},
{
files: 'packages/jest-types/**/*',
rules: {
'import/no-extraneous-dependencies': 'off',
},
},
{
files: 'packages/**/*.ts',
rules: {
@ -247,6 +241,8 @@ module.exports = {
'**/__tests__/**',
'e2e/**',
'**/pretty-format/perf/**',
'packages/jest-types/**/*',
'.eslintplugin/**',
],
rules: {
'import/no-extraneous-dependencies': 'off',

View File

@ -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.*

View File

@ -19,5 +19,5 @@ module.exports = {
},
],
'@babel/preset-typescript',
]
],
};

View File

@ -1 +1 @@
{}
{}

View File

@ -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",