We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import jsPlugin from "@eslint/js"; import importPlugin from "eslint-plugin-import"; import jsx11yPlugin from "eslint-plugin-jsx-a11y"; import prettierPluginRecommended from "eslint-plugin-prettier/recommended"; import reactPlugin from "eslint-plugin-react"; import reactHooksPlugin from "eslint-plugin-react-hooks"; import reactRefreshPlugin from "eslint-plugin-react-refresh"; import eslintConfigPrettier from "eslint-config-prettier"; import { includeIgnoreFile } from "@eslint/compat"; import path from "path"; import { fileURLToPath } from "url"; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const gitignorePath = path.resolve(__dirname, ".gitignore"); /** @type { import("eslint").Linter.Config[] } */ export default [ includeIgnoreFile(gitignorePath), jsPlugin.configs.recommended, importPlugin.flatConfigs.recommended, importPlugin.flatConfigs.typescript, jsx11yPlugin.flatConfigs.recommended, reactPlugin.configs.flat.recommended, eslintConfigPrettier, //! make prettierPlugin the last plugin to override previous rules. prettierPluginRecommended, { plugins: { "react-hooks": reactHooksPlugin.configs.recommended, "react-refresh": reactRefreshPlugin, }, rules: { "import/order": [ "error", { groups: [ "builtin", "external", "internal", "parent", "sibling", "index", "object", "type", ], "newlines-between": "always", }, ], }, settings: { "import/resolver": { "typescript": true, "node": true, }, }, ignores: ["eslint.config.js", "commitlint.config.js"], }, ];
The text was updated successfully, but these errors were encountered:
You’ll have to elaborate on what’s not working.
Sorry, something went wrong.
It doesn't order imports alphabetically for example.
@Arian94 it's not supposed to, unless you enable the alphabetize option.
No branches or pull requests
The text was updated successfully, but these errors were encountered: