Skip to content

proctorio/eslint-plugin-belgradian.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-belgradian

The plugin is supposed to help write elements in cascalCase and prefix them with a scope:

  • m_ for field members
  • g_ for global variables (outside of the Module or Class)

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-belgradian:

$ npm install eslint-plugin-belgradian --save-dev

Basic usage

Add belgradian to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["belgradian"]
}

Then configure the rules you want to use under the rules section:

{
  "rules": {
    "belgradian/member-prefix-rule": "error"
  }
}

Or:

{
  "rules": {
    "belgradian/member-prefix-rule": [
		2, 
		{ "include": ["g_"], "exceptions": ["reservedVariable"] }
	]
  }
}

Inspired by Sander Verweij's budapestian.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published