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/**
|
**/coverage/**
|
||||||
**/node_modules/**
|
**/node_modules/**
|
||||||
bin/
|
bin/
|
||||||
flow-typed/**
|
|
||||||
packages/*/build/**
|
packages/*/build/**
|
||||||
packages/*/dist/**
|
packages/*/dist/**
|
||||||
packages/jest-diff/src/cleanupSemantic.ts
|
|
||||||
website/.docusaurus
|
website/.docusaurus
|
||||||
website/blog
|
website/blog
|
||||||
website/build
|
website/build
|
||||||
website/node_modules
|
website/node_modules
|
||||||
website/i18n/*.js
|
website/i18n/*.js
|
||||||
website/static
|
website/static
|
||||||
!.eslintrc.js
|
|
||||||
|
# Third-party script
|
||||||
|
packages/jest-diff/src/cleanupSemantic.ts
|
||||||
|
|
||||||
|
**/.yarn
|
||||||
|
**/.pnp.*
|
||||||
|
|
||||||
|
|
|
@ -184,12 +184,6 @@ module.exports = {
|
||||||
'import/order': 'off',
|
'import/order': 'off',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
files: 'packages/jest-types/**/*',
|
|
||||||
rules: {
|
|
||||||
'import/no-extraneous-dependencies': 'off',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
files: 'packages/**/*.ts',
|
files: 'packages/**/*.ts',
|
||||||
rules: {
|
rules: {
|
||||||
|
@ -247,6 +241,8 @@ module.exports = {
|
||||||
'**/__tests__/**',
|
'**/__tests__/**',
|
||||||
'e2e/**',
|
'e2e/**',
|
||||||
'**/pretty-format/perf/**',
|
'**/pretty-format/perf/**',
|
||||||
|
'packages/jest-types/**/*',
|
||||||
|
'.eslintplugin/**',
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
'import/no-extraneous-dependencies': 'off',
|
'import/no-extraneous-dependencies': 'off',
|
||||||
|
|
|
@ -1,11 +1,26 @@
|
||||||
|
.idea
|
||||||
|
.DS_STORE
|
||||||
|
.eslintcache
|
||||||
|
*.swp
|
||||||
|
*~
|
||||||
api-extractor.json
|
api-extractor.json
|
||||||
coverage
|
coverage
|
||||||
|
|
||||||
/packages/*/build
|
/packages/*/build
|
||||||
|
/packages/*/dist
|
||||||
/packages/jest-config/src/__tests__/jest-preset.json
|
/packages/jest-config/src/__tests__/jest-preset.json
|
||||||
/packages/pretty-format/perf/world.geo.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/.docusaurus
|
||||||
/website/backers.json
|
/website/backers.json
|
||||||
/website/build
|
/website/build
|
||||||
/website/versions.json
|
/website/versions.json
|
||||||
|
|
||||||
|
**/.yarn
|
||||||
|
**/.pnp.*
|
||||||
|
|
|
@ -19,5 +19,5 @@ module.exports = {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
'@babel/preset-typescript',
|
'@babel/preset-typescript',
|
||||||
]
|
],
|
||||||
};
|
};
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{}
|
{}
|
||||||
|
|
|
@ -100,8 +100,8 @@
|
||||||
"jest-jasmine-ci": "yarn jest-jasmine --color --config jest.config.ci.mjs",
|
"jest-jasmine-ci": "yarn jest-jasmine --color --config jest.config.ci.mjs",
|
||||||
"jest-coverage": "yarn jest --coverage",
|
"jest-coverage": "yarn jest --coverage",
|
||||||
"lint": "eslint . --cache --ext js,jsx,cjs,mjs,ts,tsx,md",
|
"lint": "eslint . --cache --ext js,jsx,cjs,mjs,ts,tsx,md",
|
||||||
"lint:prettier": "prettier '**/*.{json,md,yml,yaml}' 'website/**/*.{css,js}' --write",
|
"lint:prettier": "prettier . \"!**/*.{js,jsx,cjs,mjs,ts,tsx}\" --write",
|
||||||
"lint:prettier:ci": "prettier '**/*.{json,md,yml,yaml}' 'website/**/*.{css,js}' --check",
|
"lint:prettier:ci": "prettier . \"!**/*.{js,jsx,cjs,mjs,ts,tsx}\" --check",
|
||||||
"remove-examples": "node ./scripts/remove-examples.mjs",
|
"remove-examples": "node ./scripts/remove-examples.mjs",
|
||||||
"test-types": "yarn jest --config jest.config.tsd.mjs",
|
"test-types": "yarn jest --config jest.config.tsd.mjs",
|
||||||
"test-ci-partial": "yarn test-ci-partial:parallel -i",
|
"test-ci-partial": "yarn test-ci-partial:parallel -i",
|
||||||
|
|
Loading…
Reference in New Issue