2.4.3 • Published 4 years ago
eslint-plugin-belgradian v2.4.3
eslint-plugin-belgradian
The plugin is supposed to help write elements in cascalCase and prefix them with a scope:
m_for field membersg_for global variables (outside of the Module or Class)
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-belgradian:
$ npm install eslint-plugin-belgradian --save-devBasic 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.