Skip to content

Commit

Permalink
sort extensions to avoid diff
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Fantauzzi committed Jan 1, 2024
1 parent 4af65b6 commit 442c005
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ module.exports = {
"unicorn/no-useless-switch-case": "off",
"unicorn/prefer-array-flat-map": "off",
"simple-import-sort/imports": "off",
"@typescript-eslint/default-param-last": "off",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/no-loss-of-precision": "off",
"@typescript-eslint/no-dupe-class-members": "off",
"@typescript-eslint/default-param-last": "off",
"@typescript-eslint/no-useless-constructor": "off",
"@typescript-eslint/no-loss-of-precision": "off",
"@typescript-eslint/no-redeclare": "off",
"@typescript-eslint/no-useless-constructor": "off",
}
}
5 changes: 4 additions & 1 deletion scripts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ const getTsExtensionsForRules = (rules: Array<string>): Array<string> => {
"node_modules/@typescript-eslint/eslint-plugin/dist/rules",
),
),
].map((s) => s.replace(".js", ""))
]
.map((s) => s.replace(".js", ""))
// Sort to avoid diffs
.toSorted()

const rulesToExtend = tsExtensionRules.filter((tsExtensionRule) =>
rules.includes(tsExtensionRule),
Expand Down

0 comments on commit 442c005

Please sign in to comment.