Skip to content

Commit

Permalink
feat: update packages and add eslint-plugin-import
Browse files Browse the repository at this point in the history
Rules added:
- import/dynamic-import-chunkname
- import/newline-after-import
- import/no-mutable-exports
- import/order

Added `browser` and `node` to `env` setting
  • Loading branch information
MarkH817 committed Jan 22, 2020
1 parent ef7bf36 commit 1ef2ae8
Show file tree
Hide file tree
Showing 4 changed files with 689 additions and 739 deletions.
19 changes: 9 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"env": { "browser": true, "node": true },
"extends": [
"plugin:jest/recommended",
"plugin:jsx-a11y/recommended",
"standard",
"standard-jsx"
],
"plugins": ["jest", "jsx-a11y", "react-hooks"],
"plugins": ["import", "jest", "jsx-a11y", "react-hooks"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 11
},
"parserOptions": { "ecmaVersion": 11 },
"rules": {
"arrow-body-style": "error",
"arrow-parens": ["error", "as-needed"],
Expand All @@ -31,15 +30,15 @@
"single",
{ "avoidEscape": true, "allowTemplateLiterals": true }
],
"import/dynamic-import-chunkname": "error",
"import/newline-after-import": "error",
"import/no-mutable-exports": "error",
"import/order": "error",
"react/jsx-fragments": "off",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-fragments": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"settings": {
"react": {
"version": "latest"
}
}
"settings": { "react": { "version": "latest" } }
}
Loading

0 comments on commit 1ef2ae8

Please sign in to comment.