-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
1,089 additions
and
1,149 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,41 @@ | ||
import tseslint from 'typescript-eslint'; | ||
import eslintConfigPrettier from "eslint-config-prettier"; | ||
|
||
import { includeIgnoreFile } from "@eslint/compat"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
import eslint from "@eslint/js"; | ||
const gitignorePath = path.resolve(__dirname, ".gitignore"); | ||
|
||
export default tseslint.config( | ||
includeIgnoreFile(gitignorePath), | ||
eslintConfigPrettier, | ||
{ | ||
ignores: [ | ||
"**/test/*", | ||
"commitlint.config.cjs", | ||
"gulpfile.cjs" | ||
], | ||
},{ | ||
extends: [ | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
tseslint.configs.eslintRecommended, | ||
], | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': ['warn'], | ||
'@typescript-eslint/no-unused-vars': [ | ||
'warn', | ||
{ | ||
args: 'after-used', | ||
argsIgnorePattern: '_', | ||
ignoreRestSiblings: false, | ||
vars: 'all', | ||
}, | ||
], | ||
}, | ||
}, | ||
); |
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
Oops, something went wrong.