mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:11:49 +00:00
use eslint cache (#7384)
This makes `yarn run eslint` tasks much faster, especially for `web`.
This commit is contained in:
parent
8dbe7c0055
commit
1f1fae4057
2
.gitignore
vendored
2
.gitignore
vendored
@ -122,3 +122,5 @@ libsqlite3-pcre.so
|
||||
docker-images/prometheus/config/prometheus_targets.yml
|
||||
|
||||
comment.txt
|
||||
|
||||
.eslintcache
|
||||
|
||||
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@ -44,6 +44,7 @@
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": true,
|
||||
},
|
||||
"eslint.options": { "cache": true },
|
||||
"eslint.workingDirectories": [
|
||||
{
|
||||
"directory": "dev/release",
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
"release:npm": "TS_NODE_COMPILER_OPTIONS=\"{\\\"module\\\":\\\"commonjs\\\"}\" ts-node ./scripts/publish-npm.ts",
|
||||
"lint": "yarn run tslint && yarn run eslint && yarn run stylelint",
|
||||
"tslint": "tslint -t stylish -c tslint.json -p tsconfig.json './**/*.ts?(x)'",
|
||||
"eslint": "eslint '**/*.[jt]s?(x)'",
|
||||
"eslint": "eslint --cache '**/*.[jt]s?(x)'",
|
||||
"stylelint": "stylelint 'src/**/*.scss'",
|
||||
"clean": "rm -rf build/ dist/ *.zip *.xpi .checksum",
|
||||
"test": "jest --testPathIgnorePatterns e2e",
|
||||
|
||||
@ -77,7 +77,7 @@
|
||||
"build": "tsc -b .",
|
||||
"test": "jest",
|
||||
"tslint": "../node_modules/.bin/tslint -p tsconfig.json",
|
||||
"eslint": "../node_modules/.bin/eslint 'src/**/*.ts?(x)'",
|
||||
"eslint": "../node_modules/.bin/eslint --cache 'src/**/*.ts?(x)'",
|
||||
"run:server": "tsc-watch --onSuccess \"node -r source-map-support/register out/server/server.js\" --noClear",
|
||||
"run:worker": "tsc-watch --onSuccess \"node -r source-map-support/register out/worker/worker.js\" --noClear"
|
||||
}
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"tslint": "tslint -t stylish -c ../tslint.config.js -p tsconfig.json",
|
||||
"eslint": "eslint '**/*.[jt]s?(x)'",
|
||||
"eslint": "eslint --cache '**/*.[jt]s?(x)'",
|
||||
"stylelint": "stylelint 'src/**/*.scss'",
|
||||
"test": "jest",
|
||||
"graphql": "gulp graphQLTypes",
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
"webpack": "cross-env NODE_OPTIONS=\"--max_old_space_size=4096\" gulp webpack",
|
||||
"lint": "yarn run tslint && gulp unusedExports && yarn run stylelint",
|
||||
"tslint": "tslint -t stylish -c tslint.json -p tsconfig.json -e 'src/schema/**' 'src/**/*.ts?(x)' 'types/**/*.ts?(x)' './*.ts?(x)'",
|
||||
"eslint": "eslint 'src/**/*.ts?(x)'",
|
||||
"eslint": "eslint --cache 'src/**/*.ts?(x)'",
|
||||
"stylelint": "stylelint 'src/**/*.scss'",
|
||||
"bundlesize": "cross-env GITHUB_TOKEN= bundlesize",
|
||||
"browserslist": "browserslist"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user