Skip to content

Commit

Permalink
format: run prettier and remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyashankar committed Oct 28, 2024
1 parent 4f50a6e commit b79fe5f
Show file tree
Hide file tree
Showing 76 changed files with 4,779 additions and 3,131 deletions.
31 changes: 31 additions & 0 deletions website/eslint.config.mjs
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,
];
Loading

0 comments on commit b79fe5f

Please sign in to comment.