Skip to content

Commit

Permalink
SNOW-933278: Add camelCase, eqeqeq and no-sync rules for eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dprzybysz committed Oct 6, 2023
1 parent d01c4f4 commit 1af8648
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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'],
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1af8648

Please sign in to comment.