Skip to content

Commit c362b63

Browse files
committed
ESLint: also validate test classes
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 8b8f308 commit c362b63

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
},
4949
"env": {
5050
"node": true,
51+
"jest": true,
5152
"es6": true,
5253
"jest/globals": true
5354
}

src/main.ts renamed to main.ts

File renamed without changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "tsc",
99
"format": "prettier --write **/*.ts",
1010
"format-check": "prettier --check **/*.ts",
11-
"lint": "eslint src/**/*.ts",
11+
"lint": "eslint **/*.ts",
1212
"package": "ncc build --source-map --license licenses.txt",
1313
"test": "jest",
1414
"all": "npm run build && npm run format && npm run lint && npm run package && npm test"

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
44
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
55
"outDir": "./lib", /* Redirect output structure to the directory. */
6-
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
6+
"rootDir": ".", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
77
"strict": true, /* Enable all strict type-checking options. */
88
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
99
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
1010
},
11-
"exclude": ["node_modules", "**/*.test.ts"]
11+
"include": ["**/*.ts"],
12+
"exclude": ["node_modules"]
1213
}

0 commit comments

Comments
 (0)