diff --git a/ghost/admin/package.json b/ghost/admin/package.json index f3fb513a01..ab4ca69b28 100644 --- a/ghost/admin/package.json +++ b/ghost/admin/package.json @@ -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" } -} \ No newline at end of file +} diff --git a/ghost/core/package.json b/ghost/core/package.json index b760a1aed7..5d0bbc5f84 100644 --- a/ghost/core/package.json +++ b/ghost/core/package.json @@ -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",