Skip to content

Commit 0ef0c9f

Browse files
build(deps-dev): bump eslint from 8.57.0 to 9.9.1 (#1497)
* build(deps-dev): bump eslint from 8.57.0 to 9.9.1 Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.9.1. - [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.1) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore(eslint): migrate to eslint 9 https://eslint.org/docs/latest/use/configure/migration-guide --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mark <mark@remarkablemark.org>
1 parent 0b28acf commit 0ef0c9f

File tree

5 files changed

+356
-285
lines changed

5 files changed

+356
-285
lines changed

.eslintrc.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 3 additions & 0 deletions
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

eslint.config.mjs

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import typescriptEslint from '@typescript-eslint/eslint-plugin';
2+
import prettier from 'eslint-plugin-prettier';
3+
import globals from 'globals';
4+
import tsParser from '@typescript-eslint/parser';
5+
import path from 'node:path';
6+
import { fileURLToPath } from 'node:url';
7+
import js from '@eslint/js';
8+
import { FlatCompat } from '@eslint/eslintrc';
9+
import { includeIgnoreFile } from '@eslint/compat';
10+
11+
const __filename = fileURLToPath(import.meta.url);
12+
const __dirname = path.dirname(__filename);
13+
const gitignorePath = path.resolve(__dirname, '.gitignore');
14+
15+
const compat = new FlatCompat({
16+
baseDirectory: __dirname,
17+
recommendedConfig: js.configs.recommended,
18+
allConfig: js.configs.all,
19+
});
20+
21+
export default [
22+
includeIgnoreFile(gitignorePath),
23+
24+
...compat.extends(
25+
'eslint:recommended',
26+
'plugin:@typescript-eslint/recommended',
27+
),
28+
29+
{
30+
files: ['**/*.js', '**/*.mjs', '**/*.ts', '**/*.tsx'],
31+
32+
plugins: {
33+
'@typescript-eslint': typescriptEslint,
34+
prettier,
35+
},
36+
37+
languageOptions: {
38+
globals: {
39+
...globals.browser,
40+
...globals.jest,
41+
...globals.node,
42+
},
43+
parser: tsParser,
44+
},
45+
46+
rules: {
47+
'@typescript-eslint/no-var-requires': 'off',
48+
'@typescript-eslint/no-explicit-any': 'off',
49+
'no-console': 'error',
50+
'no-debugger': 'error',
51+
'prettier/prettier': 'error',
52+
},
53+
},
54+
55+
{
56+
files: ['__tests__/**'],
57+
58+
rules: {
59+
'@typescript-eslint/no-require-imports': 'off',
60+
},
61+
},
62+
63+
{
64+
ignores: ['examples/*'],
65+
},
66+
];

0 commit comments

Comments
 (0)