6d01952e66
* chore: replace standard with eslint-config-standard This adds support for --cache so linting JS only takes ~1 second and only lints things that changed It also allows us to add custom linting rules * chore: add eslint-plugin-mocha and enable the no-exclusive-tests rule This will block anyone from pushing / merging a `.only` test or describe
69 lines
2.9 KiB
JSON
69 lines
2.9 KiB
JSON
{
|
|
"name": "electron",
|
|
"version": "4.0.0-nightly.20180905",
|
|
"repository": "https://github.com/electron/electron",
|
|
"description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
|
|
"devDependencies": {
|
|
"asar": "^0.11.0",
|
|
"browserify": "^13.1.0",
|
|
"check-for-leaks": "^1.0.2",
|
|
"clang-format": "^1.2.3",
|
|
"colors": "^1.1.2",
|
|
"dotenv-safe": "^4.0.4",
|
|
"dugite": "^1.45.0",
|
|
"electabul": "~0.0.4",
|
|
"electron-docs-linter": "^2.3.4",
|
|
"electron-typescript-definitions": "^2.0.0",
|
|
"eslint": "^5.6.0",
|
|
"eslint-config-standard": "^12.0.0",
|
|
"eslint-plugin-mocha": "^5.2.0",
|
|
"folder-hash": "^2.1.1",
|
|
"github": "^9.2.0",
|
|
"html-entities": "^1.2.1",
|
|
"husky": "^0.14.3",
|
|
"lint": "^1.1.2",
|
|
"minimist": "^1.2.0",
|
|
"node-fetch": "^2.1.2",
|
|
"nugget": "^2.0.1",
|
|
"octicons": "^7.3.0",
|
|
"recursive-readdir": "^2.2.2",
|
|
"remark-cli": "^4.0.0",
|
|
"remark-preset-lint-markdown-style-guide": "^2.1.1",
|
|
"request": "^2.88.0",
|
|
"semver": "^5.5.0",
|
|
"serve": "^6.5.8",
|
|
"standard-markdown": "^5.0.0",
|
|
"sumchecker": "^2.0.2",
|
|
"temp": "^0.8.3"
|
|
},
|
|
"private": true,
|
|
"scripts": {
|
|
"asar": "asar",
|
|
"browserify": "browserify",
|
|
"bump-version": "./script/bump-version.py",
|
|
"check-tls": "python ./script/tls.py",
|
|
"clang-format": "find atom/ brightray/ chromium_src/ -iname *.h -o -iname *.cc -o -iname *.mm | xargs clang-format -i",
|
|
"lint": "npm run lint:js && npm run lint:cpp && npm run lint:clang-format && npm run lint:py && npm run lint:docs",
|
|
"lint:js": "eslint . --cache",
|
|
"lint:clang-format": "python script/run-clang-format.py -r -c atom/ chromium_src/ brightray/ || (echo \"\\nCode not formatted correctly.\" && exit 1)",
|
|
"lint:cpp": "node ./script/cpplint.js",
|
|
"lint:py": "python ./script/pylint.py",
|
|
"lint:docs": "remark docs -qf && npm run lint:js-in-markdown && npm run create-typescript-definitions && npm run lint:docs-relative-links",
|
|
"lint:docs-relative-links": "python ./script/check-relative-doc-links.py",
|
|
"lint:js-in-markdown": "standard-markdown docs",
|
|
"create-api-json": "electron-docs-linter docs --outfile=electron-api.json",
|
|
"create-typescript-definitions": "npm run create-api-json && electron-typescript-definitions --in=electron-api.json --out=electron.d.ts",
|
|
"preinstall": "node -e 'process.exit(0)'",
|
|
"precommit": "python script/run-clang-format.py -r -c atom/ chromium_src/ brightray/ && node ./script/cpplint.js -c && npm run lint:js && remark docs -qf || (echo \"Code not formatted correctly.\" && exit 1)",
|
|
"prepack": "check-for-leaks",
|
|
"prepush": "check-for-leaks",
|
|
"repl": "node ./script/start.js --interactive",
|
|
"start": "node ./script/start.js",
|
|
"test": "node ./script/spec-runner.js electron/spec"
|
|
},
|
|
"license": "MIT",
|
|
"author": "Electron Community",
|
|
"keywords": [
|
|
"electron"
|
|
]
|
|
}
|