New rules

This commit is contained in:
Alex
2024-04-19 21:54:02 -04:00
parent fb50ede688
commit 003a43512c
9 changed files with 19 additions and 16 deletions

View File

@ -42,7 +42,15 @@ export const eslintRules: Partial<EslintRules> = {
'prefer-spread': warn,
'quote-props': [error, 'as-needed'],
'sort-imports': [warn, { ignoreDeclarationSort: true }],
'spaced-comment': [error, 'always', { markers: ['/', '#', '@'] }],
'spaced-comment': [
error,
'always',
{
markers: ['/', '#', '@'],
// allow /*@__PURE__*/
block: { exceptions: ['@'] },
},
],
complexity: [warn, { max: 100 }],
curly: [error, 'multi-line', 'consistent'],
eqeqeq: [error, 'smart'],