Add linter with our current violations disabled

This commit is contained in:
Alexander Petros 2023-12-21 12:59:37 -05:00
parent 1be703a142
commit f0403924fb

View File

@ -26,6 +26,7 @@
"web-types": "editors/jetbrains/htmx.web-types.json", "web-types": "editors/jetbrains/htmx.web-types.json",
"scripts": { "scripts": {
"dist": "./scripts/dist.sh", "dist": "./scripts/dist.sh",
"lint": "eslint src/htmx.js",
"format": "eslint --fix src/htmx.js", "format": "eslint --fix src/htmx.js",
"test": "mocha-chrome test/index.html", "test": "mocha-chrome test/index.html",
"test-types": "tsc --project ./jsconfig.json", "test-types": "tsc --project ./jsconfig.json",
@ -41,6 +42,19 @@
"rules": { "rules": {
"camelcase": 0, "camelcase": 0,
"no-var": 0, "no-var": 0,
"no-undef": 0,
"eqeqeq": 0,
"no-multi-str": 0,
"no-prototype-builtins": 0,
"no-cond-assign": 0,
"no-empty": 0,
"no-eval": 0,
"no-new-func": 0,
"no-redeclare": 0,
"no-return-assign": 0,
"no-unused-vars": 0,
"no-useless-call": 0,
"no-useless-escape": 0,
"space-before-function-paren": [ "space-before-function-paren": [
"error", "error",
"never" "never"