Skip to content

Commit

Permalink
Bump eslint from 8.57.0 to 9.9.0 (#1)
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]>

* Update eslint and config file

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charles Demers <[email protected]>
  • Loading branch information
dependabot[bot] and charlesdemers authored Aug 20, 2024
1 parent b20ab1f commit 9ba8a19
Show file tree
Hide file tree
Showing 6 changed files with 202 additions and 244 deletions.
26 changes: 0 additions & 26 deletions .eslintrc.cjs

This file was deleted.

Binary file added .yarn/install-state
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
54 changes: 54 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import unusedImports from 'eslint-plugin-unused-imports';
import _import from 'eslint-plugin-import';
import { fixupPluginRules } from '@eslint/compat';
import typescriptEslintPlugin 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';

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 [
...compat.extends('prettier'),
{
plugins: {
'unused-imports': unusedImports,
'import': fixupPluginRules(_import),
},

rules: {
'import/order': 2,
'unused-imports/no-unused-imports': 2,
},
},
{
files: ['**/*.ts', '**/*.tsx'],

plugins: {
'@typescript-eslint': typescriptEslintPlugin,
},

languageOptions: {
parser: tsParser,
},

rules: {
'@typescript-eslint/no-unused-vars': [
'error',
{
caughtErrorsIgnorePattern: '^_',
argsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
},
],
},
},
];
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@
"prepublishOnly": "yarn build"
},
"devDependencies": {
"@eslint/compat": "^1.1.1",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.9.0",
"@types/react": "^18.3.3",
"@typescript-eslint/eslint-plugin": "^8.1.0",
"@typescript-eslint/parser": "^8.1.0",
"@vitest/coverage-v8": "^2.0.5",
"eslint": "^8.57.0",
"eslint": "^9.9.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-unused-imports": "^4.1.3",
Expand Down
Loading

0 comments on commit 9ba8a19

Please sign in to comment.