Skip to content

Commit

Permalink
chore(deps-dev): bump eslint from 8.57.0 to 9.9.0 (#80)
Browse files Browse the repository at this point in the history
* chore(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]>
  • Loading branch information
dependabot[bot] and remarkablemark authored Aug 17, 2024
1 parent d23e893 commit e63ba5d
Show file tree
Hide file tree
Showing 5 changed files with 217 additions and 252 deletions.
13 changes: 0 additions & 13 deletions .eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ updates:
commitlint:
patterns:
- '@commitlint/*'
eslint:
patterns:
- '@eslint/*'
prettier:
patterns:
- prettier
Expand Down
50 changes: 50 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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'

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,
prettier,
'simple-import-sort': simpleImportSort,
},

languageOptions: {
parser: tsParser,
},

rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
'no-console': 'error',
'no-debugger': 'error',
'prettier/prettier': 'error',
'simple-import-sort/exports': 'error',
'simple-import-sort/imports': 'error',
},
},
]
Loading

0 comments on commit e63ba5d

Please sign in to comment.