Skip to content

Commit cc68b2f

Browse files
build(deps-dev): bump eslint from 8.57.0 to 9.9.0 (#441)
* build(deps-dev): 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]> * chore(eslint): migrate to eslint 9 https://eslint.org/docs/latest/use/configure/migration-guide --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mark <[email protected]>
1 parent 10d4290 commit cc68b2f

File tree

5 files changed

+363
-386
lines changed

5 files changed

+363
-386
lines changed

Diff for: .eslintrc.json

-18
This file was deleted.

Diff for: .github/dependabot.yml

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ updates:
1313
commitlint:
1414
patterns:
1515
- '@commitlint/*'
16+
eslint:
17+
patterns:
18+
- '@eslint/*'
1619
prettier:
1720
patterns:
1821
- prettier

Diff for: eslint.config.mjs

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import path from 'node:path';
2+
import { fileURLToPath } from 'node:url';
3+
4+
import { includeIgnoreFile } from '@eslint/compat';
5+
import { FlatCompat } from '@eslint/eslintrc';
6+
import js from '@eslint/js';
7+
import typescriptEslint from '@typescript-eslint/eslint-plugin';
8+
import tsParser from '@typescript-eslint/parser';
9+
import prettier from 'eslint-plugin-prettier';
10+
import simpleImportSort from 'eslint-plugin-simple-import-sort';
11+
import globals from 'globals';
12+
13+
const __filename = fileURLToPath(import.meta.url);
14+
const __dirname = path.dirname(__filename);
15+
const gitignorePath = path.resolve(__dirname, '.gitignore');
16+
17+
const compat = new FlatCompat({
18+
baseDirectory: __dirname,
19+
recommendedConfig: js.configs.recommended,
20+
allConfig: js.configs.all,
21+
});
22+
23+
export default [
24+
includeIgnoreFile(gitignorePath),
25+
26+
...compat.extends(
27+
'eslint:recommended',
28+
'plugin:@typescript-eslint/recommended',
29+
),
30+
31+
{
32+
plugins: {
33+
'@typescript-eslint': typescriptEslint,
34+
prettier,
35+
'simple-import-sort': simpleImportSort,
36+
},
37+
38+
languageOptions: {
39+
globals: {
40+
...globals.browser,
41+
...globals.node,
42+
},
43+
parser: tsParser,
44+
},
45+
46+
rules: {
47+
'@typescript-eslint/no-non-null-assertion': 'off',
48+
'@typescript-eslint/no-empty-function': 'off',
49+
'no-console': 'error',
50+
'no-debugger': 'error',
51+
'prettier/prettier': 'error',
52+
'simple-import-sort/exports': 'error',
53+
'simple-import-sort/imports': 'error',
54+
},
55+
},
56+
];

0 commit comments

Comments
 (0)