Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Commit

Permalink
fix: lint spec files excluded by tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLamberts committed Apr 7, 2019
1 parent 5ab4d21 commit e938d11
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"test": "jest --coverage=false",
"test.coverage": "jest",
"release": "standard-version && git push --follow-tags origin master",
"lint": "tslint -p ./tsconfig.json",
"lint": "tslint -p ./tsconfig.base.json",
"build": "npm run build:clear && tsc && npm run build:browser && npm run build:es && npm run build:umd",
"build:clear": "rm -rf ./dist",
"build:browser": "rollup --config build/rollup.config.browser.js",
Expand Down
20 changes: 20 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"outDir": "dist/esm",
"module": "es2015",
"target": "es5",
"lib": [
"es2017",
"es2016",
"dom"
],
"sourceMap": true,
"moduleResolution": "node",
"noImplicitReturns": true,
"noImplicitThis": true,
"noImplicitAny": true,
"strictNullChecks": true,
"declaration": true,
"esModuleInterop": true
}
}
19 changes: 1 addition & 18 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
{
"compilerOptions": {
"outDir": "dist/esm",
"module": "es2015",
"target": "es5",
"lib": [
"es2017",
"es2016",
"dom"
],
"sourceMap": true,
"moduleResolution": "node",
"noImplicitReturns": true,
"noImplicitThis": true,
"noImplicitAny": true,
"strictNullChecks": true,
"declaration": true,
"esModuleInterop": true
},
"extends": "./tsconfig.base.json",
"exclude": [
"**/*.spec.*"
]
Expand Down

0 comments on commit e938d11

Please sign in to comment.