Skip to content

Commit baac51e

Browse files
committed
fix: disable some unicorn rules
1 parent b382c21 commit baac51e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cli/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ module.exports = defineConfig({\n${coderwydConfig}\n})
158158
} else {
159159
let settingsContent = await fsp.readFile(settingsPath, 'utf8')
160160

161-
settingsContent = settingsContent.trim().replace(/\s*}$/, '')
161+
settingsContent = settingsContent.trim().replace(/\s*\}$/, '')
162162
settingsContent +=
163163
settingsContent.endsWith(',') || settingsContent.endsWith('{')
164164
? ''

src/configs/unicorn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export async function unicorn(): Promise<TypedFlatConfigItem[]> {
99
unicorn: pluginUnicorn,
1010
},
1111
rules: {
12-
'unicorn/better-regex': 'error',
12+
// 'unicorn/better-regex': 'error',
1313
'unicorn/catch-error-name': 'error',
1414
'unicorn/custom-error-definition': 'error',
1515
'unicorn/error-message': 'error',
@@ -63,7 +63,7 @@ export async function unicorn(): Promise<TypedFlatConfigItem[]> {
6363
'unicorn/prefer-prototype-methods': 'error',
6464
'unicorn/prefer-query-selector': 'error',
6565
'unicorn/prefer-reflect-apply': 'error',
66-
'unicorn/prefer-regexp-test': 'error',
66+
// 'unicorn/prefer-regexp-test': 'error',
6767
'unicorn/prefer-string-replace-all': 'error',
6868
'unicorn/prefer-string-slice': 'error',
6969
'unicorn/prefer-string-starts-ends-with': 'error',

0 commit comments

Comments
 (0)