-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⬆️ Upgrade to eslint 9.x and
@typescript-eslint
8.x
- Migrated to flat-config - Moved tests from __tests__ to src folder so that they will be compiled as well - Lint tests now as well (and fix their linting)
- Loading branch information
Showing
14 changed files
with
378 additions
and
931 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,5 +95,5 @@ typings/ | |
Thumbs.db | ||
|
||
# Ignore built ts files | ||
__tests__/runner/* | ||
src/runner/* | ||
lib/**/* |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import jest from 'eslint-plugin-jest' | ||
import github from 'eslint-plugin-github' | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
tseslint.configs.strictTypeChecked, | ||
tseslint.configs.stylisticTypeChecked, | ||
github.getFlatConfigs().recommended, | ||
...github.getFlatConfigs().typescript, | ||
{ | ||
ignores: [ | ||
"dist/", | ||
"lib/", | ||
"node_modules/", | ||
"jest.config.js", | ||
"eslint.config.mjs", | ||
], | ||
}, | ||
{ | ||
rules: { | ||
"i18n-text/no-en": "off", // I log only english messages and this is a library/user-facing. | ||
"importPlugin/no-unresolved": "off" // This seems to work in typescript only with additional configuration. | ||
} | ||
}, | ||
{ | ||
// Jest | ||
files: ['**/*.test.ts'], | ||
...jest.configs['flat/recommended'], | ||
}, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
projectService: true, | ||
tsconfigRootDir: import.meta.dirname, | ||
}, | ||
}, | ||
}, | ||
); |
Oops, something went wrong.