Skip to content

Commit

Permalink
deps: upgrade to ESLint 9 (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoerpenbeck authored Oct 16, 2024
1 parent f4ceb60 commit 7f686db
Show file tree
Hide file tree
Showing 8 changed files with 920 additions and 1,325 deletions.
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

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

This file was deleted.

54 changes: 54 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import globals from 'globals';
import tsParser from '@typescript-eslint/parser';
import eslint from '@eslint/js';
import jestPlugin from 'eslint-plugin-jest';
import tseslint from 'typescript-eslint';
import prettierConfig from 'eslint-config-prettier';

export default tseslint.config(
{
ignores: [
'**/node_modules',
'**/dist/',
'**/lib/',
'**/.nvmrc',
'src/fft-api/types/typescript-fetch-client/',
'babel.config.js',
'jest.config.cjs',
'jest.setup.cjs',
'eslint.config.mjs',
'tsup.config.js',
],
},
prettierConfig,
eslint.configs.recommended,
...tseslint.configs.strict,
...tseslint.configs.stylistic,
{
files: ['**/*.spec.ts', '**/*.test.ts'],
...jestPlugin.configs['flat/recommended'],
},
{
languageOptions: {
globals: {
...globals.jest,
...globals.node,
},

parser: tsParser,
ecmaVersion: 2021,
sourceType: 'commonjs',

parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: globals.__dirname,
},
},

rules: {
'@typescript-eslint/no-unused-vars': 'error',
'no-undef': 'error',
'no-const-assign': 'error',
},
}
);
Loading

0 comments on commit 7f686db

Please sign in to comment.