Skip to content

Commit

Permalink
feat(dtslint): added dtslint (does not check anything yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
dggluz committed Aug 23, 2018
1 parent 1334021 commit a18f83e
Show file tree
Hide file tree
Showing 5 changed files with 142 additions and 0 deletions.
101 changes: 101 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"test": "jest",
"test:watch": "jest --watch",
"test:prod": "npm run lint && npm run test -- --coverage --no-cache",
"test:types": "dtslint test/types/",
"deploy-docs": "ts-node tools/gh-pages-publish",
"report-coverage": "cat ./coverage/lcov.info | coveralls",
"commit": "git-cz",
Expand Down Expand Up @@ -87,6 +88,7 @@
"coveralls": "^3.0.0",
"cross-env": "^5.0.1",
"cz-conventional-changelog": "^2.0.0",
"dtslint": "^0.3.0",
"husky": "^0.14.0",
"jest": "^22.0.2",
"lint-staged": "^7.1.3",
Expand Down
1 change: 1 addition & 0 deletions test/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// TypeScript Version: 2.4
22 changes: 22 additions & 0 deletions test/types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"strict": true,
"outDir": "dist/lib",
"moduleResolution": "node",
"target": "es2015",
"module":"es2015",
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noImplicitThis": true,
"alwaysStrict": true,
"lib": ["es2015", "es2016", "es2017", "dom"],
"sourceMap": true,
"declaration": true,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"baseUrl": ".",
"paths": { "@ts-task/utils": ["../../src"] }
}
}
16 changes: 16 additions & 0 deletions test/types/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"extends": "dtslint/dtslint.json",
"rules": {
"no-useless-files": false,
"file-name-casing": false,
"max-line-length": false,
"strict-export-declare-modifiers": false,
/* I dont agree with the errors being reported.
I think the main reason is because its intended to .d.ts
*/
"no-unnecessary-generics": false,
/* I find this rule annoying, so I'm disabeling it ;) */
"eofline": false,
"only-arrow-functions": false
}
}

0 comments on commit a18f83e

Please sign in to comment.