From ce7da9bd044d3ca121bcddd15f35563e36a233cd Mon Sep 17 00:00:00 2001 From: bubkoo Date: Tue, 21 Sep 2021 11:00:27 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=91=B7=20tslint=20=3D>=20eslint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc | 41 +++++++++++++++++++++++++++++++++++++++++ tslint.json | 17 ----------------- 2 files changed, 41 insertions(+), 17 deletions(-) create mode 100644 .eslintrc delete mode 100644 tslint.json diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..413b484 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,41 @@ +{ + "parser": "@typescript-eslint/parser", + "plugins": [ + "@typescript-eslint", + "eslint-comments", + "import", + "prettier", + "promise" + ], + "extends": [ + "airbnb-base", + "eslint:recommended", + "prettier", + "plugin:@typescript-eslint/recommended", + "plugin:import/errors", + "plugin:import/warnings", + "plugin:promise/recommended", + "plugin:prettier/recommended" + ], + "env": { + "es6": true, + "node": true, + "commonjs": true + }, + "parserOptions": { + "ecmaVersion": 2020, + "sourceType": "module", + "requireConfigFile": false + }, + "rules": { + "no-nested-ternary": 0, + "no-inner-declarations": 0, + "import/extensions": 0, + "import/no-unresolved": 0, + "no-param-reassign": [2, { "props": false }], + "@typescript-eslint/no-namespace": 0, + "@typescript-eslint/no-explicit-any": 0, + "@typescript-eslint/explicit-module-boundary-types": 0, + "@typescript-eslint/no-non-null-assertion": 0 + } +} diff --git a/tslint.json b/tslint.json deleted file mode 100644 index 87ac8a3..0000000 --- a/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": [ - "tslint-config-airbnb", - "tslint-eslint-rules", - "tslint-config-prettier" - ], - "linterOptions": { - "exclude": ["./lib/**/*.d.ts"] - }, - "rules": { - "no-construct": true, - "no-debugger": true, - "no-reference": true, - "import-name": false, - "semicolon": [true, "never"] - } -}