From 86c038d9ddad0272585ac7e3da62de7c45a9947f Mon Sep 17 00:00:00 2001 From: Garifullin Ruslan Date: Sat, 9 Jan 2021 20:32:13 +0300 Subject: [PATCH] chore(Linting): unbound-method and lint script fix --- .eslintrc.json | 6 ++++++ package.json | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index c9f8cf4..2ffda34 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -19,6 +19,12 @@ "@typescript-eslint/no-shadow": ["error"], "@typescript-eslint/no-unused-expressions": ["error"], "@typescript-eslint/no-unused-vars": ["error"], + "@typescript-eslint/unbound-method": [ + "error", + { + "ignoreStatic": true + } + ], "arrow-parens": ["error", "always"], "comma-dangle": [ "error", diff --git a/package.json b/package.json index ed3fa54..dd61f8e 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "build:prod": "webpack --mode=production", "start": "qode ./dist/index.js", "start:debug": "qode --inspect=0.0.0.0:9229 ./dist/index.js", - "lint": "eslint src/**/*.ts worker/**/*.ts", + "lint": "eslint 'src/**/*.ts' 'worker/**/*.ts'", "lint:ts": "tsc -p .", "lint:fix": "eslint --fix 'src/**/*.ts' 'worker/**/*.ts' && npm run prettier", "prettier": "prettier --write --loglevel warn src/**/*.ts worker/**/*.ts src/**/*.scss", @@ -138,4 +138,4 @@ ] } } -} +} \ No newline at end of file