Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eslint-plugin): [naming-convention] add modifiers exported, global, and destructured modifiers - add selectors classProperty, objectLiteralProperty, typeProperty, classMethod, objectLiteralMethod, typeMethod #2802

Commits on Nov 24, 2020

  1. feat(eslint-plugin): [naming-convention] add modifiers exported, `g…

    …lobal`, and `destructured` modifiers - add selectors `classProperty`, `objectLiteralProperty`, `typeProperty`, `classMethod`, `objectLiteralMethod`, `typeMethod`
    
    Fixes #2239
    Fixes #2512
    Fixes #2318
    Fixes #1477
    
    Big update to add a bunch of stuff.
    I couldn't be bothered splitting this out into separate PRs.
    
    Adds the following modifiers:
    - `exported` - matches anything that is exported from the module.
    - `global` - matches a variable/function declared in the top-level scope.
    - `destructured` - matches a variable declared via an object destructuring pattern (`const {x, ignored: y, z = 2}`).
    
    Adds the following selectors (self explanatory - just breaking the selectors up):
    - `classProperty`
    - `objectLiteralProperty`
    - `typeProperty`
    - `classMethod`
    - `objectLiteralMethod`
    - `typeMethod`
    
    Converts
    - `property` to a meta selector for `classProperty`, `objectLiteralProperty`, `typeProperty`
    - `method` to a meta selector for `classMethod`, `objectLiteralMethod`, `typeMethod`
    bradzacher committed Nov 24, 2020
    Copy the full SHA
    3c91b53 View commit details
    Browse the repository at this point in the history