javascript-typescript/README.md
=== and !==) except when comparing against
(null or undefined).=>, over the function keyword except when
defining classes or methods.PascalCase for classes, lowerCamelCase for variables and functions,
SCREAMING_SNAKE_CASE for constants, _singleLeadingUnderscore for private
variables and functions.forEach, map, filter and reduce over for/while loops.const for declaring variables that will never be re-assigned, and let
otherwise.var to declare variables.??PascalCase for Interfaces and Type AliasesT | undefinedas-syntax for Type Assertions over the angle-bracket syntax=>, over the function keyword except when using
GenericsUse Prettier defaults with the following additional configuration (.prettierrc):
{
"singleQuote": true
}
This configuration includes:
If ESLint is used along with Prettier, the ESLInt plugin eslint-config-prettier should also be used to turn off all ESLint style rules that are already handled by Prettier.