diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 45d29078657..2a694774d46 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -114,7 +114,6 @@ 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 @@ -122,6 +121,11 @@ repos: - 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 diff --git a/landing-pages/.babelrc b/landing-pages/.babelrc index e6c62a1d51f..d04414c2834 100644 --- a/landing-pages/.babelrc +++ b/landing-pages/.babelrc @@ -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" ] } diff --git a/landing-pages/package.json b/landing-pages/package.json index 5efb93b1b70..d8fc5efac5f 100644 --- a/landing-pages/package.json +++ b/landing-pages/package.json @@ -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", @@ -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"