Skip to content

Commit

Permalink
style: set up eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Oct 26, 2020
1 parent 61be37c commit 2cdd2f6
Show file tree
Hide file tree
Showing 3 changed files with 962 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off"
}
};
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@
"email": "[email protected]"
},
"scripts": {
"lint": "exit 0",
"lint": "eslint . --ext .ts",
"test": "tsc --noEmit"
},
"dependencies": {
"@types/node": "*"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.5.0",
"@typescript-eslint/parser": "^4.5.0",
"eslint": "^7.12.0",
"typescript": "^4.0.3"
},
"bugs": {
Expand Down
Loading

0 comments on commit 2cdd2f6

Please sign in to comment.