chore: add code formatting and linting (#952)

This commit is contained in:
Caleb
2018-08-07 14:46:54 -06:00
committed by Shawn Erquhart
parent 32e0a9b2b5
commit f801b19221
265 changed files with 5988 additions and 4481 deletions

View File

@ -10,7 +10,7 @@
"reset": "npm run clean && lerna clean --yes",
"cache-ci": "node scripts/cache.js",
"test": "run-s jest e2e",
"test-ci": "run-s cache-ci jest e2e-ci",
"test-ci": "run-s cache-ci jest e2e-ci lint-quiet",
"jest": "cross-env NODE_ENV=test jest --no-cache",
"e2e-prep": "npm run build && cp -r packages/netlify-cms/dist dev-test/",
"e2e-serve": "http-server dev-test",
@ -24,6 +24,13 @@
"e2e-dev": "start-test develop 8080 e2e-exec-dev",
"dryrun": "lerna publish --skip-npm --skip-git",
"publish": "run-s bootstrap dryrun build && git checkout . && lerna publish",
"format": "run-s \"lint:css -- --fix --quiet\" \"lint:js -- --fix --quiet\" \"format:prettier -- --write\"",
"format:prettier": "prettier \"{{packages,scripts,website}/**/,}*.{js,css,md,json,yml,yaml}\"",
"lint": "run-p -c --aggregate-output lint:*",
"lint-quiet": "run-p -c --aggregate-output \"lint:* -- --quiet\"",
"lint:css": "stylelint --ignore-path .gitignore \"{packages/**/*.{css,js},website/**/*.css}\"",
"lint:js": "eslint --ignore-path .gitignore \"{{packages,scripts,website}/**/,}*.js\"",
"lint:format": "npm run format:prettier -- --list-different",
"add-contributor": "all-contributors add"
},
"browserslist": [
@ -45,6 +52,7 @@
"@babel/preset-react": "^7.0.0-beta.54",
"all-contributors-cli": "^4.4.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^9.0.0-beta.3",
"babel-jest": "^23.4.0",
"babel-loader": "^8.0.0-beta",
"babel-plugin-emotion": "^9.2.4",
@ -60,6 +68,8 @@
"deep-equal": "^1.0.1",
"enzyme": "^3.1.0",
"enzyme-adapter-react-16": "^1.0.2",
"eslint": "^5.3.0",
"eslint-plugin-react": "^7.10.0",
"friendly-errors-webpack-plugin": "^1.7.0",
"http-server": "^0.11.1",
"jest": "^23.4.0",
@ -67,11 +77,16 @@
"jest-emotion": "^9.2.7",
"lerna": "^2.11.0",
"npm-run-all": "^4.1.3",
"prettier": "1.14.0",
"raf": "^3.4.0",
"react-test-renderer": "^16.0.0",
"rimraf": "^2.6.2",
"start-server-and-test": "^1.7.0",
"style-loader": "^0.21.0",
"stylelint": "^9.4.0",
"stylelint-config-recommended": "^2.1.0",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-processor-styled-components": "^1.3.1",
"svg-inline-loader": "^0.8.0"
},
"workspaces": [