
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
eslint-plugin-backbone
Advanced tools
Backbone specific linting rules for ESLint
#How to use
npm install eslint@">=0.8.2"
or
npm install eslint@">=0.8.2" --save-dev
eslint-plugin-backbone requires ESLint
with version greater then 0.8.1 or 0.8.2 if you would like to use your own base models.
If you installed ESLint
globally, you have to install Backbone plugin globally too. Otherwise, install it locally.
npm install eslint-plugin-backbone
or
npm install eslint-plugin-backbone --save-dev
Add plugins
section and specify eslint-plugin-backbone as a plugin
{
"plugins": [
"backbone"
]
}
Enable all of the rules that you would like to use
{
"rules": {
"backbone/collection-model": 1,
"backbone/defaults-on-top": 1,
"backbone/model-defaults": 1,
"backbone/no-constructor": 1,
"backbone/no-native-jquery": 1
}
}
If you are using custom models/view/collection bases you also have to specify each on in the settings
section
{
"settings": {
"backbone": {
"Collection": ["Backbone.NestedCollection", "MyCollection"],
"Model": ["MyBaseModel"],
"View": ["MyBaseView"]
}
}
}
#List of supported rules
FAQs
Eslint rules for Backbone.
The npm package eslint-plugin-backbone receives a total of 3,423 weekly downloads. As such, eslint-plugin-backbone popularity was classified as popular.
We found that eslint-plugin-backbone demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.