11extends :
22 - eslint:recommended
3- - plugin:eslint-comments/recommended
4- - plugin:import/recommended
5- - plugin:import/typescript
63 - plugin:@typescript-eslint/recommended
74 - plugin:@typescript-eslint/recommended-requiring-type-checking
85 - plugin:@typescript-eslint/strict
6+ - plugin:eslint-comments/recommended
7+ - plugin:import/recommended
8+ - plugin:import/typescript
99 - plugin:jsdoc/recommended
10+ - plugin:unicorn/recommended
1011 - prettier
1112parser : ' @typescript-eslint/parser'
1213parserOptions :
@@ -15,8 +16,8 @@ parserOptions:
1516 allowAutomaticSingleRunInference : true
1617plugins :
1718 - ' @typescript-eslint'
18- - filenames
1919 - jsdoc
20+ - unicorn
2021settings :
2122 import/resolver :
2223 typescript :
6667 ' @typescript-eslint/switch-exhaustiveness-check ' : error
6768 ' @typescript-eslint/unified-signatures ' : error
6869 ' eslint-comments/no-unused-disable ' : ' error'
69- ' filenames/match-regex ' :
70- - ' error'
71- - ' ^[a-z0-9-.]+$' # Kebab-case.
7270 jsdoc/check-param-names : off
7371 jsdoc/newline-after-description : off
7472 jsdoc/require-jsdoc :
@@ -79,6 +77,23 @@ rules:
7977 jsdoc/require-param : off
8078 jsdoc/require-param-type : off
8179 jsdoc/tag-lines : off
80+ unicorn/consistent-function-scoping :
81+ - ' error'
82+ - checkArrowFunctions : false
83+ unicorn/custom-error-definition : error
84+ unicorn/no-array-callback-reference : off
85+ unicorn/no-null : off
86+ unicorn/prefer-module : off
87+ unicorn/prefer-ternary :
88+ - error
89+ - only-single-line
90+ unicorn/prevent-abbreviations :
91+ - error
92+ - allowList :
93+ ' args ' : true
94+ ' doc ' : true
95+ ' Doc ' : true
96+ ' env ' : true
8297overrides :
8398 - files : tests/**/*.test.{js,ts}
8499 plugins :
0 commit comments