Skip to content

Commit 6e767c4

Browse files
committed
test: add support for running ESLint locally
1 parent 7a494d0 commit 6e767c4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@
1313
"url": "https://github.com/cotes2020/jekyll-theme-chirpy/issues"
1414
},
1515
"homepage": "https://github.com/cotes2020/jekyll-theme-chirpy/",
16+
"type": "module",
1617
"scripts": {
1718
"build": "concurrently npm:build:*",
1819
"build:css": "node purgecss.js",
1920
"build:js": "rollup -c --bundleConfigAsCjs --environment BUILD:production",
2021
"watch:js": "rollup -c --bundleConfigAsCjs -w",
22+
"lint:js": "eslint _javascript",
2123
"lint:scss": "stylelint _sass/**/*.scss",
2224
"lint:fix:scss": "npm run lint:scss -- --fix",
23-
"test": "npm run lint:scss",
25+
"test": "npm run lint:js && npm run lint:scss",
2426
"prepare": "husky"
2527
},
2628
"dependencies": {
@@ -42,6 +44,8 @@
4244
"@semantic-release/git": "^10.0.1",
4345
"concurrently": "^9.1.2",
4446
"conventional-changelog-conventionalcommits": "^8.0.0",
47+
"eslint": "^9.27.0",
48+
"globals": "^16.1.0",
4549
"husky": "^9.1.7",
4650
"purgecss": "^7.0.2",
4751
"rollup": "^4.41.0",

0 commit comments

Comments
 (0)