-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
0b28acf
commit 0ef0c9f
Showing
5 changed files
with
356 additions
and
285 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import typescriptEslint from '@typescript-eslint/eslint-plugin'; | ||
import prettier from 'eslint-plugin-prettier'; | ||
import globals from 'globals'; | ||
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 gitignorePath = path.resolve(__dirname, '.gitignore'); | ||
|
||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all, | ||
}); | ||
|
||
export default [ | ||
includeIgnoreFile(gitignorePath), | ||
|
||
...compat.extends( | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
), | ||
|
||
{ | ||
files: ['**/*.js', '**/*.mjs', '**/*.ts', '**/*.tsx'], | ||
|
||
plugins: { | ||
'@typescript-eslint': typescriptEslint, | ||
prettier, | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.jest, | ||
...globals.node, | ||
}, | ||
parser: tsParser, | ||
}, | ||
|
||
rules: { | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'no-console': 'error', | ||
'no-debugger': 'error', | ||
'prettier/prettier': 'error', | ||
}, | ||
}, | ||
|
||
{ | ||
files: ['__tests__/**'], | ||
|
||
rules: { | ||
'@typescript-eslint/no-require-imports': 'off', | ||
}, | ||
}, | ||
|
||
{ | ||
ignores: ['examples/*'], | ||
}, | ||
]; |
Oops, something went wrong.