ci: 👷 tslint => eslint

This commit is contained in:
bubkoo 2021-09-21 11:00:27 +08:00
parent 3b55ca4108
commit ce7da9bd04
2 changed files with 41 additions and 17 deletions

41
.eslintrc Normal file
View File

@ -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
}
}

View File

@ -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"]
}
}