Skip to content

Commit

Permalink
feat
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeyens committed Dec 5, 2024
1 parent 0be8fec commit 1cb3128
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/lint/src/react/plugins/lint-plugin-case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const plugin = {
name: 'case',
},
rules: {
sentence: caseMatchRule,
'capitalize-sentence': caseMatchRule,
},
} satisfies LintConfigPlugin;

Expand All @@ -73,8 +73,8 @@ export const caseLintPlugin = {
all: {
languageOptions: {
parserOptions: (context) => {
const { options: contextOptions } = context;
const ignoredWords = contextOptions[0]?.ignoredWords ?? [];
const { options } = context;
const ignoredWords = options[0]?.ignoredWords ?? [];

// Helper to check if a word is part of URL/email
const isUrlOrEmail = (
Expand Down Expand Up @@ -140,7 +140,7 @@ export const caseLintPlugin = {
name: 'case/all',
plugins: { case: plugin },
rules: {
'case/sentence': ['error'],
'case/capitalize-sentence': ['error'],
},
},
},
Expand Down

0 comments on commit 1cb3128

Please sign in to comment.