Skip to content

Commit

Permalink
Bump version 1.12.0
Browse files Browse the repository at this point in the history
Update Node.js dependencies

Change eslint config to mjs
  • Loading branch information
shivammathur committed Dec 30, 2024
1 parent fda7e98 commit f4bdd9e
Show file tree
Hide file tree
Showing 4 changed files with 716 additions and 5,318 deletions.
16 changes: 0 additions & 16 deletions .eslintrc.json

This file was deleted.

51 changes: 51 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import {fixupConfigRules, fixupPluginRules} from '@eslint/compat';
// eslint-disable-next-line import/no-unresolved
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import jest from 'eslint-plugin-jest';
import globals from 'globals';
// eslint-disable-next-line import/no-unresolved
import tsParser from '@typescript-eslint/parser';
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 [
...fixupConfigRules(
compat.extends(
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:prettier/recommended',
'prettier'
)
),
{
plugins: {
'@typescript-eslint': fixupPluginRules(typescriptEslint),
jest
},

languageOptions: {
globals: {
...globals.node,
...globals.jest
},

parser: tsParser,
ecmaVersion: 2021,
sourceType: 'module'
}
}
];
Loading

0 comments on commit f4bdd9e

Please sign in to comment.