Skip to content

Commit

Permalink
Replace tslint with eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Dec 24, 2019
1 parent d2ec30b commit 2d01830
Show file tree
Hide file tree
Showing 4 changed files with 557 additions and 50 deletions.
6 changes: 6 additions & 0 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ update_configs:
dependency_name: "coveralls"
- match:
dependency_name: "nyc"
-match:
dependency_name: "eslint"
-match:
dependency_name: "@typescript-eslint/eslint-plugin"
-match:
dependency_name: "@typescript-eslint/parser"
14 changes: 14 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/quotes": ["error", "single", { "avoidEscape": true }]
},
"parserOptions": {
"sourceType": "module"
},
"env": {
"browser": false,
"node": true
}
}
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"compile-src": "tsc -p lib",
"compile-test": "tsc -p test",
"compile": "npm run compile-src && yarn run compile-test",
"lint-ts": "tslint 'lib/**/*.ts' --exclude 'lib/**/*.d.ts' 'test/**/*.ts' --exclude 'test/**/*.d.ts'",
"eslint": "eslint lib test --ext .ts --ignore-pattern *.d.ts",
"lint-md": "remark -u preset-lint-recommended .",
"lint": "npm run lint-md && npm run lint-ts",
"lint": "npm run lint-md && npm run eslint",
"test": "mocha --require ts-node/register --require source-map-support/register --full-trace test/*.ts",
"test-coverage": "nyc npm run test",
"send-coveralls": "nyc report --reporter=text-lcov | coveralls",
Expand All @@ -40,16 +40,20 @@
"devDependencies": {
"@types/mocha": "^5.2.7",
"@types/node": "^13.1.0",
"@typescript-eslint/eslint-plugin": "^2.13.0",
"@typescript-eslint/parser": "^2.13.0",
"add": "^2.0.6",
"chai": "^4.2.0",
"coveralls": "^3.0.8",
"del-cli": "^3.0.0",
"eslint": "^6.8.0",
"mocha": "^6.2.2",
"nyc": "^15.0.0",
"remark-cli": "^7.0.1",
"remark-preset-lint-recommended": "^3.0.2",
"ts-node": "^8.5.2",
"tslint": "^5.20.1",
"typescript": "^3.7.2"
"typescript": "^3.7.2",
"yarn": "^1.21.1"
},
"keywords": [
"readable",
Expand Down
Loading

0 comments on commit 2d01830

Please sign in to comment.