Skip to content

Commit

Permalink
Upgraded many dependencies, updated some configs
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed May 22, 2022
1 parent cd192a3 commit ecb4d5d
Show file tree
Hide file tree
Showing 4 changed files with 257 additions and 196 deletions.
12 changes: 7 additions & 5 deletions eslint-config-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ module.exports = {
'lines-between-class-members': 'off',
'no-array-constructor': 'off',
'no-dupe-class-members': 'off',
'no-duplicate-imports': 'off',
'no-empty-function': 'off',
'no-extra-parens': 'off',
'no-extra-semi': 'off',
Expand Down Expand Up @@ -171,12 +170,13 @@ module.exports = {
'@typescript-eslint/lines-between-class-members': 'error',
'@typescript-eslint/no-array-constructor': 'error',
'@typescript-eslint/no-dupe-class-members': 'error',
'@typescript-eslint/no-duplicate-imports': 'error',
'@typescript-eslint/no-duplicate-enum-values': 'error',
'@typescript-eslint/no-empty-function': ['error', {
'allow': [
'private-constructors',
'protected-constructors',
'decoratedFunctions'
'decoratedFunctions',
'overrideMethods'
]
}],
'@typescript-eslint/no-extra-parens': ['error', 'all', {
Expand All @@ -196,7 +196,8 @@ module.exports = {
'ignoreDefaultValues': true,
'ignoreEnums': true,
'ignoreNumericLiteralTypes': true,
'ignoreReadonlyClassProperties': true
'ignoreReadonlyClassProperties': true,
'ignoreTypeIndexes': true
}],
'@typescript-eslint/no-redeclare': 'error',
'@typescript-eslint/no-redundant-type-constituents': 'error',
Expand All @@ -218,6 +219,7 @@ module.exports = {
}],
'@typescript-eslint/no-useless-constructor': 'error',
'@typescript-eslint/no-useless-empty-export': 'error',
'@typescript-eslint/parameter-properties': ['error', { 'prefer': 'parameter-property' }],
'@typescript-eslint/quotes': ['error', 'single'],
'@typescript-eslint/require-await': 'error',
'@typescript-eslint/return-await': 'error',
Expand Down Expand Up @@ -299,6 +301,7 @@ module.exports = {
'no-compare-neg-zero': 'error',
'no-cond-assign': ['error', 'always'],
'no-console': 'error',
'no-constant-binary-expression': 'error',
'no-constant-condition': 'error',
'no-control-regex': 'error',
'no-debugger': 'error',
Expand Down Expand Up @@ -521,7 +524,6 @@ module.exports = {
'no-confusing-arrow': 'error',
'no-const-assign': 'error',
'no-dupe-class-members': 'error',
'no-duplicate-imports': 'error',
'no-new-symbol': 'error',
'no-this-before-super': 'error',
'no-useless-computed-key': 'error',
Expand Down
1 change: 1 addition & 0 deletions eslint-config-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ module.exports = {
'react/jsx-no-comment-textnodes': 'error',
'react/jsx-no-constructed-context-values': 'error',
'react/jsx-no-duplicate-props': 'error',
'react/jsx-no-leaked-render': 'warn',
'react/jsx-no-script-url': ['error', linkComponents.map(function map(comp) {
return {
name: comp.name, props: [comp.linkAttribute]
Expand Down
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,29 @@
"license": "MIT",
"dependencies": {
"@next/eslint-plugin-next": "^12.1.6",
"@typescript-eslint/eslint-plugin": "^5.25.0",
"@typescript-eslint/parser": "^5.25.0",
"eslint-import-resolver-typescript": "^2.7.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.1.4",
"eslint-plugin-jest": "^26.2.2",
"eslint-plugin-jest-formatting": "^3.1.0",
"eslint-plugin-jsonc": "^2.2.1",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-lodash": "^7.4.0",
"eslint-plugin-n": "^15.1.0",
"eslint-plugin-n": "^15.2.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.4.0",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-security-node": "^1.1.1",
"jsonc-eslint-parser": "^2.1.0"
},
"devDependencies": {
"@types/eslint": "^8.4.1",
"@types/node": "^17.0.23",
"@types/eslint": "^8.4.2",
"@types/node": "^17.0.35",
"auto-changelog": "^2.4.0",
"eslint": "^8.13.0",
"eslint": "^8.16.0",
"exit-code": "^1.0.2",
"typescript": "^4.6.3"
"typescript": "^4.6.4"
},
"peerDependencies": {
"eslint": ">=7",
Expand Down
Loading

0 comments on commit ecb4d5d

Please sign in to comment.