From a57d1d8682d3f51246002a445990cfeb9cdb0019 Mon Sep 17 00:00:00 2001 From: Singwai Chan Date: Thu, 5 May 2022 08:58:29 -0400 Subject: [PATCH] enable eslint for the entire project --- .eslintrc | 9 ++++++--- package.json | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.eslintrc b/.eslintrc index d842369cf..5dd1c7e6e 100644 --- a/.eslintrc +++ b/.eslintrc @@ -9,13 +9,16 @@ }, "rules": { "strict": 0, - "quotes": ["error", "single"], - "eol-last": ["error", "always"], + "quotes": ["warn", "single"], + "eol-last": ["warn", "always"], "no-mixed-requires": [0], "no-underscore-dangle": [0] }, "overrides": [{ "files": ["*.ts"], "parser": "@typescript-eslint/parser" - }] + }], + "ignorePatterns": [ + "dist/*" + ] } diff --git a/package.json b/package.json index c6645cddc..df28c83b1 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "docs:build-vp": "vuepress build docs", "docs:build": "npm run docs:api && npm run docs:build-vp", "docs:deploy": "docs/deploy.sh", - "lint": "eslint src", + "lint": "eslint . --ext .ts,.js", "check": "npm run lint && npm run test", "build": "npm run check && run-s build:*", "build:js": "grapesjs-cli build --targets=\"> 1%, ie 11, safari 8, not dead\" --statsOutput=\"stats.json\" --localePath=\"src/i18n/locale\"",