eslint-plugin-angular
Advanced tools
Comparing version 2.0.0 to 2.1.0
{ | ||
"name": "eslint-plugin-angular", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "ESLint rules for AngularJS projects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -108,2 +108,8 @@ /** | ||
} | ||
if (options.casing === 'camel') { | ||
name = filenameUtil.firstToLower(name); | ||
} | ||
if (options.casing === 'pascal') { | ||
name = filenameUtil.firstToUpper(name); | ||
} | ||
return name + fileEnding; | ||
@@ -110,0 +116,0 @@ } |
@@ -47,2 +47,27 @@ /** | ||
/** | ||
* Used only by `ForDeprecatedBehavior()` for making sure it was run only one time | ||
* @type {boolean} | ||
*/ | ||
var didWarnForDeprecatedBehavior = false; | ||
/** | ||
* Warn if API is deprecated | ||
* @param {Array.<*>} options | ||
*/ | ||
function warnForDeprecatedBehavior(options) { | ||
if (didWarnForDeprecatedBehavior) { | ||
return; | ||
} | ||
didWarnForDeprecatedBehavior = true; | ||
var config = getConfig(options); | ||
/* istanbul ignore if */ | ||
if (config.oldBehavior) { | ||
// eslint-disable-next-line | ||
console.warn('The rule `angular/service-name` will be split up to different rules in the next version. Please read the docs for more information'); | ||
} | ||
} | ||
module.exports = { | ||
@@ -57,2 +82,4 @@ meta: { | ||
create: function(context) { | ||
warnForDeprecatedBehavior(context.options); | ||
return { | ||
@@ -59,0 +86,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
197411
4511