Skip to content

Commit

Permalink
Issue 56 typescript eslint (#62)
Browse files Browse the repository at this point in the history
* switch to ESLint for linting

* add `eslint` as dependency
  • Loading branch information
planttheidea authored Apr 6, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 0f0583a commit 11983f6
Showing 4 changed files with 556 additions and 170 deletions.
12 changes: 12 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"rules": {}
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -14,10 +14,13 @@
"@types/node": "^14.0.13",
"@types/ramda": "^0.27.6",
"@types/react": "^16.9.38",
"@typescript-eslint/eslint-plugin": "^5.18.0",
"@typescript-eslint/parser": "^5.18.0",
"benchee": "^1.0.3",
"cli-table2": "^0.2.0",
"clone": "^2.1.2",
"deepclone": "^1.0.2",
"eslint": "^8.12.0",
"fast-clone": "^1.5.3",
"html-webpack-plugin": "^4.3.0",
"in-publish": "^2.0.1",
@@ -33,9 +36,6 @@
"rollup-plugin-typescript2": "^0.27.1",
"ts-jest": "^26.1.0",
"ts-loader": "^7.0.5",
"tslint": "^6.1.2",
"tslint-config-airbnb": "^5.11.2",
"tslint-loader": "^3.5.4",
"typescript": "^3.9.5",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",
@@ -62,7 +62,7 @@
"clean": "rimraf dist",
"dev": "NODE_ENV=development webpack-dev-server --colors --progress --config=webpack/webpack.config.js",
"dist": "npm run clean && npm run build",
"lint": "NODE_ENV=test tslint 'src/*.ts'",
"lint": "eslint 'src/*.ts'",
"lint:fix": "npm run lint -- --fix",
"prepublishOnly": "npm run lint && npm run typecheck && npm run test && npm run dist",
"release": "release-it",
13 changes: 0 additions & 13 deletions tslint.json

This file was deleted.

Loading

0 comments on commit 11983f6

Please sign in to comment.