Skip to content

Commit

Permalink
Merge pull request #45 from mizdra/update-project-config
Browse files Browse the repository at this point in the history
Update project config
  • Loading branch information
mizdra authored Dec 8, 2024
2 parents 0faf264 + 34d3c90 commit 9e46e80
Show file tree
Hide file tree
Showing 13 changed files with 4,053 additions and 4,628 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

23 changes: 0 additions & 23 deletions .eslintrc.cjs

This file was deleted.

30 changes: 30 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// @ts-check
import mizdra from '@mizdra/eslint-config-mizdra';

/** @type {import('eslint').Linter.Config[]} */
export default [
{ ignores: ['**/dist', 'examples'] },
...mizdra.baseConfigs,
...mizdra.typescriptConfigs,
...mizdra.nodeConfigs,
{
files: ['**/*.{js,jsx,mjs,cjs}', '**/*.{ts,tsx,cts,mts}'],
rules: {
'simple-import-sort/imports': [
'error',
{
// Remove blank lines between import groups
// ref: https://github.com/lydell/eslint-plugin-simple-import-sort?tab=readme-ov-file#how-do-i-use-this-with-dprint
groups: [['^\\u0000', '^node:', '^@?\\w', '^', '^\\.']],
},
],
},
},
{
files: ['**/*.{mjs,mts}'],
languageOptions: {
sourceType: 'module',
},
},
mizdra.prettierConfig,
];
Loading

0 comments on commit 9e46e80

Please sign in to comment.