Skip to content

Commit

Permalink
chore: revert legacy config as there was no need for it
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite007 committed Dec 2, 2024
1 parent 32834b3 commit 3aa09dc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/eslint-plugin/src/lib/configs/legacy.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
import { ESLint } from 'eslint';

const commonConfig: ESLint.ConfigData = {
export const legacyBarrelModulesOnly: ESLint.ConfigData = {
parser: '@typescript-eslint/parser',
plugins: ['@softarc/sheriff'],
ignorePatterns: ['sheriff.config.ts'],
};

export const legacyBarrelModulesOnly: ESLint.ConfigData = {
...commonConfig,
rules: {
'@softarc/sheriff/dependency-rule': 'error',
'@softarc/sheriff/deep-import': 'error',
},
};

export const legacy: ESLint.ConfigData = {
...commonConfig,
parser: '@typescript-eslint/parser',
plugins: ['@softarc/sheriff'],
rules: {
'@softarc/sheriff/dependency-rule': 'error',
'@softarc/sheriff/encapsulation': 'error',
Expand Down

0 comments on commit 3aa09dc

Please sign in to comment.