Skip to content

Commit

Permalink
chore: run prettier also on JSON files (#12598)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas committed Mar 27, 2022
1 parent 54eadb6 commit 0d98094
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 27 deletions.
16 changes: 11 additions & 5 deletions .prettierignore
@@ -1,5 +1,11 @@
fixtures/failing-jsons/
packages/jest-diff/src/cleanupSemantic.ts
packages/jest-config/src/__tests__/jest-preset.json
packages/pretty-format/perf/world.geo.json
website/versions.json
api-extractor.json
coverage

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

/website/.docusaurus
/website/backers.json
/website/build
/website/versions.json
2 changes: 1 addition & 1 deletion .vscode/settings.json
@@ -1,7 +1,7 @@
{
"editor.rulers": [80],
"files.exclude": {
"**/.git": true,
"**/.git": true
},
"javascript.validate.enable": false,
"jest.pathToJest": "yarn jest --",
Expand Down
Expand Up @@ -3,7 +3,6 @@
"collectCoverageFrom": [
"<rootDir>/*.js"
],
"transform": {
}
"transform": {}
}
}
@@ -0,0 +1,13 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

module.exports = {
presets: [
['@babel/preset-env', {targets: {node: 'current'}}],
'@babel/preset-typescript',
],
};
@@ -1,10 +1,4 @@
{
"babel": {
"presets": [
["@babel/preset-env", {"targets": {"node": "current"}}],
"@babel/preset-typescript"
]
},
"jest": {
"collectCoverageFrom": [
"<rootDir>/*.ts"
Expand Down
Expand Up @@ -4,7 +4,6 @@
"collectCoverageFrom": [
"<rootDir>/*.js"
],
"transform": {
}
"transform": {}
}
}
3 changes: 1 addition & 2 deletions e2e/resolve-async/package.json
Expand Up @@ -2,7 +2,6 @@
"type": "module",
"jest": {
"resolver": "<rootDir>/resolver.cjs",
"transform": {
}
"transform": {}
}
}
4 changes: 1 addition & 3 deletions lerna.json
@@ -1,7 +1,5 @@
{
"packages": [
"packages/*"
],
"packages": ["packages/*"],
"npmClient": "yarn",
"version": "28.0.0-alpha.7"
}
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -100,8 +100,8 @@
"jest-jasmine-ci": "yarn jest-jasmine --color --config jest.config.ci.js",
"jest-coverage": "yarn jest --coverage",
"lint": "eslint . --cache --ext js,jsx,ts,tsx,md",
"lint:prettier": "prettier '**/*.{md,yml,yaml}' 'website/**/*.{css,js}' --write --ignore-path .gitignore",
"lint:prettier:ci": "prettier '**/*.{md,yml,yaml}' 'website/**/*.{css,js}' --check --ignore-path .gitignore",
"lint:prettier": "prettier '**/*.{json,md,yml,yaml}' 'website/**/*.{css,js}' --write",
"lint:prettier:ci": "prettier '**/*.{json,md,yml,yaml}' 'website/**/*.{css,js}' --check",
"remove-examples": "node ./scripts/remove-examples.js",
"test-types": "yarn jest --config jest.config.tsd.js",
"test-ci-partial": "yarn test-ci-partial:parallel -i",
Expand Down
@@ -1,6 +1,5 @@
{
"name": "NODE_PATH_dir",
"version": "1.0.0",
"dependencies": {
}
"dependencies": {}
}
3 changes: 1 addition & 2 deletions packages/jest-runtime/src/__tests__/test_root/package.json
@@ -1,6 +1,5 @@
{
"name": "test_root",
"version": "1.0.0",
"dependencies": {
}
"dependencies": {}
}

0 comments on commit 0d98094

Please sign in to comment.