Skip to content

Commit fcfc824

Browse files
committed
feat: update no-unknown-property rule implementation and documentation
- Update rule implementation in no-unknown-property.ts - Update rule documentation in no-unknown-property.mdx - Update all config to include latest changes
1 parent fe97893 commit fcfc824

File tree

3 files changed

+284
-210
lines changed

3 files changed

+284
-210
lines changed

.pkgs/eslint-plugin-local/dist/index.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
22

3-
type MessageID = "unexpectedComparison" | "useLooseComparisonSuggestion";
4-
53
declare const _default: {
64
readonly meta: {
75
readonly name: string;
@@ -10,7 +8,7 @@ declare const _default: {
108
readonly rules: {
119
readonly "avoid-multiline-template-expression": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidMultilineTemplateExpression", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1210
readonly "no-shadow-underscore": _typescript_eslint_utils_ts_eslint.RuleModule<"noShadowUnderscore", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
13-
readonly "prefer-eqeq-nullish-comparison": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
11+
readonly "prefer-eqeq-nullish-comparison": _typescript_eslint_utils_ts_eslint.RuleModule<"unexpectedComparison" | "useLooseComparisonSuggestion", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1412
};
1513
};
1614

packages/plugins/eslint-plugin-react-dom/src/rules/no-unknown-property.mdx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ react-dom/no-unknown-property
1818

1919
`🔧` `⚙️`
2020

21-
**Presets**
22-
23-
- `dom`
24-
- `recommended`
25-
2621
## Description
2722

2823
Disallow unknown `DOM` property.
@@ -81,7 +76,7 @@ If you are using a library that passes something as a prop to JSX elements, it i
8176
For example, if you use [emotion](https://emotion.sh/docs/introduction) and its [`css` prop](https://emotion.sh/docs/css-prop),
8277
add the following to your `.eslintrc` config file:
8378

84-
## Rule Options Examples
79+
## Configuration Examples
8580

8681
```js title="eslint.config.js"
8782
// ...

0 commit comments

Comments
 (0)