Skip to content

Commit

Permalink
fix(function-name): Fix wrong regex notation which broke the builds (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
buehler authored and mfeltscher committed Mar 28, 2018
1 parent 626d1b0 commit e1080b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 29 deletions.
18 changes: 6 additions & 12 deletions tslint-react.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
{
"extends": ["tslint-react", "./tslint.json"],
"rules": {
"variable-name": [
true,
"check-format",
"ban-keywords",
"allow-leading-underscore",
"allow-pascal-case"
],
"variable-name": [true, "check-format", "ban-keywords", "allow-leading-underscore", "allow-pascal-case"],
"jsx-boolean-value": ["never"],
"jsx-no-multiline-js": false,
"jsx-no-lambda": false,
"import-name": false,
"function-name": [
true,
{
"function-regex": "/^([a-z$]|[A-Z$][a-z\\d])[\\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]+$/"
"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]+$"
}
]
}
Expand Down
20 changes: 3 additions & 17 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"extends": "tslint-config-airbnb",
"rules": {
"max-line-length": [
true,
125
],
"max-line-length": [true, 125],
"member-ordering": [
true,
{
Expand All @@ -13,19 +10,8 @@
],
"ordered-imports": true,
"no-increment-decrement": false,
"typedef": [
true,
"call-signature",
"parameter",
"property-declaration",
"member-variable-declaration"
],
"variable-name": [
true,
"check-format",
"ban-keywords",
"allow-leading-underscore"
],
"typedef": [true, "call-signature", "parameter", "property-declaration", "member-variable-declaration"],
"variable-name": [true, "check-format", "ban-keywords", "allow-leading-underscore"],
"no-boolean-literal-compare": false,
"strict-boolean-expressions": false,
"member-access": true
Expand Down

0 comments on commit e1080b2

Please sign in to comment.