eslint: sort imports & exports

This commit is contained in:
Martti Malmi
2024-01-04 19:01:18 +02:00
parent 046d4d97bd
commit 3fe3c7a98d
267 changed files with 1281 additions and 1037 deletions

View File

@ -6,7 +6,7 @@ module.exports = {
"plugin:react-hooks/recommended",
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "formatjs", "react-refresh"],
plugins: ["@typescript-eslint", "formatjs", "react-refresh", "simple-import-sort"],
rules: {
"formatjs/enforce-id": [
"error",
@ -17,6 +17,8 @@ module.exports = {
"react/react-in-jsx-scope": "off",
"react-hooks/exhaustive-deps": "off",
"react-refresh/only-export-components": "warn",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error"
},
root: true,
ignorePatterns: ["build/", "*.test.ts", "*.js"],