Skip to content

Commit

Permalink
chore: add ordering rules
Browse files Browse the repository at this point in the history
  • Loading branch information
chmelevskij committed Feb 11, 2022
1 parent deead7d commit 0a3935a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/eslint/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// TODO: think about splitting this up for meteor and non meteor projects
module.exports = {
parserOptions: {
sourceType: "module",
Expand Down Expand Up @@ -51,5 +52,29 @@ module.exports = {
"react/react-in-jsx-scope": "off",
"no-return-await": "error",
"arrow-parens": ["error", "always"],
"import/order": [
"error",
{
groups: [
"builtin",
"internal",
"external",
"parent",
"sibling",
"index",
],
pathGroups: [
{
pattern: "^meteor/**",
group: "internal",
},
],
"newlines-between": "always",
alphabetize: {
order: "asc",
caseInsensitive: true,
},
},
],
},
};

0 comments on commit 0a3935a

Please sign in to comment.