Skip to content

Commit

Permalink
Add linting
Browse files Browse the repository at this point in the history
  • Loading branch information
SukantGujar committed Mar 26, 2019
1 parent c883366 commit b580e18
Show file tree
Hide file tree
Showing 5 changed files with 535 additions and 12 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/no-explicit-any": "off"
}
}
6 changes: 4 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"editor.formatOnSave": true
}
"editor.formatOnSave": true,
"cSpell.words": ["Gujar", "Sukant", "copyfiles", "sukantgujar"],
"eslint.validate": ["javascript", "typescript"]
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@
"@types/mocha": "^5.2.6",
"@types/mongodb": "^3.1.22",
"@types/sinon": "^7.0.9",
"@typescript-eslint/eslint-plugin": "^1.5.0",
"@typescript-eslint/parser": "^1.5.0",
"chai": "^4.2.0",
"copyfiles": "^2.1.0",
"cross-env": "^5.2.0",
"eslint": "^5.15.3",
"express": "^4.16.4",
"mocha": "^6.0.2",
"mongodb": "^3.1.13",
Expand Down
2 changes: 1 addition & 1 deletion src/Content.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Range } from "./Range";
import { Stream } from "stream";
export type Content = {
export interface Content {
/**
* Returns a readable stream based on the provided range (optional).
* @param {Range} range The start-end range of stream data.
Expand Down
Loading

0 comments on commit b580e18

Please sign in to comment.