Skip to content

Commit 5603ce9

Browse files
authored
fix(lint): update scopes for all rules (#83)
this commit fixes the scope of each rule. previously, each rule was under the `@stencil` scope when this project was being maintained by the stencil core team. the project has since begun to move to the community model, where the npm package is published under the `@stencil-community/` scope. in the original migration to the community model (fb8dab7), updating the scopes of each rule was missed. this caused lint rule lookups to fail. by updating the scopes for each rule, the predefined configs, and the docs, rules can once again be used
1 parent d19d9de commit 5603ce9

24 files changed

+85
-85
lines changed

README.md

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ npm i --save-dev eslint @typescript-eslint/parser @typescript-eslint/eslint-plug
2525
"project": "./tsconfig.json"
2626
},
2727
"extends": [
28-
"plugin:@stencil/recommended"
28+
"plugin:@stencil-community/recommended"
2929
]
3030
}
3131
```
@@ -55,94 +55,94 @@ npm run lint
5555

5656
## Supported Rules
5757

58-
- [`@stencil/async-methods`](./docs/async-methods.md)
58+
- [`@stencil-community/async-methods`](./docs/async-methods.md)
5959

6060
This rule catches Stencil public methods that are not async.
6161

62-
- [`@stencil/ban-prefix`](./docs/ban-prefix.md)
62+
- [`@stencil-community/ban-prefix`](./docs/ban-prefix.md)
6363

6464
This rule catches Stencil Component banned tag name prefix.
6565

66-
- [`@stencil/class-pattern`](./docs/class-pattern.md)
66+
- [`@stencil-community/class-pattern`](./docs/class-pattern.md)
6767

6868
This rule catches Stencil Component class name not matching configurable pattern.
6969

70-
- [`@stencil/decorators-context`](./docs/decorators-context.md)
70+
- [`@stencil-community/decorators-context`](./docs/decorators-context.md)
7171

7272
This rule catches Stencil decorators in bad locations.
7373

74-
- [`@stencil/decorators-style`](./docs/decorators-style.md)
74+
- [`@stencil-community/decorators-style`](./docs/decorators-style.md)
7575

7676
This rule catches Stencil decorators style usage.
7777

78-
- [`@stencil/element-type`](./docs/element-type.md)
78+
- [`@stencil-community/element-type`](./docs/element-type.md)
7979

8080
This rule catches Stencil Element decorator have the correct type.
8181

82-
- [`@stencil/host-data-deprecated`](./docs/host-data-deprecated.md)
82+
- [`@stencil-community/host-data-deprecated`](./docs/host-data-deprecated.md)
8383

8484
This rule catches Stencil method hostData.
8585

86-
- [`@stencil/methods-must-be-public`](./docs/methods-must-be-public.md)
86+
- [`@stencil-community/methods-must-be-public`](./docs/methods-must-be-public.md)
8787

8888
This rule catches Stencil Methods marked as private or protected.
8989

90-
- [`@stencil/no-unused-watch`](./docs/no-unused-watch.md)
90+
- [`@stencil-community/no-unused-watch`](./docs/no-unused-watch.md)
9191

9292
This rule catches Stencil Watchs with non existing Props or States.
9393

94-
- [`@stencil/own-methods-must-be-private`](./docs/own-methods-must-be-private.md)
94+
- [`@stencil-community/own-methods-must-be-private`](./docs/own-methods-must-be-private.md)
9595

9696
This rule catches own class methods marked as public.
9797

98-
- [`@stencil/own-props-must-be-private`](./docs/own-props-must-be-private.md)
98+
- [`@stencil-community/own-props-must-be-private`](./docs/own-props-must-be-private.md)
9999

100100
This rule catches own class properties marked as public.
101101

102-
- [`@stencil/prefer-vdom-listener`](./docs/prefer-vdom-listener.md)
102+
- [`@stencil-community/prefer-vdom-listener`](./docs/prefer-vdom-listener.md)
103103

104104
This rule catches Stencil Listen with vdom events.
105105

106-
- [`@stencil/props-must-be-public`](./docs/props-must-be-public.md)
106+
- [`@stencil-community/props-must-be-public`](./docs/props-must-be-public.md)
107107

108108
This rule catches Stencil Props marked as private or protected.
109109

110-
- [`@stencil/props-must-be-readonly`](./docs/props-must-be-readonly.md)
110+
- [`@stencil-community/props-must-be-readonly`](./docs/props-must-be-readonly.md)
111111

112112
This rule catches Stencil Props marked as non readonly, excluding mutable ones.
113113

114-
- [`@stencil/render-returns-host`](./docs/render-returns-host.md)
114+
- [`@stencil-community/render-returns-host`](./docs/render-returns-host.md)
115115

116116
This rule catches Stencil Render returning array instead of Host tag.
117117

118-
- [`@stencil/required-jsdoc`](./docs/required-jsdoc.md)
118+
- [`@stencil-community/required-jsdoc`](./docs/required-jsdoc.md)
119119

120120
This rule catches Stencil Props, Methods and Events to define jsdoc.
121121

122-
- [`@stencil/required-prefix`](./docs/required-prefix.md)
122+
- [`@stencil-community/required-prefix`](./docs/required-prefix.md)
123123

124124
This rule catches Stencil Component required tag name prefix.
125125

126-
- [`@stencil/reserved-member-names`](./docs/reserved-member-names.md)
126+
- [`@stencil-community/reserved-member-names`](./docs/reserved-member-names.md)
127127

128128
This rule catches Stencil Prop names that share names of Global HTML Attributes.
129129

130-
- [`@stencil/single-export`](./docs/single-export.md)
130+
- [`@stencil-community/single-export`](./docs/single-export.md)
131131

132132
This rule catches modules that expose more than just the Stencil Component itself.
133133

134-
- [`@stencil/strict-mutable`](./docs/strict-mutable.md)
134+
- [`@stencil-community/strict-mutable`](./docs/strict-mutable.md)
135135

136136
This rule catches Stencil Prop marked as mutable but not changing value in code.
137137

138138
## Recommended rules
139139

140140
```json
141141
{
142-
"@stencil/async-methods": "error",
143-
"@stencil/ban-prefix": ["error", ["stencil", "stnl", "st"]],
144-
"@stencil/decorators-context": "error",
145-
"@stencil/decorators-style": [
142+
"@stencil-community/async-methods": "error",
143+
"@stencil-community/ban-prefix": ["error", ["stencil", "stnl", "st"]],
144+
"@stencil-community/decorators-context": "error",
145+
"@stencil-community/decorators-style": [
146146
"error", {
147147
"prop": "inline",
148148
"state": "inline",
@@ -152,20 +152,20 @@ This rule catches Stencil Prop marked as mutable but not changing value in code.
152152
"watch": "multiline",
153153
"listen": "multiline"
154154
}],
155-
"@stencil/element-type": "error",
156-
"@stencil/host-data-deprecated": "error",
157-
"@stencil/methods-must-be-public": "error",
158-
"@stencil/no-unused-watch": "error",
159-
"@stencil/own-methods-must-be-private": "error",
160-
"@stencil/own-props-must-be-private": "error",
161-
"@stencil/prefer-vdom-listener": "error",
162-
"@stencil/props-must-be-public": "error",
163-
"@stencil/props-must-be-readonly": "error",
164-
"@stencil/render-returns-host": "error",
165-
"@stencil/required-jsdoc": "error",
166-
"@stencil/reserved-member-names": "error",
167-
"@stencil/single-export": "error",
168-
"@stencil/strict-mutable": "error"
155+
"@stencil-community/element-type": "error",
156+
"@stencil-community/host-data-deprecated": "error",
157+
"@stencil-community/methods-must-be-public": "error",
158+
"@stencil-community/no-unused-watch": "error",
159+
"@stencil-community/own-methods-must-be-private": "error",
160+
"@stencil-community/own-props-must-be-private": "error",
161+
"@stencil-community/prefer-vdom-listener": "error",
162+
"@stencil-community/props-must-be-public": "error",
163+
"@stencil-community/props-must-be-readonly": "error",
164+
"@stencil-community/render-returns-host": "error",
165+
"@stencil-community/required-jsdoc": "error",
166+
"@stencil-community/reserved-member-names": "error",
167+
"@stencil-community/single-export": "error",
168+
"@stencil-community/strict-mutable": "error"
169169
}
170170
```
171171

docs/async-methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ No config is needed
99
## Usage
1010

1111
```json
12-
{ "@stencil/async-methods": "error" }
12+
{ "@stencil-community/async-methods": "error" }
1313
```
1414

1515
> Fix included

docs/ban-prefix.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ An array of `"string"`s which no Component `tag` will be allowed to use as a pre
99
### Config examples
1010

1111
```json
12-
{ "@stencil/ban-prefix": ["error", ["stencil"]] }
12+
{ "@stencil-community/ban-prefix": ["error", ["stencil"]] }
1313
```
1414

1515
```json
16-
{ "@stencil/ban-prefix": ["error", ["stencil", "st", "stnl"]] }
16+
{ "@stencil-community/ban-prefix": ["error", ["stencil", "st", "stnl"]] }
1717
```
1818

1919
## Schema

docs/class-pattern.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ An object containing:
1212
### Config examples
1313

1414
```json
15-
{ "@stencil/class-pattern": ["error", { "pattern": "^(?!NoStart).*Component$", "ignoreCase": true }] }
15+
{ "@stencil-community/class-pattern": ["error", { "pattern": "^(?!NoStart).*Component$", "ignoreCase": true }] }
1616
```
1717

1818
## Schema

docs/decorators-context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ No config is needed
99
## Usage
1010

1111
```json
12-
{ "@stencil/decorators-context": "error" }
12+
{ "@stencil-community/decorators-context": "error" }
1313
```

docs/decorators-style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ If decorators are composed (multiple decorators for a single declaration), "mult
1818
### Config examples
1919

2020
```json
21-
{ "@stencil/decorators-style": ["error", { "prop": "inline", "method": "multiline" }] }
21+
{ "@stencil-community/decorators-style": ["error", { "prop": "inline", "method": "multiline" }] }
2222
```
2323

2424
## Schema

docs/element-type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ No config is needed
99
## Usage
1010

1111
```json
12-
{ "@stencil/element-type": "error" }
12+
{ "@stencil-community/element-type": "error" }
1313
```

docs/host-data-deprecated.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ No config is needed
99
## Usage
1010

1111
```json
12-
{ "@stencil/host-data-deprecated": "error" }
12+
{ "@stencil-community/host-data-deprecated": "error" }
1313
```

docs/methods-must-be-public.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ No config is needed
99
## Usage
1010

1111
```json
12-
{ "@stencil/methods-must-be-public": "error" }
12+
{ "@stencil-community/methods-must-be-public": "error" }
1313
```
1414

1515
> Fix included

docs/no-unused-watch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ No config is needed
99
## Usage
1010

1111
```json
12-
{ "@stencil/no-unused-watch": "error" }
12+
{ "@stencil-community/no-unused-watch": "error" }
1313
```

0 commit comments

Comments
 (0)