Skip to content

Commit 31afb38

Browse files
authored
Move eslint-config-prettier to last in extends (#17)
eslint-config-prettier must be last in the extends array so it can properly override formatting rules from all preceding configs. Being first meant eslint:recommended and the typescript-eslint config could re-enable formatting rules after prettier disabled them.
1 parent 033d9fd commit 31afb38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ module.exports = {
44
es2021: true,
55
},
66
extends: [
7-
'prettier',
87
'eslint:recommended',
98
'plugin:promise/recommended',
109
'plugin:@typescript-eslint/recommended-type-checked',
10+
'prettier',
1111
],
1212
parser: '@typescript-eslint/parser',
1313
parserOptions: {

0 commit comments

Comments
 (0)