mirror of
https://github.com/desktop/desktop
synced 2024-08-25 03:07:41 +00:00
add check:eslint step to typecheck the eslint-rules directory
This commit is contained in:
parent
b34df5efdf
commit
8f5fc01548
11
eslint-rules/tsconfig.json
Normal file
11
eslint-rules/tsconfig.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"noEmit": true,
|
||||
"target": "es2015",
|
||||
"skipLibCheck": true,
|
||||
"moduleResolution": "node"
|
||||
},
|
||||
"include": ["*.js", "test/*.js"]
|
||||
}
|
|
@ -6,6 +6,7 @@
|
|||
"description": "GitHub Desktop build dependencies",
|
||||
"scripts": {
|
||||
"cli": "ts-node --require ./app/test/globals.ts --require ./app/src/cli/dev-commands-global.ts app/src/cli/main.ts",
|
||||
"check:eslint": "tsc -P eslint-rules/",
|
||||
"test:eslint": "jest eslint-rules/tests/*.test.js",
|
||||
"test:integration": "cross-env TEST_ENV=1 ELECTRON_NO_ATTACH_CONSOLE=1 xvfb-maybe --auto-servernum -- jest --testLocationInResults --config ./app/jest.integration.config.js",
|
||||
"test:unit": "cross-env ELECTRON_RUN_AS_NODE=1 ./node_modules/.bin/electron ./node_modules/jest/bin/jest --detectOpenHandles --silent --testLocationInResults --config ./app/jest.unit.config.js",
|
||||
|
|
Loading…
Reference in a new issue