Skip to content

Commit

Permalink
chore(deps): upgrade deps remove deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
eMerzh authored and tch-elium committed Jun 28, 2022
1 parent 6353577 commit a97da08
Show file tree
Hide file tree
Showing 3 changed files with 1,336 additions and 1,608 deletions.
28 changes: 19 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
'use strict'

module.exports = {
extends: [
'standard',
'standard-react',
'plugin:react/recommended',
'prettier',
],
plugins: ['graphql', 'react', 'prettier', 'standard', 'react-hooks'],
extends: ['standard', 'standard-react', 'plugin:react/recommended', 'prettier'],
plugins: ['graphql', 'react', 'prettier', 'react-hooks'],
settings: {
react: {
version: 'detect',
},
},
// "off" or 0 - turn the rule off
// "warn" or 1 - turn the rule on as a warning (doesn't affect exit code)
// "error" or 2 - turn the rule on as an error (exit code is 1 when triggered)
// "warn" or 1 - turn the rule on as a warning (doesn't affect exit code)
// "error" or 2 - turn the rule on as an error (exit code is 1 when triggered)
rules: {
// Don't use import/no-duplicates as it's quite slow and we don't use Flow

// from eslint-config-standard-react
'react/jsx-no-bind': [
'error',
{
allowArrowFunctions: true,
allowBind: false,
ignoreRefs: true,
},
],
'react/no-did-update-set-state': 'error',
'react/no-unknown-property': 'error',
'react/no-unused-prop-types': 'error',
'react/react-in-jsx-scope': 'error',

// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md#when-not-to-use-it
'import/no-duplicates': 0,
'no-duplicate-imports': 2,
Expand Down
26 changes: 12 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,23 @@
"license": "MIT",
"homepage": "https://github.com/whatever-company/eslint-config-elium",
"devDependencies": {
"eslint": "7.21.0",
"eslint-config-prettier": "8.1.0",
"eslint-config-standard": "16.0.2",
"eslint-config-standard-react": "11.0.1",
"eslint": "8.18.0",
"eslint-config-prettier": "8.5.0",
"eslint-config-standard": "17.0.0",
"eslint-plugin-babel": "5.3.1",
"eslint-plugin-graphql": "4.0.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prettier": "3.3.1",
"eslint-plugin-promise": "4.3.1",
"eslint-plugin-react": "7.22.0",
"eslint-plugin-react-hooks": "4.2.0",
"eslint-plugin-standard": "5.0.0",
"graphql": "15.5.0",
"prettier": "2.2.1",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-promise": "6.0.0",
"eslint-plugin-react": "7.30.1",
"eslint-plugin-react-hooks": "4.6.0",
"graphql": "16.5.0",
"prettier": "2.7.1",
"prettier-cli": "0.1.0",
"standard-version": "9.1.1"
"standard-version": "9.5.0",
"eslint-config-standard-react": "^11.0.1"
},
"dependencies": {},
"scripts": {
"format": "prettier --write '**/*.{js,jsx,md,json,css}'",
"release": "standard-version"
Expand Down
Loading

0 comments on commit a97da08

Please sign in to comment.