Skip to content

AleksandrSerov/eslint-plugin-dirnames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@sserov/eslint-plugin-dirnames

Eslint plugin for consistent directory naming (original repository was suspended - https://github.com/alfa-laboratory/eslint-plugin-dirnames)

Installation

$ npm install eslint @sserov/eslint-plugin-dirnames --save-dev

or

$ yarn add eslint @sserov/eslint-plugin-dirnames --dev

It is also possible to install ESLint globally rather than locally (using npm install eslint --global). However, this is not recommended, and any plugins or shareable configs that you use must be installed locally in either case.

Configuration

You need to specify individual rules and add extra configuration.

Add "@sserov/dirnames" to the plugins section.

{
  "plugins": [
    "@sserov/dirnames"
  ]
}

Enable the rule

  "rules": {
    "@sserov/dirnames/match-kebab-case": "error",
  }

List of supported rules

Rule Description
@sserov/dirnames/match-kebab-case Enforce a case style for dirnames

About

Eslint plugin for consistent directory naming

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published