mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-22 06:21:37 +01:00
40 lines
1.1 KiB
JSON
40 lines
1.1 KiB
JSON
{
|
|
"linterOptions": {
|
|
"exclude": ["src/generated/*.tsx"]
|
|
},
|
|
"extends": ["tslint-config-airbnb", "tslint-react-hooks"],
|
|
"rules": {
|
|
"no-conditional-assignment": true,
|
|
"no-unbound-method": true,
|
|
"no-sparse-arrays": true,
|
|
"restrict-plus-operands": true,
|
|
"no-invalid-template-strings": true,
|
|
"no-boolean-literal-compare": true,
|
|
"no-console": true,
|
|
"object-shorthand-properties-first": false,
|
|
"ter-arrow-parens": [true, "as-needed"],
|
|
"trailing-comma": false,
|
|
"indent": [true, "spaces", 4],
|
|
"import-name": false,
|
|
"align": false,
|
|
"function-name": [
|
|
true,
|
|
{
|
|
"function-regex": "^[a-zA-Z$][\\w\\d]+$",
|
|
"method-regex": "^[a-z$][\\w\\d]+$",
|
|
"private-method-regex": "^[a-z$][\\w\\d]+$",
|
|
"protected-method-regex": "^[a-z$][\\w\\d]+$",
|
|
"static-method-regex": "^[a-z$][\\w\\d]+$"
|
|
}
|
|
],
|
|
"variable-name": {
|
|
"options": [
|
|
"ban-keywords",
|
|
"check-format",
|
|
"allow-leading-underscore",
|
|
"allow-pascal-case"
|
|
]
|
|
},
|
|
"react-hooks-nesting": true
|
|
}
|
|
}
|