Skip to content

Commit

Permalink
[E4E-0]: Inject filenames/match-exported override directly into the n…
Browse files Browse the repository at this point in the history
…est tsConfig
  • Loading branch information
TheCleric committed Dec 18, 2021
1 parent 5485a47 commit c9a8465
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .nesteslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,36 @@ const tsConfig = lodash.first(defaultConfig.overrides.filter(o => o.files && o.f
rules: {},
};

const nestConfig = {
...tsConfig,
rules: {
...tsConfig.rules,
'filenames/match-exported': 'off',
},
};
tsConfig.rules['filenames/match-exported'] = 'off';

const controllerConfig = {
...nestConfig,
...tsConfig,
files: ['**/*.controller.ts'],
};

const entityConfig = {
...nestConfig,
...tsConfig,
files: ['**/*.entity.ts'],
rules: {
...nestConfig.rules,
...tsConfig.rules,
camel_case: 'off',
},
};

const moduleConfig = {
...nestConfig,
...tsConfig,
files: ['**/*.module.ts'],
rules: {
...nestConfig.rules,
...tsConfig.rules,
'@typescript-eslint/no-extraneous-class': 'off',
},
};

const serviceConfig = {
...nestConfig,
...tsConfig,
files: ['**/*.service.ts'],
rules: {
...nestConfig.rules,
...tsConfig.rules,
'filenames/match-exported': 'off',
},
};
Expand Down

0 comments on commit c9a8465

Please sign in to comment.