-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
70ab96f
commit 6161ec7
Showing
7 changed files
with
394 additions
and
367 deletions.
There are no files selected for viewing
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
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
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 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
const { fixupConfigRules } = require("@eslint/compat"); | ||
const { FlatCompat } = require("@eslint/eslintrc"); | ||
const js = require("@eslint/js"); | ||
const tseslint = require("typescript-eslint"); | ||
|
||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
}); | ||
|
||
module.exports = tseslint.config( | ||
{ ignores: ["dist"] }, | ||
// @ts-expect-error type mismatch | ||
...fixupConfigRules( | ||
compat.extends("./node_modules/@nihalgonsalves/esconfig/.eslintrc"), | ||
), | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
project: undefined, | ||
projectService: true, | ||
}, | ||
}, | ||
rules: { | ||
"@typescript-eslint/no-duplicate-enum-values": "off", | ||
"@typescript-eslint/restrict-template-expressions": [ | ||
"error", | ||
{ allowNumber: true }, | ||
], | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
devDependencies: ["**/*.test.{js,jsx,ts,tsx}", "eslint.config.js"], | ||
}, | ||
], | ||
// typescript | ||
"no-undef": "off", | ||
}, | ||
}, | ||
); |
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
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.