Skip to content

Commit

Permalink
fix: upgrade eslint (#31)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: requires node > ^12.22.0. require host to install husky/lint-staged
  • Loading branch information
dadamssg committed Mar 24, 2022
1 parent e893dfd commit 27b472d
Show file tree
Hide file tree
Showing 5 changed files with 804 additions and 10,803 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: clearc2/node-8.12.0-browsers:0.0.1
- image: clearc2/browsers:node16.13.2-chrome97-ff96
steps:
- checkout
- restore_cache:
Expand Down
8 changes: 6 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
module.exports = {
extends: [
'standard',
'standard-jsx',
'standard-react'
],
plugins: [
'react-hooks'
],
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
env: {
mocha: true,
jest: true
Expand All @@ -20,7 +21,10 @@ module.exports = {
'max-len': ['error', {code: 120, ignoreComments: true}],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'react/no-did-update-set-state': 'off'
'react/no-did-update-set-state': 'off',
'react/jsx-fragments': 'off',
'react/jsx-no-bind': ['error', {allowFunctions: true, allowArrowFunctions: true}],
'multiline-ternary': 'off'
},
globals: {
FormData: false,
Expand Down

0 comments on commit 27b472d

Please sign in to comment.