Skip to content

Commit

Permalink
enables "no-indirect-imports"
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSonOfThomp committed Oct 16, 2024
1 parent 5dd551d commit 4863f88
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tools/eslint-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import { rules } from './rules';
//------------------------------------------------------------------------------

type RuleKey = keyof typeof rules;
// type DefaultConfigsRecord = Exclude<ESLint.Plugin['configs'], undefined>;
// type DefaultConfig = DefaultConfigsRecord[string];
// type DefaultConfigRules = DefaultConfig['rules'];

interface Plugin extends Omit<ESLint.Plugin, 'rules'> {
rules: Record<RuleKey, RuleModule<any, any, any>>;
Expand All @@ -26,12 +23,9 @@ const plugin: Plugin = {
internal: {
plugins: ['@lg-tools'],
rules: {
'@lg-tools/boolean-verb-prefix': [
'off',
{ allowVarNames: ['darkMode', 'fix'] },
],
'@lg-tools/no-indirect-imports': ['off'],
'@lg-tools/standard-testid': ['off', { prefix: 'lg-' }],
'@lg-tools/no-indirect-imports': ['error'],
'@lg-tools/boolean-verb-prefix': ['off'],
'@lg-tools/standard-testid': ['off'],
},
},
external: {
Expand Down

0 comments on commit 4863f88

Please sign in to comment.