Skip to content

Commit

Permalink
Update dependencies and fix audit
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed Jan 30, 2022
1 parent 0988853 commit e2bd37b
Show file tree
Hide file tree
Showing 4 changed files with 182 additions and 255 deletions.
47 changes: 24 additions & 23 deletions eslint-config-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,26 @@ module.exports = {
}],
'@typescript-eslint/member-delimiter-style': 'error',
'@typescript-eslint/member-ordering': ['error', {
'default': [
'public-static-field',
'protected-static-field',
'private-static-field',
'public-field',
'protected-field',
'private-field',
'default': {
'memberTypes': [
'public-static-field',
'protected-static-field',
'private-static-field',
'public-field',
'protected-field',
'private-field',

'public-constructor',
'protected-constructor',
'private-constructor',
'constructor',

'public-static-method',
'protected-static-method',
'private-static-method',
'public-method',
'protected-method',
'private-method'
]
'public-method',
'protected-method',
'private-method',
'public-static-method',
'protected-static-method',
'private-static-method'
],
'order': 'alphabetically-case-insensitive'
}
}],
'@typescript-eslint/method-signature-style': 'error',
'camelcase': 'off',
Expand Down Expand Up @@ -209,7 +210,7 @@ module.exports = {
'@typescript-eslint/require-await': 'error',
'@typescript-eslint/return-await': 'error',
'@typescript-eslint/semi': 'error',
'@typescript-eslint/space-before-function-paren': ['error', {
'@typescript-eslint/space-before-function-paren': ['error', {
'anonymous': 'never',
'named': 'never',
'asyncArrow': 'always'
Expand Down Expand Up @@ -240,20 +241,20 @@ module.exports = {
}
},
{
files: ["*.json", "*.json5", "*.jsonc"],
parser: "jsonc-eslint-parser"
files: ['*.json', '*.json5', '*.jsonc'],
parser: 'jsonc-eslint-parser'
},
{
files: ["*.json"],
files: ['*.json'],
excludedFiles: ['tsconfig.json', 'jsconfig.json'],
extends: ['plugin:jsonc/recommended-with-json']
},
{
files: ["*.jsonc", 'tsconfig.json', 'jsconfig.json'],
files: ['*.jsonc', 'tsconfig.json', 'jsconfig.json'],
extends: ['plugin:jsonc/recommended-with-jsonc']
},
{
files: ["*.json5"],
files: ['*.json5'],
extends: ['plugin:jsonc/recommended-with-json5']
}
],
Expand Down
7 changes: 6 additions & 1 deletion eslint-config-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ module.exports = {
rules: {
'react/button-has-type': 'warn',
'react/display-name': 'error',
// needs eslint-plugin-react above 7.28.0
// see https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md
// 'react/hook-use-state': 'error',
'react/no-access-state-in-setstate': 'error',
'react/no-array-index-key': 'error',
'react/no-children-prop': 'error',
Expand Down Expand Up @@ -118,7 +121,9 @@ module.exports = {
"multi": 1
}
}],
'react/jsx-no-bind': 'error',
'react/jsx-no-bind': ['warn', {
ignoreDOMComponents: true
}],
'react/jsx-no-comment-textnodes': 'error',
'react/jsx-no-constructed-context-values': 'error',
'react/jsx-no-duplicate-props': 'error',
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@
],
"license": "MIT",
"dependencies": {
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"@typescript-eslint/eslint-plugin": "^5.10.1",
"@typescript-eslint/parser": "^5.10.1",
"eslint-import-resolver-typescript": "^2.5.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^25.3.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.0.0",
"eslint-plugin-jest-formatting": "^3.1.0",
"eslint-plugin-jsonc": "^2.0.0",
"eslint-plugin-jsonc": "^2.1.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-lodash": "^7.3.0",
"eslint-plugin-promise": "^5.1.1",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"jsonc-eslint-parser": "^2.0.4"
"jsonc-eslint-parser": "^2.1.0"
},
"devDependencies": {
"@types/eslint": "^8.2.0",
"@types/node": "^16.11.10",
"@types/eslint": "^8.4.1",
"@types/node": "^16.11.21",
"auto-changelog": "^2.3.0",
"eslint": "^8.3.0",
"eslint": "^8.8.0",
"exit-code": "^1.0.2",
"typescript": "^4.5.2"
"typescript": "^4.5.5"
},
"peerDependencies": {
"eslint": ">=7",
Expand Down
Loading

0 comments on commit e2bd37b

Please sign in to comment.