Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eslint config and pretty code (#161)
* Make getContent to be static * Add eslint to editor * clearn up
- Loading branch information
1 parent
a4ede07
commit 767c3f1
Showing
5 changed files
with
11,260 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"trailingComma": "all", | ||
"arrowParens": "always" | ||
} |
Oops, something went wrong.