Skip to content

Commit

Permalink
ci(lint): fix import orders
Browse files Browse the repository at this point in the history
  • Loading branch information
LaercioSR committed Sep 24, 2024
1 parent 0ca4ebe commit b8e959c
Show file tree
Hide file tree
Showing 18 changed files with 564 additions and 346 deletions.
33 changes: 33 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = {
"cypress",
"chai-friendly",
"no-only-tests",
"eslint-plugin-import-helpers",
],
extends: [
"eslint:recommended",
Expand All @@ -32,6 +33,9 @@ module.exports = {
react: {
version: "detect",
},
"import/resolver": {
typescript: {},
},
},
ignorePatterns: ["node_modules/"],
rules: {
Expand All @@ -40,5 +44,34 @@ module.exports = {
"react/no-unknown-property": ["error", { ignore: ["jsx", "global"] }],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"import/no-unresolved": "error",
"import/prefer-default-export": "off",
"import/extensions": [
"error",
"ignorePackages",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never",
},
],
"import-helpers/order-imports": [
"warn",
{
newlinesBetween: "always",
groups: ["module", "/^@/", ["parent", "sibling", "index"]],
alphabetize: {
order: "asc",
ignoreCase: true,
},
},
],
"import/no-extraneous-dependencies": [
"error",
{
devDependencies: ["**/*.spec.ts", "**/*.spec.js", "jest.config.ts"],
},
],
},
};
Loading

0 comments on commit b8e959c

Please sign in to comment.