Skip to content

Commit

Permalink
Eslint config and pretty code (#161)
Browse files Browse the repository at this point in the history
* Make getContent to be static

* Add eslint to editor

* clearn up
  • Loading branch information
fameoflight authored and margox committed Jun 10, 2018
1 parent a4ede07 commit 767c3f1
Show file tree
Hide file tree
Showing 5 changed files with 11,260 additions and 168 deletions.
49 changes: 49 additions & 0 deletions .eslintrc
@@ -0,0 +1,49 @@
{
"parser": "babel-eslint",
"extends": ["airbnb", "prettier", "prettier/react"],
"globals": {
"_": false
},
"env": {
"browser": true,
"node": true
},
"rules": {
"indent": [
"error",
2,
{
"ArrayExpression": "first"
}
],
"comma-dangle": 0,
"max-len": 0,
"jsx-quotes": [2, "prefer-double"],
"quotes": [
2,
"double",
{
"avoidEscape": true
}
],
"arrow-parens": ["error", "always"],
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"eol-last": ["error", "always"],
"class-methods-use-this": 0,
"function-paren-newline": 0,
"react/prefer-stateless-function": 0,
"react/forbid-prop-types": 0,
"jsx-a11y/anchor-is-valid": 0,
"react/sort-comp": 0,
"prefer-destructuring": 0,
"react/require-default-props": 0,
"import/no-extraneous-dependencies": 0,
"import/extensions": 0,
"import/no-unresolved": 0
}
}
4 changes: 4 additions & 0 deletions .prettierrc
@@ -0,0 +1,4 @@
{
"trailingComma": "all",
"arrowParens": "always"
}

0 comments on commit 767c3f1

Please sign in to comment.