Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
admon84 committed Dec 21, 2024
1 parent fe3d4bb commit f54624a
Show file tree
Hide file tree
Showing 9 changed files with 426 additions and 348 deletions.
90 changes: 0 additions & 90 deletions .eslintrc.cjs

This file was deleted.

4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/node_modules
/dist
node_modules/
dist/
13 changes: 0 additions & 13 deletions .prettierrc

This file was deleted.

66 changes: 66 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import typescriptEslintPlugin from '@typescript-eslint/eslint-plugin';
import typescriptEslintParser from '@typescript-eslint/parser';
import importPlugin from 'eslint-plugin-import';
import prettierPlugin from 'eslint-plugin-prettier';

export default [
{
files: ['src/**/*.ts'],
languageOptions: {
ecmaVersion: 2022,
parser: typescriptEslintParser,
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: './',
sourceType: 'module',
},
globals: {
es6: true,
node: true,
},
},
plugins: {
'@typescript-eslint': typescriptEslintPlugin,
import: importPlugin,
prettier: prettierPlugin,
},
rules: {
'@typescript-eslint/array-type': 'error',
'@typescript-eslint/consistent-type-assertions': 'error',
'@typescript-eslint/consistent-type-definitions': 'error',
'@typescript-eslint/explicit-member-accessibility': [
'error',
{
accessibility: 'explicit',
},
],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-shadow': [
'error',
{
hoist: 'all',
},
],
'@typescript-eslint/no-unused-expressions': 'error',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'@typescript-eslint/no-use-before-define': ['error', { functions: false }],
'@typescript-eslint/prefer-for-of': 'error',
'@typescript-eslint/unified-signatures': 'error',
camelcase: 'error',
eqeqeq: ['error', 'smart'],
'id-denylist': ['error', 'any', 'Number', 'number', 'String', 'string', 'Boolean', 'boolean', 'Undefined'],
'id-match': 'error',
'max-classes-per-file': ['error', 1],
'no-caller': 'error',
'no-eval': 'error',
'no-new-wrappers': 'error',
'no-undef-init': 'error',
'no-underscore-dangle': 'off',
'no-var': 'error',
'object-shorthand': 'error',
'one-var': ['error', 'never'],
radix: 'error',
'spaced-comment': 'error',
},
},
];
Loading

0 comments on commit f54624a

Please sign in to comment.