Skip to content

Commit

Permalink
refactor: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Rezrazi committed Aug 17, 2024
1 parent e8aa569 commit 762304f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
10 changes: 2 additions & 8 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,8 @@ export default tseslint.config(
// These on-by-default rules work well for this repo if configured
"@typescript-eslint/no-unused-vars": ["error", { caughtErrors: "all" }],
"n/no-unsupported-features/node-builtins": ["error", { allowExperimental: true }],
"perfectionist/sort-objects": [
"error",
{
order: "asc",
partitionByComment: true,
type: "natural",
},
],
"perfectionist/sort-objects": "off",
"perfectionist/sort-intersection-types": "off",

// Stylistic concerns that don't interfere with Prettier
"no-useless-rename": "error",
Expand Down
3 changes: 1 addition & 2 deletions src/flystorage.module-definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ import { ConfigurableModuleBuilder } from "@nestjs/common";

import { ConfigModuleOptions } from "./types.js";

export const { ConfigurableModuleClass, ASYNC_OPTIONS_TYPE, OPTIONS_TYPE } =
new ConfigurableModuleBuilder<ConfigModuleOptions>().build();
export const { ConfigurableModuleClass, OPTIONS_TYPE } = new ConfigurableModuleBuilder<ConfigModuleOptions>().build();
2 changes: 1 addition & 1 deletion src/flystorage.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export class FlyStorageModule extends ConfigurableModuleClass {
return {
global: options.isGlobal,
module: FlyStorageModule,
exports: providers,
providers,
exports: providers,
};
}

Expand Down

0 comments on commit 762304f

Please sign in to comment.