Skip to content

Commit

Permalink
build(deps-dev): bump eslint from 8.57.0 to 9.11.1 (#713)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump eslint from 8.57.0 to 9.11.1

Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.11.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.11.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

---------

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
dependabot[bot] and remarkablemark authored Oct 5, 2024
1 parent e6ac184 commit d15135a
Show file tree
Hide file tree
Showing 6 changed files with 442 additions and 271 deletions.
35 changes: 0 additions & 35 deletions .eslintrc.json

This file was deleted.

5 changes: 4 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
Expand All @@ -13,6 +13,9 @@ updates:
commitlint:
patterns:
- '@commitlint/*'
eslint:
patterns:
- '@eslint/*'
prettier:
patterns:
- prettier
Expand Down
58 changes: 58 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import path from 'node:path'
import { fileURLToPath } from 'node:url'

import { includeIgnoreFile } from '@eslint/compat'
import { FlatCompat } from '@eslint/eslintrc'
import js from '@eslint/js'
import typescriptEslint from '@typescript-eslint/eslint-plugin'
import tsParser from '@typescript-eslint/parser'
import prettier from 'eslint-plugin-prettier'
import simpleImportSort from 'eslint-plugin-simple-import-sort'
import tsdoc from 'eslint-plugin-tsdoc'
import globals from 'globals'

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'),

{
plugins: {
'@typescript-eslint': typescriptEslint,
'simple-import-sort': simpleImportSort,
prettier,
tsdoc,
},

languageOptions: {
globals: {
...globals.jest,
...globals.node,
},
parser: tsParser,
},

rules: {
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-extra-semi': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'no-console': 'error',
'no-debugger': 'error',
'no-extra-semi': 'off',
'prettier/prettier': 'error',
'simple-import-sort/exports': 'error',
'simple-import-sort/imports': 'error',
'tsdoc/syntax': 'error',
},
},
]
Loading

0 comments on commit d15135a

Please sign in to comment.