summaryrefslogtreecommitdiffstatshomepage
path: root/package.json
diff options
context:
space:
mode:
authorAlexander Petros <apetros15@gmail.com>2023-12-21 12:51:26 -0500
committerAlexander Petros <apetros15@gmail.com>2023-12-21 12:51:47 -0500
commit1be703a1424d197443cb385663420ed5a3e6762c (patch)
tree230d58e3b3a3b4644faaa77f3064ca115f92eeb4 /package.json
parent157a06cb8d99a1549983962c6a269392f188338e (diff)
downloadhtmx-1be703a1424d197443cb385663420ed5a3e6762c.tar.gz
htmx-1be703a1424d197443cb385663420ed5a3e6762c.zip
Add standardJS format script
We're not enforcing it right now, but it's there if you want it.
Diffstat (limited to 'package.json')
-rw-r--r--package.json16
1 files changed, 15 insertions, 1 deletions
diff --git a/package.json b/package.json
index 66255f25..d4ef2d00 100644
--- a/package.json
+++ b/package.json
@@ -25,9 +25,10 @@
"unpkg": "dist/htmx.min.js",
"web-types": "editors/jetbrains/htmx.web-types.json",
"scripts": {
+ "dist": "./scripts/dist.sh",
+ "format": "eslint --fix src/htmx.js",
"test": "mocha-chrome test/index.html",
"test-types": "tsc --project ./jsconfig.json",
- "dist": "./scripts/dist.sh",
"ws-tests": "cd ./test/ws-sse && node ./server.js",
"www": "bash ./scripts/www.sh"
},
@@ -35,9 +36,22 @@
"type": "git",
"url": "git+https://github.com/bigskysoftware/htmx.git"
},
+ "eslintConfig": {
+ "extends": "standard",
+ "rules": {
+ "camelcase": 0,
+ "no-var": 0,
+ "space-before-function-paren": [
+ "error",
+ "never"
+ ]
+ }
+ },
"devDependencies": {
"chai": "^4.3.7",
"chai-dom": "^1.11.0",
+ "eslint": "^8.56.0",
+ "eslint-config-standard": "^17.1.0",
"fs-extra": "^9.1.0",
"mocha": "^9.2.2",
"mocha-chrome": "^2.2.0",