adjacent-overload-signatures :
true
,
ban-comma-operator:
true
,
ban-
type
: [
true
, [
"object"
,
"User {} instead."
],[
"string"
]]
member-access: [
true
,
"no-public"
||
"check-accessor"
||
"check-constructor"
||
"check-parameter-property"
] ,
member-
order
: [
true
, {
order
:....}],
no-
any
:
true
,
no-empty-
interface
:
true
no-
import
-side-
effect
: [
true
, {
"ignore-module"
:
"(\\.html|\\.css)$"
}],
no-inferrable-types:[
true
,
"ignore-params"
,
"ignore-properties"
],
no-internal-
module
:
true
,
no-magic-
numbers
: [
true
,
1
,
2
,
3
],
no-
namespace
: [
true
,
"allpw-declarations"
],
no-non-
null
-
assertion
:
true
,
no-parameter-
reassignment
:
true
,
no-
reference
:
true
,
no-unnecessary-
type
-assertion:
true
,
no-
var
-requires:
true
,
only-arrow-functions:[
true
,
"allow-declarations"
,
"allow-named-functions"
],
prefer-
for
-
of
:
true
,
promise-
function
-
async
:
true
, 要求异步函数返回promise
typedef
: [
true
,
"call-signature"
,
"parameter"
,
"member-variable-declaration"
],
typedef-whitespace:
true
,
unified-signatures:
true
,
await
-promise:
true
,
ban
: [
true
,
"eval"
,
{
"name"
:
"$"
,
"message"
:
"please don't"
},
[
"describe"
,
"only"
],
{
"name"
: [
"it"
,
"only"
],
"message"
:
"don't focus tests"
},
"name"
: [
"chai"
,
"assert"
,
"equal"
],
"message"
:
"Use 'strictEqual' instead."
{
"name"
: [
"*"
,
"forEach"
],
"message"
:
"Use a regular for loop instead."
}
curly
:
true
,
forin
:
true
,
import
-
blacklist
:
true
,
label-
postion
:
true
,
no-
arg
:
true
,
no-
bitwise
:
true
,
no-conditional-
assignmen
:
true
,
no-
console
:
true
,
no-
construct
:
true
,
no-
debugger
:
true
,
no-duplicate-
super
:
true
,
no-
empty
:
true
,
no-
eval
:
true
,
no-floating-
promises
:
true
,
no-
for
-
in
-
array
:
true
,
no-implicit-
dependencies
:
true
,
no-inferred-empty-
object
-
type
:
true
,
no-invalid-template-strings:
true
,
no-invalid-
this
:
true
,
no-misused-
new
:
true
,
no-
null
-
keyword
:
true
,
no-
object
-literal-
type
-assertion:
true
,
no-
return
-
await
:
true
,
arrow-parens:
true
,
另外注意:
我加了配置: 为啥不生效? 因为no-any: true 配置后面多了一个逗号
距离妹子又近了一步 哈哈哈哈~