Skip to content

Commit

Permalink
chore(lint): migrate tslint → eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Feb 22, 2020
1 parent 791fbed commit fd4f257
Show file tree
Hide file tree
Showing 4 changed files with 487 additions and 88 deletions.
21 changes: 21 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
},
env: {
es6: true,
node: true,
},
overrides: [
{
files: ['*.spec.ts'],
env: {
jest: true,
},
},
],
};
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@
"@types/mock-fs": "4.10.0",
"@types/node": "13.7.1",
"@types/semver": "7.1.0",
"@typescript-eslint/eslint-plugin": "2.20.0",
"@typescript-eslint/parser": "2.20.0",
"eslint": "6.8.0",
"expect-more-jest": "4.0.0",
"jest": "25.1.0",
"mock-fs": "4.10.4",
"prettier": "1.19.1",
"rimraf": "3.0.2",
"ts-jest": "25.2.0",
"tslint": "6.0.0",
"typescript": "3.7.5"
"typescript": "3.8.2"
},
"engines": {
"node": ">=10"
Expand Down Expand Up @@ -71,7 +73,7 @@
"scripts": {
"build": "tsc --project .",
"format": "prettier --write './src/**/*.ts' './test/**/*.ts'",
"lint": "tslint --fix --project ./tsconfig.json",
"lint": "eslint --fix --ext .ts,.tsx .",
"prebuild": "rimraf dist ./test/dist",
"prelint": "npm run format",
"prepack": "npm run build",
Expand Down
11 changes: 0 additions & 11 deletions tslint.json

This file was deleted.

0 comments on commit fd4f257

Please sign in to comment.