Skip to content

Commit 2c2e530

Browse files
Replace TSLint with ESLint
Install ESLint with TypeScript parser. Enable recommended ruleset. Uninstall TSLint and remove configuration file.
1 parent 4931388 commit 2c2e530

File tree

4 files changed

+425
-74
lines changed

4 files changed

+425
-74
lines changed

.eslintrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"extends": [
4+
"plugin:@typescript-eslint/recommended"
5+
],
6+
"parserOptions": {
7+
"ecmaVersion": 2018
8+
}
9+
}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"build-demo": "webpack --config demo/webpack.config.js",
2121
"clean": "rimraf lib/*",
2222
"format": "prettier --write 'src/**'",
23-
"lint": "tsc; tslint -p ./",
23+
"lint": "tsc; eslint . --ext .js,.ts",
2424
"precommit": "pretty-quick --staged",
2525
"test": "jest --coverage",
2626
"travisci": "npm run lint && npm run test"
@@ -50,14 +50,16 @@
5050
"@babel/preset-typescript": "^7.0.0-beta.54",
5151
"@types/es6-shim": "^0.31.37",
5252
"@types/jest": "^23.3.1",
53+
"@typescript-eslint/eslint-plugin": "^2.2.0",
54+
"@typescript-eslint/parser": "^2.2.0",
55+
"eslint": "^6.3.0",
5356
"husky": "^0.14.3",
5457
"jest": "^23.4.1",
5558
"prettier": "^1.13.7",
5659
"pretty-quick": "^1.6.0",
5760
"rimraf": "^2.6.2",
5861
"ts-jest": "^23.0.1",
5962
"ts-loader": "^5.0.0",
60-
"tslint": "^5.11.0",
6163
"typescript": "^2.9.2",
6264
"webpack": "^4.17.2",
6365
"webpack-command": "^0.4.1"

tslint.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)