mirror of https://github.com/facebook/jest.git
chore: run prettier on everything (#12653)
This commit is contained in:
parent
7e6c458e7b
commit
59d3e51de6
|
@ -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.*
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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.*
|
||||
|
|
|
@ -19,5 +19,5 @@ module.exports = {
|
|||
},
|
||||
],
|
||||
'@babel/preset-typescript',
|
||||
]
|
||||
],
|
||||
};
|
||||
|
|
|
@ -1 +1 @@
|
|||
{}
|
||||
{}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue