@geostarters/eslint-config
v0.0.6
Published
The linter used by Geostart projects
Downloads
18
Readme
@geostarters/eslint-config
The linter used by the Geostart projects.
Extends the eslint-config-mourner eslint configuration
Install
´´´ npm i --D @geostarters/eslint-config ´´´
Rules
- Disables array-bracket-spacing
- Forces block-scoped-var
- Disables consistent-return
- Forces curly braces on blocks
- Uses flowtype/define-flow-type to suppress undefined warnings in type identifiers
- Forces flowtype/require-valid-file-annotation to report missing or missplaced annotation
- Use [global-require] to force using
require()
in the top of a module - Use indent to enforce consisting indentation
- Disables key-spacing enforcing
- Forces no-unused-vars so no unused variables are defined
- Forces no-var so
let
orconst
are used instead - Forces no-warning-comments so no TODO or FIX comments are added
- Forces no-multiple-empty-lines so no multiple blank lines are used
- Disables object-curly-spacing
- Forces padded-blocks so blocks are padded with blank lines
- Forces prefer-arrow-callback so arrow functions are used
- Forces prefer-const sp
const
is used when avar
is not reassigned - Forces prefer-template to use template literals instead of string concatenation
- Forces the use of double quotes
- Disables space-before-function-paren
- Forces template-curly-spacing so spaces are forced inside template curly braces
- Disables no-useless-escape to disallow unnecessary escape usage