-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
format: run prettier and remove unused imports
- Loading branch information
1 parent
4f50a6e
commit b79fe5f
Showing
76 changed files
with
4,779 additions
and
3,131 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import globals from "globals"; | ||
import pluginJs from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
import pluginReact from "eslint-plugin-react"; | ||
import pluginUnusedImports from "eslint-plugin-unused-imports"; | ||
|
||
export default [ | ||
{files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"]}, | ||
{languageOptions: { globals: globals.browser }}, | ||
{ | ||
plugins: { | ||
'unused-imports': pluginUnusedImports | ||
}, | ||
rules: { | ||
"no-unused-vars": "off", | ||
"unused-imports/no-unused-imports": "error", | ||
"unused-imports/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"vars": "all", | ||
"varsIgnorePattern": "^_", | ||
"args": "after-used", | ||
"argsIgnorePattern": "^_" | ||
} | ||
] | ||
} | ||
}, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
pluginReact.configs.flat.recommended, | ||
]; |
Oops, something went wrong.