Skip to content

Latest commit

 

History

History

variables

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Usage

  • .eslintrc.json
{
    "extends": "@mgtitimoli/eslint-config/variables"
}

Rules settings

Prevents shallowing (declare local variables that takes precedence over the ones in higher scopes) native references

configuration

{
    "no-shadow-restricted-names": "error"
}

Disallows the explicit (and unnecessary) use of undefined on variables initialization

configuration

{
    "no-undef-init": "error"
}

Disallows the use of variables before defined them

configuration

{
    "no-use-before-define": "error"
}