eslint-plugin-backbone
Advanced tools
Comparing version
@@ -41,3 +41,3 @@ function isBackboneBase(node, settings) { | ||
return settings.some(function(item) { | ||
return item.postfix ? item.postfix === object.property.name : item.prefix === object.name; | ||
return item.postfix && object.property ? item.postfix === object.property.name : item.prefix === object.name; | ||
}); | ||
@@ -44,0 +44,0 @@ } |
{ | ||
"name": "eslint-plugin-backbone", | ||
"version": "1.0.3", | ||
"description": "Eslint rules for Backbone.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "npm run lint && npm run unit-test --coverage && npm run check-coverage", | ||
"lint": "eslint ./", | ||
"unit-test": "istanbul test --dir build/coverage node_modules/mocha/bin/_mocha tests/**/*.js -- --recursive --reporter dot", | ||
"check-coverage": "istanbul check-coverage --statement 100 --branch 100 --function 100 --lines 100", | ||
"report-coverage-html": "istanbul report --dir build/coverage html" | ||
}, | ||
"devDependencies": { | ||
"istanbul": "0.3.0", | ||
"mocha": "1.21.4", | ||
"eslint": ">=1.0.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/ilyavolodin/eslint-plugin-backbone.git" | ||
}, | ||
"author": "Ilya Volodin <ivolodin@gmail.com>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/ilyavolodin/eslint-plugin-backbone/issues" | ||
}, | ||
"homepage": "https://github.com/ilyavolodin/eslint-plugin-backbone", | ||
"keywords": [ | ||
"eslint-plugin", | ||
"eslintplugin", | ||
"backbone", | ||
"eslint" | ||
] | ||
"name": "eslint-plugin-backbone", | ||
"version": "1.0.4", | ||
"description": "Eslint rules for Backbone.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "npm run lint && npm run unit-test --coverage && npm run check-coverage", | ||
"lint": "eslint ./", | ||
"unit-test": "istanbul test --dir build/coverage node_modules/mocha/bin/_mocha tests/**/*.js -- --recursive --reporter dot", | ||
"check-coverage": "istanbul check-coverage --statement 100 --branch 100 --function 100 --lines 100", | ||
"report-coverage-html": "istanbul report --dir build/coverage html" | ||
}, | ||
"devDependencies": { | ||
"istanbul": "0.3.0", | ||
"mocha": "1.21.4", | ||
"eslint": ">=1.0.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/ilyavolodin/eslint-plugin-backbone.git" | ||
}, | ||
"author": "Ilya Volodin <ivolodin@gmail.com>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/ilyavolodin/eslint-plugin-backbone/issues" | ||
}, | ||
"homepage": "https://github.com/ilyavolodin/eslint-plugin-backbone", | ||
"keywords": [ | ||
"eslint-plugin", | ||
"eslintplugin", | ||
"backbone", | ||
"eslint" | ||
] | ||
} |
@@ -15,10 +15,10 @@ [![NPM version][npm-image]][npm-url] | ||
npm install eslint@">=0.8.2" | ||
npm install eslint@">=1.0.0" | ||
or | ||
npm install eslint@">=0.8.2" --save-dev | ||
npm install eslint@">=1.0.0" --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. | ||
eslint-plugin-backbone requires `ESLint` with version greater then 1.0.0 if you would like to use your own base models. | ||
@@ -25,0 +25,0 @@ ## Install Backbone plugins. |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
-100%94228
-0.34%