Skip to content

Commit 12d1a57

Browse files
committed
Add prefer-optional-chain
Closes #11
1 parent b83024e commit 12d1a57

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ module.exports = {
1515
'import/external-module-folders': ['node_modules', 'node_modules/@types'],
1616
},
1717
rules: {
18-
// https://github.com/typescript-eslint/typescript-eslint/blob/v4.0.1/packages/eslint-plugin/docs/rules/array-type.md
18+
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/array-type.md
1919
'@typescript-eslint/array-type': ['error', {
2020
default: 'array'
2121
}],
2222

23-
// https://github.com/typescript-eslint/typescript-eslint/blob/v4.0.1/packages/eslint-plugin/docs/rules/consistent-type-definitions.md
23+
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-definitions.md
2424
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
2525

2626
// https://github.com/typescript-eslint/typescript-eslint/blob/v4.0.1/packages/eslint-plugin/docs/rules/explicit-function-return-type.md
@@ -36,6 +36,10 @@ module.exports = {
3636
// https://github.com/typescript-eslint/typescript-eslint/blob/v4.0.1/packages/eslint-plugin/docs/rules/prefer-enum-initializers.md
3737
'@typescript-eslint/prefer-enum-initializers': 'error',
3838

39+
40+
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-optional-chain.md
41+
"prefer-optional-chain": "error",
42+
3943
},
4044
overrides: [
4145
{

0 commit comments

Comments
 (0)