Skip to content

Commit 2b26255

Browse files
committed
Add array-type rule
Closes #2
1 parent 4e251df commit 2b26255

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,11 @@ module.exports = {
1414
'import/extensions': ['.js', '.mjs', '.jsx', '.ts', '.tsx', '.d.ts'],
1515
'import/external-module-folders': ['node_modules', 'node_modules/@types'],
1616
},
17+
rules: {
18+
// https://github.com/typescript-eslint/typescript-eslint/blob/v4.0.1/packages/eslint-plugin/docs/rules/array-type.md
19+
'@typescript-eslint/array-type': ['error', {
20+
default: 'array'
21+
}],
22+
23+
},
1724
};

0 commit comments

Comments
 (0)