Skip to content

Commit

Permalink
feat(imports): Switch to eslint-plugin-import to lint imports and add…
Browse files Browse the repository at this point in the history
… sort-vars
  • Loading branch information
trevorgerhardt committed Dec 19, 2017
1 parent e650785 commit 3734d61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,24 @@
"parser": "babel-eslint",
"plugins": [
"flowtype",
"import",
"jest",
"jsx-a11y"
],
"rules": {
"complexity": ["warn", 10],
"import/order": ["warn", {
"newlines-between": "always"
}],
"no-magic-numbers": ["warn", {
"ignore": [-1, 0, 1]
}],
"prefer-const": ["warn", {
"destructuring": "all",
"ignoreReadBeforeAssign": false
}],
"sort-imports": "warn",
"sort-keys": "warn",
"sort-vars": "warn",

"jsx-a11y/accessible-emoji": "warn",
"jsx-a11y/alt-text": "warn",
Expand Down

0 comments on commit 3734d61

Please sign in to comment.