From adb524ff9f9a495227342e9c3d8b51cfae6c712d Mon Sep 17 00:00:00 2001 From: Krisztian Balla Date: Sun, 22 Nov 2020 19:53:08 +0100 Subject: [PATCH] Add eslint rules --- .eslintrc.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.eslintrc.json b/.eslintrc.json index f948b09..6dbc0db 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -138,7 +138,18 @@ ], // plugin: unicorn + "unicorn/custom-error-definition": ["error"], + "unicorn/explicit-length-check": ["error"], + "unicorn/filename-case": ["error", { "case": "snakeCase" }], + "unicorn/new-for-builtins": ["error"], + "unicorn/no-abusive-eslint-disable": ["error"], + "unicorn/no-array-instanceof": ["error"], + "unicorn/no-null": ["error"], + "unicorn/no-unused-properties": ["error"], + "unicorn/prefer-includes": ["error"], + "unicorn/prefer-starts-ends-with": ["error"], "unicorn/prefer-ternary": ["error"], + "unicorn/prefer-text-content": ["error"], // plugin: jsdoc "jsdoc/check-param-names": ["error"],