diff --git a/.gitignore b/.gitignore index 1a386735f19..fccbf0c2fd5 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ test-results.json lint-results.json .nyc_output __diff_output__ +.cache diff --git a/package.json b/package.json index 21fe6a1740b..99610961368 100644 --- a/package.json +++ b/package.json @@ -121,10 +121,14 @@ "test:unit:ci": "yarn test:unit --ci --silent --outputFile test-results.json --json --coverage --coverageReporters='json-summary'", "test:e2e": "jest --config e2e/jest.e2e.config.js", "test:code": "jest", - "lint": "eslint --ext .jsx,.js,.ts,.tsx src/", - "lint:ci": "yarn lint -o lint-results.json -f json", - "test:static": "concurrently 'tsc --noEmit' 'yarn lint' 'stylelint \"./src/**/*.css\"'", - "test:static:ci": "concurrently 'tsc --noEmit' 'yarn lint:ci' 'stylelint \"./src/**/*.css\"'", + + "lint:es": "eslint --ext .jsx,.js,.ts,.tsx src/ --cache --cache-location .cache/.eslintcache", + "lint:es:ci": "yarn lint:es -o lint-results.json -f json", + "lint:style": "stylelint \"./src/**/*.css\" --cache --cache-location .cache/.stylelintcache", + "typecheck": "tsc --incremental --emitDeclarationOnly --declaration --tsBuildInfoFile .cache/.tsbuildinfo --outDir .cache/ts", + "test:static": "concurrently 'yarn typecheck' 'yarn lint:es' 'yarn lint:style'", + "test:static:ci": "concurrently 'yarn typecheck' 'yarn lint:es:ci' 'yarn lint:style'", + "test": "concurrently 'yarn test:unit' 'yarn test:static'", "test:quick": "concurrently 'yarn test:unit:quick' 'yarn test:static'", "test:ci": "concurrently 'yarn test:unit:ci' 'yarn test:static:ci'",