mirror of
https://github.com/thegecko/web-bluetooth-dfu.git
synced 2025-12-15 05:28:12 +08:00
TypeScript rewrite
This commit is contained in:
34
tslint.json
Normal file
34
tslint.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"extends": [
|
||||
"tslint:recommended",
|
||||
"tslint-eslint-rules"
|
||||
],
|
||||
"rules": {
|
||||
"array-bracket-spacing": [true, "always"],
|
||||
"arrow-parens": [true, "ban-single-arg-parens"],
|
||||
"array-type": [true, "generic"],
|
||||
"block-spacing": [true, "always"],
|
||||
"brace-style": [true, "1tbs", { "allowSingleLine": true }],
|
||||
"curly": [true, "ignore-same-line"],
|
||||
"eofline": true,
|
||||
"interface-name": [true, "never-prefix"],
|
||||
"linebreak-style": [true, "LF"],
|
||||
"max-line-length": [false],
|
||||
"member-ordering": [true, { "order": ["static-field", "instance-field", "constructor", "static-method", "instance-method"] }],
|
||||
"no-bitwise": false,
|
||||
"no-console": [true],
|
||||
"no-empty-interface": false,
|
||||
"no-trailing-whitespace": [true],
|
||||
"no-unused-variable": [true],
|
||||
"object-curly-spacing": [true, "always"],
|
||||
"object-literal-shorthand": false,
|
||||
"object-literal-sort-keys": false,
|
||||
"ordered-imports": [true, { "import-sources-order": "any", "named-imports-order": "any" }],
|
||||
"semicolon": [true, "always"],
|
||||
"ter-indent": [true, 4],
|
||||
"ter-no-irregular-whitespace": [true],
|
||||
"trailing-comma": [true, "never"],
|
||||
"triple-equals": [true],
|
||||
"variable-name": [true, "allow-leading-underscore"]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user