You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(eslint-plugin): [naming-convention] add support for "override" and "async" modifiers (#5310) (#5610)
* feat(eslint-plugin): [naming-convention] add support for "override" and "async" modifiers (#5310)
* apply pr feedback ie remove test case util, split tests by type, remove abstract getter change, remove override for variable selector in docs
* remove async parameter logic which is impossible
Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com>
Copy file name to clipboardexpand all lines: packages/eslint-plugin/docs/rules/naming-convention.md
+12-11
Original file line number
Diff line number
Diff line change
@@ -171,7 +171,8 @@ If these are provided, the identifier must start with one of the provided values
171
171
-`unused` - matches anything that is not used.
172
172
-`requiresQuotes` - matches any name that requires quotes as it is not a valid identifier (i.e. has a space, a dash, etc in it).
173
173
-`public` - matches any member that is either explicitly declared as `public`, or has no visibility modifier (i.e. implicitly public).
174
-
-`readonly`, `static`, `abstract`, `protected`, `private` - matches any member explicitly declared with the given modifier.
174
+
-`readonly`, `static`, `abstract`, `protected`, `private`, `override` - matches any member explicitly declared with the given modifier.
175
+
-`async` - matches any method, function, or function variable which is async via the `async` keyword (e.g. does not match functions that return promises without using `async` keyword)
175
176
-`types` allows you to specify which types to match. This option supports simple, primitive types only (`boolean`, `string`, `number`, `array`, `function`).
176
177
- The name must match _one_ of the types.
177
178
-**_NOTE - Using this option will require that you lint with type information._**
@@ -194,16 +195,16 @@ There are two types of selectors, individual selectors, and grouped selectors.
194
195
Individual Selectors match specific, well-defined sets. There is no overlap between each of the individual selectors.
-`objectLiteralProperty` - matches any object literal property. Does not match properties that have direct function expression or arrow function expression values.
-`classMethod` - matches any class method. Also matches properties that have direct function expression or arrow function expression values. Does not match accessors.
-`objectLiteralMethod` - matches any object literal method. Also matches properties that have direct function expression or arrow function expression values. Does not match accessors.
-`typeMethod` - matches any object type method. Also matches properties that have direct function expression or arrow function expression values. Does not match accessors.
0 commit comments