Skip to content

Commit

Permalink
Add JSON Pretty formatter (apache#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
mik-laj authored Oct 16, 2019
1 parent 36b3bd0 commit 46f1f1c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,18 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: trailing-whitespace
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: pretty-format-json
args:
- --indent=2
- --autofix
- --top-keys=name,version,description,repository,main,author,license,scripts
- id: mixed-line-ending
- id: requirements-txt-fixer
- id: trailing-whitespace
Expand Down
6 changes: 3 additions & 3 deletions landing-pages/.babelrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"presets": [
"@babel/preset-env"
],
"plugins": [
"@babel/plugin-syntax-object-rest-spread",
"@babel/plugin-proposal-object-rest-spread"
],
"presets": [
"@babel/preset-env"
]
}
30 changes: 15 additions & 15 deletions landing-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@
"description": "Apache Airflow website",
"repository": "apache/airflow-site",
"main": "index.js",
"author": "",
"license": "MIT",
"scripts": {
"build": "npm run build:webpack && npm run build:hugo",
"build:hugo": "hugo -d ../dist -s site -v",
"build:hugo:preview": "npm run build:hugo -- -D -F",
"build:preview": "npm run build:webpack && npm run build:hugo:preview",
"build:webpack": "cross-env NODE_ENV=production webpack --config webpack.prod.js",
"lint": "run-p lint:**",
"lint:js": "eslint src",
"lint:css": "stylelint \"site/assets/scss/**/*.scss\"",
"start": "run-p start:**",
"start:hugo": "hugo -d ../dist -s site -vw",
"start:webpack": "webpack-dev-server --config webpack.dev.js --hot",
"lint:js": "eslint src",
"prebuild": "rimraf dist",
"preview": "run-p preview:**",
"preview:hugo": "npm run start:hugo -- -D -F",
"preview:webpack": "npm run start:webpack",
"prebuild": "rimraf dist",
"build": "npm run build:webpack && npm run build:hugo",
"build:preview": "npm run build:webpack && npm run build:hugo:preview",
"build:hugo": "hugo -d ../dist -s site -v",
"build:hugo:preview": "npm run build:hugo -- -D -F",
"build:webpack": "cross-env NODE_ENV=production webpack --config webpack.prod.js"
"start": "run-p start:**",
"start:hugo": "hugo -d ../dist -s site -vw",
"start:webpack": "webpack-dev-server --config webpack.dev.js --hot"
},
"author": "",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.5.4",
"@babel/plugin-proposal-object-rest-spread": "^7.5.4",
Expand Down Expand Up @@ -67,12 +67,12 @@
"webpack-merge": "^4.1.4",
"whatwg-fetch": "^3.0.0"
},
"resolutions": {
"natives": "1.1.6"
},
"hugo-bin": {
"buildTags": "extended"
},
"resolutions": {
"natives": "1.1.6"
},
"stylelint": {
"extends": [
"stylelint-config-recommended"
Expand Down

0 comments on commit 46f1f1c

Please sign in to comment.