From 74442f2fc294954cf37e09ba70022dd01008d62d Mon Sep 17 00:00:00 2001 From: Dominik Przybysz <132913826+sfc-gh-dprzybysz@users.noreply.github.com> Date: Mon, 23 Oct 2023 10:45:43 +0200 Subject: [PATCH] SNOW-933278: Add camelCase, eqeqeq and no-sync rules for eslint (#662) * SNOW-933278: Add camelCase, eqeqeq and no-sync rules for eslint Co-authored-by: Przemyslaw Motacki --- .eslintrc.js | 2 ++ package.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index abc089fe6..de0502125 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -16,8 +16,10 @@ module.exports = { 'arrow-spacing': ['warn'], 'block-spacing': ['warn'], 'brace-style': ['warn', '1tbs'], + 'camelcase': ['warn'], 'comma-spacing': ['warn'], 'curly': ['warn', 'all'], + 'eqeqeq': ['warn'], 'indent': ['warn', 2], 'key-spacing': ['warn'], 'keyword-spacing': ['warn'], diff --git a/package.json b/package.json index 4477d752e..35741eba9 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,8 @@ }, "scripts": { "lint:check": "eslint", - "lint:check:all": "eslint lib system_test test", + "lint:check:all": "eslint lib samples system_test test", + "lint:check:all:errorsOnly": "npm run lint:check:all -- --quiet", "lint:fix": "eslint --fix", "test": "mocha -timeout 180000 --recursive --full-trace test/unit/**/*.js test/unit/*.js", "test:integration": "mocha -timeout 180000 --recursive --full-trace test/integration/**/*.js test/integration/*.js",