This repository has been archived by the owner on Dec 17, 2024. It is now read-only.
generated from bradgarropy/eslint-config
-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
de148ef
commit f5487b3
Showing
7 changed files
with
405 additions
and
616 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,54 @@ | ||
import globals from "globals" | ||
import tseslint from "typescript-eslint" | ||
|
||
const config = [ | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
...globals.jest, | ||
...globals.es2021, | ||
}, | ||
parser: tseslint.parser, | ||
parserOptions: { | ||
ecmaFeatures: {}, | ||
sourceType: "module", | ||
project: "./tsconfig.json", | ||
}, | ||
}, | ||
}, | ||
...tseslint.configs.recommended, | ||
{ | ||
plugins: { | ||
"@typescript-eslint": tseslint.plugin, | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.ts", "**/*.tsx"], | ||
rules: { | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
"@typescript-eslint/consistent-type-imports": [ | ||
"error", | ||
{ | ||
prefer: "type-imports", | ||
disallowTypeAnnotations: true, | ||
fixStyle: "separate-type-imports", | ||
}, | ||
], | ||
"@typescript-eslint/consistent-type-exports": [ | ||
"error", | ||
{ | ||
fixMixedExportsWithInlineTypeSpecifier: false, | ||
}, | ||
], | ||
}, | ||
}, | ||
] | ||
|
||
export default config |
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
const eslintrc = require("./.eslintrc") | ||
|
||
module.exports = eslintrc | ||
import eslintConfig from "./eslint.config.js" | ||
export default eslintConfig |
Oops, something went wrong.