Skip to content

Commit b4503c6

Browse files
committed
feat(shared): add 'RuleFeatrue' type
1 parent 6532bba commit b4503c6

File tree

7 files changed

+19
-6
lines changed

7 files changed

+19
-6
lines changed

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
registry=https://registry.npmjs.org
2-
hoist-pattern[]=*eslint*
32
shell-emulator=true

packages/types/docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
- [CreateRule](type-aliases/CreateRule.md)
1010
- [RuleContext](type-aliases/RuleContext.md)
11+
- [RuleFeature](type-aliases/RuleFeature.md)
1112
- [RuleNamespace](type-aliases/RuleNamespace.md)
1213
- [RuleOptions](type-aliases/RuleOptions.md)
1314
- [RulePreset](type-aliases/RulePreset.md)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[**@eslint-react/types**](../README.md)
2+
3+
***
4+
5+
[@eslint-react/types](../README.md) / RuleFeature
6+
7+
# Type Alias: RuleFeature
8+
9+
> **RuleFeature**: `"DBG"` \| `"FIX"` \| `"LNT"` \| `"TSC"`

packages/types/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export type * from "./rule";
2+
export type * from "./rule-feature";
23
export type * from "./rule-name";
34
export type * from "./rule-namespace";

packages/types/src/rule-feature.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export type RuleFeature =
2+
| "DBG" // Debugging
3+
| "FIX" // Fixable
4+
| "LNT" // Linting
5+
| "TSC"; // TypeScript Type Checking

pnpm-lock.yaml

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/pages/docs/rules/overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
## Emoji Legend
44

55
- ⚙️ - Configurable
6-
- 🐞 - Debug
7-
- 🗑️ - Deprecated
8-
- 🔍 - Diagnostic
6+
- 🔍 - Linting
97
- 🔧 - Fixable
108
- 💭 - Type Chcking
9+
- 🐞 - Debug
10+
- 🗑️ - Deprecated
1111

1212
## Core Rules
1313

0 commit comments

Comments
 (0)