Socket
Socket
Sign inDemoInstall

eslint-plugin-angular

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-angular - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc