Added missing eslint --cache flag

- this dramatically speeds up linting by only linting what has changed
This commit is contained in:
Daniel Lockyer 2023-03-22 17:05:10 +01:00
parent 860048a89d
commit 880f8c2802
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@
"build:prod": "yarn build --environment=production --silent",
"test:unit": "true",
"test": "ember exam --split 2 --parallel",
"lint:js": "eslint .",
"lint:js": "eslint . --cache",
"lint:hbs": "ember-template-lint .",
"lint": "yarn lint:js && yarn lint:hbs"
},
@ -183,4 +183,4 @@
"path-browserify": "1.0.1",
"webpack": "5.76.2"
}
}
}

View File

@ -44,10 +44,10 @@
"test:int:slow": "yarn test:integration --reporter=mocha-slow-test-reporter",
"test:e2e:slow": "yarn test:e2e --reporter=mocha-slow-test-reporter",
"test:reg:slow": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/regression' --timeout=60000 --reporter=mocha-slow-test-reporter",
"lint:server": "eslint --ignore-path .eslintignore 'core/server/**/*.js' 'core/*.js' '*.js'",
"lint:shared": "eslint --ignore-path .eslintignore 'core/shared/**/*.js'",
"lint:frontend": "eslint --ignore-path .eslintignore 'core/frontend/**/*.js'",
"lint:test": "eslint -c test/.eslintrc.js --ignore-path test/.eslintignore 'test/**/*.js'",
"lint:server": "eslint --ignore-path .eslintignore 'core/server/**/*.js' 'core/*.js' '*.js' --cache",
"lint:shared": "eslint --ignore-path .eslintignore 'core/shared/**/*.js' --cache",
"lint:frontend": "eslint --ignore-path .eslintignore 'core/frontend/**/*.js' --cache",
"lint:test": "eslint -c test/.eslintrc.js --ignore-path test/.eslintignore 'test/**/*.js' --cache",
"lint:code": "yarn lint:server && yarn lint:shared && yarn lint:frontend",
"lint": "yarn lint:server && yarn lint:shared && yarn lint:frontend && yarn lint:test",
"build:css": "postcss core/frontend/public/ghost.css --no-map --use cssnano -o core/frontend/public/ghost.min.css",