Skip to content

Commit

Permalink
Get ESLint functional
Browse files Browse the repository at this point in the history
Also update all source files to be compliant with linter rules
  • Loading branch information
caleb531 committed May 25, 2024
1 parent 2c80b96 commit 7291d65
Show file tree
Hide file tree
Showing 7 changed files with 330 additions and 92 deletions.
9 changes: 6 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"root": true,
"extends": [
"eslint:recommended"
],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
Expand All @@ -13,6 +13,9 @@
"node": true
},
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/ban-types": "off",
"no-constant-condition": "off"
}
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "rollup -c",
"prepare": "rollup -c",
"watch": "rollup -c -w",
"lint": "eslint src/*.js"
"lint": "eslint src/*.ts"
},
"homepage": "https://projects.calebevans.me/jcanvas/",
"author": "Caleb Evans",
Expand All @@ -33,6 +33,8 @@
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.7",
"@types/jquery": "^3.5.30",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"eslint": "^8.56.0",
"glob": "^10.3.10",
"jquery": "^3.7.1",
Expand Down
Loading

0 comments on commit 7291d65

Please sign in to comment.