Skip to content

Commit

Permalink
Bump eslint from 8.57.0 to 9.9.0 (#279)
Browse files Browse the repository at this point in the history
* Bump eslint from 8.57.0 to 9.9.0

Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.9.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.57.0...v9.9.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* migrated config

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Deepak Prabhakara <[email protected]>
  • Loading branch information
dependabot[bot] and deepakprabhakara authored Aug 15, 2024
1 parent 927b679 commit 27d050f
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 147 deletions.
9 changes: 0 additions & 9 deletions .eslintrc.json

This file was deleted.

39 changes: 39 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import typescriptEslint from '@typescript-eslint/eslint-plugin';
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';
import { includeIgnoreFile } from '@eslint/compat';

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,
});
const gitignorePath = path.resolve(__dirname, '.gitignore');

export default [
{
ignores: ['.prettierrc.js'],
},
includeIgnoreFile(gitignorePath),
...compat.extends('eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'),
{
plugins: {
'@typescript-eslint': typescriptEslint,
},

languageOptions: {
parser: tsParser,
},

rules: {
'@typescript-eslint/no-explicit-any': 'warn',
},

files: ['**/*.ts'],
},
];
Loading

0 comments on commit 27d050f

Please sign in to comment.