Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #237 from Sage/add-react-hooks-eslint-config
Browse files Browse the repository at this point in the history
Added react hooks ruleset
  • Loading branch information
edleeks87 authored Dec 10, 2019
2 parents 6355008 + 5024c86 commit e3f8f1b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"jsx-a11y/no-noninteractive-element-interactions": "warn",
"jsx-a11y/no-static-element-interactions": "warn",
"jsx-quotes": ["error", "prefer-single"],
"linebreak-style": ["error", "unix"],
"linebreak-style": ["error", "unix"],
"max-len": ["error", 120],
"max-params": ["error", 5],
"multiline-ternary": ["error", "never"],
Expand Down Expand Up @@ -77,9 +77,11 @@
"render"
]
}],
"semi": ["error", "always"],
"semi-spacing": ["error", {"before": false, "after": true}],
"space-before-function-paren": "off"
"semi": ["error", "always"],
"semi-spacing": ["error", {"before": false, "after": true}],
"space-before-function-paren": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"env": {
"es6": true,
Expand All @@ -92,6 +94,7 @@
"airbnb"
],
"plugins": [
"react"
"react",
"react-hooks"
]
}
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "carbon-factory",
"version": "9.1.0",
"version": "10.0.0",
"description": "Tools to help create user interfaces with Carbon and React.",
"scripts": {},
"author": "The Sage Group plc",
Expand Down Expand Up @@ -31,6 +31,7 @@
"eslint-plugin-import": "2.13.0",
"eslint-plugin-jsx-a11y": "6.1.1",
"eslint-plugin-react": "7.10.0",
"eslint-plugin-react-hooks": "^2.3.0",
"file-loader": "1.1.11",
"identity-obj-proxy": "3.0.0",
"jest": "24.9.0",
Expand Down

0 comments on commit e3f8f1b

Please sign in to comment.