Skip to content

Commit

Permalink
added sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed Nov 7, 2023
1 parent f8e1c18 commit 7eeb6a5
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 421 deletions.
46 changes: 32 additions & 14 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"typescript": {
"project": "./tsconfig.json"
}
}
},
"extends": [
Expand All @@ -16,22 +21,19 @@
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:i18next/recommended",
"plugin:tailwindcss/recommended"
"plugin:tailwindcss/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"overrides": [
{
"files": [
"**/*.mdx"
],
"extends": [
"plugin:react/recommended",
"plugin:mdx/recommended"
],
"files": ["**/*.mdx"],
"extends": ["plugin:react/recommended", "plugin:mdx/recommended"],
"rules": {
"react/jsx-no-target-blank": "off",
"i18next/no-literal-string": "off"
}
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand All @@ -41,13 +43,29 @@
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"i18next"
],
"plugins": ["@typescript-eslint", "i18next", "import"],
"rules": {
"quotes": ["error", "double"],
"no-unused-vars": "off",
"import/no-unresolved": "error",
"import/order": [
"warn",
{
"groups": [
"builtin",
"external",
"internal",
["sibling", "parent"],
"index",
"unknown"
],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{
Expand Down Expand Up @@ -76,7 +94,7 @@
"tailwindcss/enforces-shorthand": "error",
"tailwindcss/no-contradicting-classname": "error"
},

"ignorePatterns": [
"dist",
"public",
Expand Down
Loading

0 comments on commit 7eeb6a5

Please sign in to comment.