Skip to content

Commit

Permalink
adding eslint and my personal rules, base on XO
Browse files Browse the repository at this point in the history
  • Loading branch information
lacymorrow committed Jul 8, 2021
1 parent b4c5fd6 commit 571f16e
Show file tree
Hide file tree
Showing 8 changed files with 946 additions and 771 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
45 changes: 45 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
'extends': [
'xo',
'plugin:react/recommended'
],
"rules": {
"array-bracket-spacing": [
"error",
"always"
],
"padded-blocks": [
"error",
{
"blocks": "always",
"switches": "always",
"classes": "always"
}
],
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "multiline-block-like",
"next": "*"
},
{
"blankLine": "always",
"prev": "*",
"next": "return"
}
],
"object-curly-spacing": [
"error",
"always"
],
"semi": [
2,
"never"
],
"space-in-parens": [
"error",
"always"
]
}
}
Loading

0 comments on commit 571f16e

Please sign in to comment.