Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
juliancwirko committed Nov 10, 2024
1 parent 3989db8 commit d1128c2
Show file tree
Hide file tree
Showing 6 changed files with 1,071 additions and 3,946 deletions.
25 changes: 0 additions & 25 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.editorconfig
.eslintrc
eslint.config.mjs
.prettierrc
43 changes: 43 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import globals from 'globals';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
...compat.extends('plugin:prettier/recommended', 'eslint:recommended'),
{
languageOptions: {
globals: {
...globals.node,
},

ecmaVersion: 2020,
sourceType: 'module',
},

rules: {
'no-var': 'error',
'prefer-const': 'error',
'no-use-before-define': 'error',
'no-mixed-spaces-and-tabs': 'error',
'no-nested-ternary': 'error',
'no-unused-vars': 'error',

'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
},
},
];
Loading

0 comments on commit d1128c2

Please sign in to comment.