|
|
|
@ -23,6 +23,18 @@
|
|
|
|
|
"semi-style": ["error", "last"],
|
|
|
|
|
"space-in-parens": ["error", "never"],
|
|
|
|
|
"block-spacing": ["error", "always"],
|
|
|
|
|
"object-curly-spacing": ["error", "always"]
|
|
|
|
|
"object-curly-spacing": ["error", "always"],
|
|
|
|
|
"eqeqeq": ["error", "always", { "null": "ignore" }],
|
|
|
|
|
"spaced-comment": ["error", "always"],
|
|
|
|
|
"yoda": "error",
|
|
|
|
|
"prefer-destructuring": ["error", { "object": true, "array": false }],
|
|
|
|
|
"operator-assignment": ["error", "always"],
|
|
|
|
|
"no-useless-computed-key": "error",
|
|
|
|
|
"no-unneeded-ternary": ["error", { "defaultAssignment": false }],
|
|
|
|
|
"no-invalid-regexp": "error",
|
|
|
|
|
"no-constant-condition": ["error", { "checkLoops": false }],
|
|
|
|
|
"no-duplicate-imports": "error",
|
|
|
|
|
"no-extra-semi": "error",
|
|
|
|
|
"consistent-return": ["error", { "treatUndefinedAsUnspecified": true }]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|