Similar to #2239. I'd like to be able to do something similar to this, i.e.: // require all global constants to be camelCase or UPPER_CASE // all other variables and functions still need to be camelCase {"selector": "variable", "modifier...
naming-convention.mdx | |—— no-array-constructor.mdx | |—— no-array-delete.mdx | |—— no-base-to-string.mdx | |—— no-confusing-non-null-assertion.mdx | |—— no-confusing-void-expression.mdx | |—— no-dupe-class-members.mdx | |—— no-duplicate-enum-values.mdx | |—...
TypeScript—命名空间 15...中类的用法 TypeScript 可以使用三种访问修饰符,分别是 public、private 和 protected。...TypeScript—命名空间命名空间是为了避免变量命名冲突,TypeScript 官方将命名空间视为“内部模块”。如果声明相同名称的命名空间,TypeScript 编译器会将其合并为一个声明。...使用 namespace ...
eslint-plugin:[use-unknown-in-catch-callback-variable] flag second argument of.then(#9059) eslint-plugin:[no-unnecessary-type-assertion] conflict with TS for variables used before assignment (#9209) eslint-plugin:
Class names should comply with a naming convention Code Smell Track uses of "TODO" tags Code Smell Code Smell Track lack of copyright and license headers Code Smell Code Smell Object literal shorthand syntax should be used Code Smell Strings and non-strings should not be added ...
eslint-plugin: [no-unnecessary-type-assertion] combine template literal check with const variable check (#8820)eslint-plugin: [dot-notation] fix false positive when accessing private/protected property with optional chaining (#8851)eslint-plugin: [explicit-member-accessibility] refine report locations...
private values: T[] = []; private constructor (values: T[]) { this.values = values; } public add(value: T): void { this.values.push(value); } public where(predicate: (value: T) => boolean): TypedList<T> { return TypedList.from<T>(this.values.filter(predicate)); ...
Code Inspection: Local variable naming convention Last modified: 16 July 2021 Configure inspections: Settings / Preferences | Editor | Inspections Reports local variables whose names are either too short, too long, or do not follow the specified regular expression pattern. Use the fields ...
eslint-plugin: [no-unnecessary-type-assertion] combine template literal check with const variable check eslint-plugin: [dot-notation] fix false positive when accessing private/protected property with optional chaining eslint-plugin: [explicit-member-accessibility] refine report locations eslint-plugin...
[naming-convention] Handle names that are a classish type#1485 Closed [naming-convention] Allow underscore prefix for backing fields#816 Closed [naming-convention] Handle constructor passed as parameter#1484 Closed [naming-convention] variable or variableLike which is an object#2149 ...