Skip to content

Commit

Permalink
Update ESLint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Dec 16, 2024
1 parent df539c1 commit 8b53b93
Show file tree
Hide file tree
Showing 5 changed files with 1,002 additions and 2,156 deletions.
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

14 changes: 0 additions & 14 deletions .eslintrc.json

This file was deleted.

20 changes: 20 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import MyrotvoretsConfig from '@myrotvorets/eslint-config-myrotvorets-ts';
import globals from 'globals';

/** @type {import('eslint').Linter.Config[]} */
export default [
{
ignores: ['dist/**'],
},
...MyrotvoretsConfig,
{
files: ['*.mjs'],
languageOptions: {
sourceType: 'module',
ecmaVersion: 2022,
globals: {
...globals.nodeBuiltin,
},
},
},
];
2 changes: 1 addition & 1 deletion loader.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { register } from 'node:module';
import { pathToFileURL } from 'node:url';

register('ts-node/esm/transpile-only', pathToFileURL("./"));
register('ts-node/esm/transpile-only', pathToFileURL('./'));
Loading

0 comments on commit 8b53b93

Please sign in to comment.