From fff911885ae02c98b6b13f3a34c9120241dc7b78 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 25 Apr 2022 23:23:27 +0200 Subject: Lint js files --- package.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index fcab083..f7e522c 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,11 @@ "dependencies": {}, "description": "Ed theme for minimal editions", "devDependencies": { - "editorconfig-checker": "^4.0.2" + "editorconfig-checker": "^4.0.2", + "eslint": "^8.6.0", + "eslint-config-airbnb-base": "^15.0.0", + "eslint-plugin-import": "^2.25.4", + "eslint-plugin-node": "^11.1.0" }, "homepage": "https://github.com/sergeyklay/gohugo-theme-ed#readme", "keywords": [ @@ -28,7 +32,8 @@ "scripts": { "deploy": " cd exampleSite; hugo;", "lint:editorconfig": "editorconfig-checker", - "lint": "npm run lint:editorconfig" + "lint:js": "eslint static/js/*.js", + "lint": "npm run lint:js && npm run lint:editorconfig" }, "version": "0.1.0" } -- cgit v1.2.3