diff --git a/index.js b/index.js index c7edbc8..207d794 100644 --- a/index.js +++ b/index.js @@ -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", } } diff --git a/scripts/index.ts b/scripts/index.ts index 8db6d79..67eb2f1 100644 --- a/scripts/index.ts +++ b/scripts/index.ts @@ -75,7 +75,10 @@ const getTsExtensionsForRules = (rules: Array): Array => { "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),