Socket
Socket
Sign inDemoInstall

codelyzer

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codelyzer - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

attributeParameterDecoratorRule.js

2

package.json
{
"name": "codelyzer",
"version": "0.0.16",
"version": "0.0.17",
"description": "A set of linters for Angular 2 applications, following https://github.com/mgechev/angular2-style-guide.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -13,3 +13,3 @@ # Codelyzer

"rulesDirectory": [
"node_modules/codelyzer"
"node_modules/codelyzer/dist/src"
],

@@ -35,14 +35,12 @@ "rules":{

"component-selector-prefix": [true, "sg"],
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"use-host-property-decorator": true,
"no-attribute-parameter-decorator": true,
"no-input-rename": true,
"no-output-rename": true,
"no-forward-ref" :true,
"use-life-cycle-interface": true,
"use-pipe-transform-interface": true,
"pipe-naming": [true, "camelCase", "sg"],
"component-class-suffix": true,
"directive-class-suffix": true
"host-parameter-decorator": true,
"input-parameter-decorator": true,
"output-parameter-decorator": true,
"attribute-parameter-decorator": true,
"input-property-directive": true,
"output-property-directive": true,
"call-forward-ref" :true,
"life-cycle-hook": true,
"pipe-transform-interface": true,
"pipe-naming": [true, "kebab-case","sg"]
}

@@ -62,12 +60,8 @@ ```

- [x] Use `@HostListeners` and `@HostBindings` instead of `host` decorator property.
- [x] Implement life-cycle hooks explicitly.
- [x] Implement Pipe transform interface for pipes.
- [x] Proper naming for pipes (kebab-case, optionally prefixed).
- [ ] Do not use `nativeElement` injected with `ElementRef`.
- [x] Do not rename inputs.
- [x] Do not rename outputs.
- [x] Do not rename inputs.
- [ ] Externalize template above *n* lines of code.
- [x] Do not use the `@Attribute` decorator.
- [x] Do not use `forwardRef`.
- [x] Do not use the `@Attribute` decorator.
- [x] Proper naming of directives and components (name plus `(Directive|Component)` suffix).
- [ ] Do not use `nativeElement` injected with `ElementRef`.
- [ ] Externalize template above *n* lines of code.
- [ ] Rise a warning for impure pipes.

@@ -81,2 +75,3 @@ - [ ] Do not declare global providers.

- [ ] Verify that property or method used in the template exists in the current context.
- [ ] Proper naming of directives and components (name plus `(Directive|Component)` suffix).
- [ ] Locate component templates in the same directory.

@@ -86,2 +81,5 @@ - [ ] Locate tests in the same directory (rise optional warning when no test file is found).

- [ ] Do not manipulate elements referenced within the template.
- [x] Implement life-cycle hooks explicitly.
- [x] Implement Pipe transform interface for pipes.
- [x] Proper naming for pipes (kebab-case, optionally prefixed).

@@ -88,0 +86,0 @@ ## License

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