generated from actions/typescript-action
-
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.
chore(deps-dev): bump the lint-tools group across 1 directory with 4 …
…updates (#960)
- Loading branch information
1 parent
1d4a0e1
commit 5c6112c
Showing
7 changed files
with
305 additions
and
261 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"eslint.experimental.useFlatConfig": true | ||
} |
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,41 @@ | ||
// @ts-check | ||
/* eslint-disable @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access */ | ||
import eslint from '@eslint/js' | ||
import eslintConfigPrettier from 'eslint-config-prettier' | ||
import node from 'eslint-plugin-n' | ||
import vitest from 'eslint-plugin-vitest' | ||
import tseslint from 'typescript-eslint' | ||
|
||
export default tseslint.config( | ||
{ ignores: ['node_modules/**', 'dist/**'] }, | ||
eslint.configs.recommended, | ||
// eslint-plugin-n | ||
{ | ||
...node.configs['flat/recommended-script'], | ||
rules: { | ||
'n/no-missing-import': ['off'] | ||
} | ||
}, | ||
// typescript-eslint | ||
...tseslint.configs.recommendedTypeChecked, | ||
...tseslint.configs.stylisticTypeChecked, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
project: './tsconfig.lint.json' | ||
} | ||
} | ||
}, | ||
// Prettier | ||
eslintConfigPrettier, | ||
// vitest | ||
{ | ||
files: ['test/**'], | ||
plugins: { | ||
vitest | ||
}, | ||
rules: { | ||
...vitest.configs.recommended.rules | ||
} | ||
} | ||
) |
Oops, something went wrong.