Skip to content

Commit

Permalink
build: update dependencies & eslint v9 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Trickfilm400 committed Oct 13, 2024
1 parent 23bd4de commit d472061
Show file tree
Hide file tree
Showing 5 changed files with 781 additions and 828 deletions.
35 changes: 0 additions & 35 deletions .eslintrc.cjs

This file was deleted.

43 changes: 43 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
{
ignores: ['dist/**/*.ts', 'dist/**', '**/*.mjs', 'eslint.config.mjs', '**/*.js'],
},
{
files: ['src/**/*.ts'],
languageOptions: {
parserOptions: {
project: true,
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
semi: ['error', 'always'],
'no-var': ['error'],
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-control-regex': [0],
'prettier/prettier': 'error',
'no-unused-vars': [
'error',
{
vars: 'all',
args: 'none',
ignoreRestSiblings: false,
argsIgnorePattern: 'reject',
},
],
'no-async-promise-executor': [0],
},
},
{
files: ['test/**'],
...tseslint.configs.disableTypeChecked,
},
eslintPluginPrettierRecommended
);
Loading

0 comments on commit d472061

Please sign in to comment.