From 1af86488516431f71034627c079cfbb56f3c7d82 Mon Sep 17 00:00:00 2001 From: Dominik Przybysz Date: Fri, 29 Sep 2023 07:48:07 +0200 Subject: [PATCH] SNOW-933278: Add camelCase, eqeqeq and no-sync rules for eslint --- .eslintrc.js | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index abc089fe6..41b7aac62 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'], @@ -32,6 +34,7 @@ module.exports = { 'no-mixed-spaces-and-tabs': ['error'], 'no-prototype-builtins': ['warn'], 'no-redeclare': ['warn'], + 'no-sync': ['warn'], 'no-undef': ['warn'], 'no-unused-vars': ['warn'], 'no-useless-catch': ['warn'], diff --git a/package.json b/package.json index 47bdc107f..c1a19d5b1 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",