Skip to content

Commit

Permalink
Merge pull request #4 from agoda-com/init-modify
Browse files Browse the repository at this point in the history
feat: modify the defaults to match the style guide
  • Loading branch information
matmalkowski authored Oct 30, 2019
2 parents 78c54c1 + 208a6e1 commit b362043
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion configs/@typescript-eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
"@typescript-eslint/no-namespace": ["error"],
"@typescript-eslint/no-non-null-assertion": ["warn"],
"@typescript-eslint/no-this-alias": ["error"],
"@typescript-eslint/no-unused-vars": ["warn"],
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "_" }],
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/no-var-requires": ["error"],
"@typescript-eslint/prefer-namespace-keyword": ["error"],
Expand Down
2 changes: 1 addition & 1 deletion configs/eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ module.exports = {
requireReturnForObjectLiteral: false
}
],
"arrow-parens": ["error", "always"],
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
"arrow-spacing": [
"error",
{
Expand Down
11 changes: 4 additions & 7 deletions configs/react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ module.exports = {
],
"react/jsx-boolean-value": [
"error",
"never",
{
always: []
}
"always"
],
"react/jsx-closing-bracket-location": ["error", "line-aligned"],
"react/jsx-closing-tag-location": ["error"],
Expand All @@ -62,7 +59,7 @@ module.exports = {
eventHandlerPropPrefix: "on"
}
],
"react/jsx-indent-props": ["error", 2],
"react/jsx-indent-props": ["error", 4],
"react/jsx-key": ["off"],
"react/jsx-max-props-per-line": [
"error",
Expand Down Expand Up @@ -213,7 +210,7 @@ module.exports = {
],
"react/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
"react/jsx-equals-spacing": ["error", "never"],
"react/jsx-indent": ["error", 2],
"react/jsx-indent": ["error", 4],
"react/jsx-no-target-blank": [
"error",
{
Expand Down Expand Up @@ -329,7 +326,7 @@ module.exports = {
"error",
{
html: "enforce",
custom: "enforce",
custom: "ignore",
exceptions: []
}
],
Expand Down

0 comments on commit b362043

Please sign in to comment.