eslint-plugin-decorator-position
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -89,3 +89,3 @@ 'use strict'; | ||
return { | ||
'ClassProperty:exit'(node) { | ||
'ClassProperty[decorators.length=1]:exit'(node) { | ||
const { decorators } = node; | ||
@@ -98,3 +98,3 @@ | ||
// NOTE: both getters and methods are of type MethodDefinition | ||
'MethodDefinition:exit'(node) { | ||
'MethodDefinition[decorators.length=1]:exit'(node) { | ||
const { decorators } = node; | ||
@@ -188,3 +188,3 @@ | ||
function linePositioning(decorator, key) { | ||
const decoratorLine = decorator.expression.loc.start.line; | ||
const decoratorLine = decorator.expression.loc.end.line; | ||
const keyLine = key.loc.start.line; | ||
@@ -191,0 +191,0 @@ const onDifferentLines = decoratorLine !== keyLine; |
{ | ||
"name": "eslint-plugin-decorator-position", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "ESLint plugin for enforcing decorator position", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -56,3 +56,3 @@ # eslint-plugin-decorator-position | ||
| | [base](./lib/config/base.js) | contains no rules settings, but the basic eslint configuration suitable for any project. You can use it to configure rules as you wish. | | ||
| :hampster: | [ember](./lib/ember-rules.js) | extends the `base` configuration by enabling the recommended rules for ember projects. | | ||
| :hamster: | [ember](./lib/ember-rules.js) | extends the `base` configuration by enabling the recommended rules for ember projects. | | ||
@@ -59,0 +59,0 @@ ## 🍟 Rules |
15597