Skip to content

Commit

Permalink
module
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Oct 25, 2024
1 parent 5b3ffe8 commit 1a027d5
Show file tree
Hide file tree
Showing 14 changed files with 12,572 additions and 5,107 deletions.
39 changes: 0 additions & 39 deletions .eslintrc.js

This file was deleted.

50 changes: 50 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import antfu from '@antfu/eslint-config'

export default antfu(
{
ignores: ['dist', 'docs'],
jsx: false,
typescript: true,
formatters: {
markdown: true,
},
rules: {
'curly': ['error', 'multi-line'],
'import/extensions': 'off',
'import/order': 0,
'jsdoc/check-alignment': 'error',
'jsdoc/check-line-alignment': 'error',
'perfectionist/sort-exports': 'error',
'perfectionist/sort-imports': [
'error',
{
groups: [
'builtin-type',
'external-type',
'internal-type',
['parent-type', 'sibling-type', 'index-type'],
'builtin',
'external',
'internal',
['parent', 'sibling', 'index'],
'object',
'unknown',
],
order: 'asc',
type: 'natural',
},
],
'perfectionist/sort-named-exports': 'error',
'perfectionist/sort-named-imports': 'error',
'sort-imports': 0,
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'style/quote-props': ['error', 'consistent-as-needed'],
'test/no-only-tests': 'error',
'unicorn/no-useless-spread': 'error',
'unused-imports/no-unused-vars': ['error', { caughtErrors: 'none' }],
'no-new': 0, // Disable the no-new rule
'new-cap': 0, // Disable the new-cap rule
'no-undef': 0, // Disable the no-undef rule
},
},
)
Loading

0 comments on commit 1a027d5

Please sign in to comment.