Skip to content

Commit 00653d8

Browse files
renovate[bot]erik-slovakrostislav-simonik
authored
fix(deps): update dependency eslint-config-txo-typescript to ^3.2.10 (#139)
* fix(deps): update dependency eslint-config-txo-typescript to ^3.2.10 * chore: disable comma dangle in project * chore: fix eslint issues * chore: remove workaround for `comma-dangle` * chore: update `txo-typescript` config to fix `comma-dangle` rule * chore: fix eslint issues --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Erik Slovak <erik.slovak@technologystudio.sk> Co-authored-by: Rostislav Simonik <rostislav.simonik@technologystudio.sk>
1 parent 695cbe1 commit 00653d8

File tree

7 files changed

+29
-29
lines changed

7 files changed

+29
-29
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"semantic-release": "semantic-release"
2525
},
2626
"dependencies": {
27-
"eslint-config-txo-typescript": "^3.1.82"
27+
"eslint-config-txo-typescript": "^3.2.14"
2828
},
2929
"peerDependencies": {
3030
"eslint-plugin-jsx-a11y": "^6.7.1",

src/configs/jsx-a11y.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ module.exports = {
1313
// NOTE: If this error triggers, either disable it or add
1414
// your custom components, labels and attributes via these options
1515
// See https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-associated-control.md
16-
controlComponents: ['Input'],
17-
},
16+
controlComponents: ['Input']
17+
}
1818
],
1919
'jsx-a11y/mouse-events-have-key-events': 'error',
2020
'jsx-a11y/role-has-required-aria-props': 'error',
21-
'jsx-a11y/role-supports-aria-props': 'error',
22-
},
21+
'jsx-a11y/role-supports-aria-props': 'error'
22+
}
2323
}

src/configs/react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ module.exports = {
1010
'react-hooks/exhaustive-deps': 'error',
1111
'react/jsx-first-prop-new-line': ['error', 'multiline'],
1212
'react/jsx-uses-vars': 'error',
13-
'react/display-name': 'off',
14-
},
13+
'react/display-name': 'off'
14+
}
1515
}

src/configs/redux-saga.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
module.exports = {
88
rules: {
99
'redux-saga/no-yield-in-race': 'error',
10-
'redux-saga/yield-effects': 'error',
11-
},
10+
'redux-saga/yield-effects': 'error'
11+
}
1212
}

src/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,26 @@ module.exports = {
1111
...[
1212
'./configs/jsx-a11y',
1313
'./configs/react',
14-
'./configs/redux-saga',
15-
].map(require.resolve),
14+
'./configs/redux-saga'
15+
].map(require.resolve)
1616
],
1717
parser: '@typescript-eslint/parser',
1818
plugins: [
1919
'@typescript-eslint',
2020
'redux-saga',
2121
'react',
2222
'react-hooks',
23-
'jsx-a11y',
23+
'jsx-a11y'
2424
],
2525
parserOptions: {
2626
ecmaVersion: 6,
2727
sourceType: 'module',
2828
ecmaFeatures: {
29-
jsx: true,
29+
jsx: true
3030
},
31-
project: './tsconfig.json',
31+
project: './tsconfig.json'
3232
},
3333
rules: {
34-
strict: 'error',
35-
},
34+
strict: 'error'
35+
}
3636
}

test/React.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ import { useEffect } from 'react'
1010
type RulesOfHooksProps = { someProp?: string }
1111
export const RulesOfHooksOk = (props: RulesOfHooksProps): null => {
1212
useEffect(() => {
13-
if (props.someProp) {
13+
if (props.someProp != null && props.someProp !== '') {
1414
// localStorage.setItem('formData', name);
1515
}
1616
})
1717
return null
1818
}
1919

2020
export const RulesOfHooksError = (props: RulesOfHooksProps): null => {
21-
if (props.someProp) {
21+
if (props.someProp != null && props.someProp !== '') {
2222
// eslint-disable-next-line react-hooks/rules-of-hooks
2323
useEffect(function persistForm () {
2424
// localStorage.setItem('formData', name);
@@ -31,7 +31,7 @@ export const RulesOfHooksError = (props: RulesOfHooksProps): null => {
3131
type ExhaustiveDepsProps = { someProp?: string }
3232
export const ExhaustiveDepsOk = (props: ExhaustiveDepsProps): null => {
3333
useEffect(() => {
34-
if (props.someProp) {
34+
if (props.someProp != null && props.someProp !== '') {
3535
// localStorage.setItem('formData', name);
3636
}
3737
}, [props.someProp])
@@ -40,7 +40,7 @@ export const ExhaustiveDepsOk = (props: ExhaustiveDepsProps): null => {
4040

4141
export const ExhaustiveDepsError = (props: ExhaustiveDepsProps): null => {
4242
useEffect(() => {
43-
if (props.someProp) {
43+
if (props.someProp != null && props.someProp !== '') {
4444
// localStorage.setItem('formData', name);
4545
}
4646
// eslint-disable-next-line react-hooks/exhaustive-deps

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3004,10 +3004,10 @@ escape-string-regexp@^4.0.0:
30043004
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
30053005
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
30063006

3007-
eslint-config-standard-with-typescript@^31.0.0:
3008-
version "31.0.0"
3009-
resolved "https://registry.yarnpkg.com/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-31.0.0.tgz#763c3246ac739ef47337b2008d2ef2dc6088bb0d"
3010-
integrity sha512-FLTrcJR62gPPPFwwverxwDTcQDb4HOCfDqmELZgNMSbh1M/Ui36X47a9ZANeo3iuPhMOfvrfuShChW9chdasnA==
3007+
eslint-config-standard-with-typescript@^34.0.0:
3008+
version "34.0.0"
3009+
resolved "https://registry.yarnpkg.com/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-34.0.0.tgz#00378cdfccad580367d9e6f14cf1493fd69bf7b5"
3010+
integrity sha512-zhCsI4/A0rJ1ma8sf3RLXYc0gc7yPmdTWRVXMh9dtqeUx3yBQyALH0wosHhk1uQ9QyItynLdNOtcHKNw8G7lQw==
30113011
dependencies:
30123012
"@typescript-eslint/parser" "^5.0.0"
30133013
eslint-config-standard "17.0.0"
@@ -3017,12 +3017,12 @@ eslint-config-standard@17.0.0:
30173017
resolved "https://registry.yarnpkg.com/eslint-config-standard/-/eslint-config-standard-17.0.0.tgz#fd5b6cf1dcf6ba8d29f200c461de2e19069888cf"
30183018
integrity sha512-/2ks1GKyqSOkH7JFvXJicu0iMpoojkwB+f5Du/1SC0PtBL+s8v30k9njRZ21pm2drKYm2342jFnGWzttxPmZVg==
30193019

3020-
eslint-config-txo-typescript@^3.1.82:
3021-
version "3.1.82"
3022-
resolved "https://registry.yarnpkg.com/eslint-config-txo-typescript/-/eslint-config-txo-typescript-3.1.82.tgz#3d81087667d3abb87456321eb9ffa1f31db4653f"
3023-
integrity sha512-rPzZDCB3cQ83ZDMR7kYv9Al/DGDz6wkds/KwAI7nzkkM+UWsaWEUQBHk4jlFQ6F3H5ngXaWb0IDRgYnwyAK+Sg==
3020+
eslint-config-txo-typescript@^3.2.14:
3021+
version "3.2.14"
3022+
resolved "https://registry.yarnpkg.com/eslint-config-txo-typescript/-/eslint-config-txo-typescript-3.2.14.tgz#6d5e8fd349c5be1eaf935a80df5822ae07994c55"
3023+
integrity sha512-aUS7kjzCT/wM6YZG3Wnrh7OOfQNTbY0EdZJsGb6nPevKl2onpQ3J1EuLIodVtgiOS+bYIsnkdeKQFq+PjPVTlQ==
30243024
dependencies:
3025-
eslint-config-standard-with-typescript "^31.0.0"
3025+
eslint-config-standard-with-typescript "^34.0.0"
30263026
eslint-import-resolver-typescript "^3.5.3"
30273027

30283028
eslint-formatter-pretty@^4.1.0:

0 commit comments

Comments
 (0)