Skip to content

Commit

Permalink
feat: add rules of hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamssg authored and c2builds committed Apr 4, 2019
1 parent b1dc57b commit 14b70c3
Show file tree
Hide file tree
Showing 5 changed files with 9,039 additions and 52 deletions.
17 changes: 17 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
jobs:
build:
docker:
- image: clearc2/node-8.12.0-browsers:0.0.1
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}
- v1-dependencies-
- run: yarn install --frozen-lockfile
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn run semantic-release
10 changes: 8 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,23 @@ module.exports = {
'standard',
'standard-react'
],
plugins: [
'react-hooks'
],
parser: 'babel-eslint',
env: {
mocha: true
mocha: true,
jest: true
},
rules: {
'no-console': 'error',
'react/no-unused-prop-types': 'off',
'key-spacing': ['error', {mode: 'strict'}],
'object-curly-spacing': ['error', 'never'],
'array-bracket-spacing': ['error', 'never'],
'max-len': ['error', {code: 120, ignoreComments: true}]
'max-len': ['error', {code: 120, ignoreComments: true}],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn'
},
globals: {
FormData: false,
Expand Down

0 comments on commit 14b70c3

Please sign in to comment.