Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-decorator-position

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-decorator-position - npm Package Compare versions

Comparing version 2.2.19 to 2.2.20

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [2.2.20](https://github.com/NullVoxPopuli/eslint-plugin-decorator-position/compare/v2.2.19...v2.2.20) (2021-03-22)
### Bug Fixes
* include indentation when counting line width ([b86643a](https://github.com/NullVoxPopuli/eslint-plugin-decorator-position/commit/b86643a358425e5e6bcf78497140b2c2d44004db))
## [2.2.19](https://github.com/NullVoxPopuli/eslint-plugin-decorator-position/compare/v2.2.18...v2.2.19) (2021-02-13)

@@ -2,0 +9,0 @@

6

lib/rules/decorator-position.js

@@ -385,3 +385,7 @@ 'use strict';

// - etc
return context.getSourceCode().getText(node).replace(/\s+/, ' ').length;
return (
context.getSourceCode().getText(node).replace(/\s+/, ' ').length +
// this is the only way to get indentation?
node.loc.start.column
);
}

@@ -388,0 +392,0 @@

13

package.json
{
"name": "eslint-plugin-decorator-position",
"version": "2.2.19",
"version": "2.2.20",
"description": "ESLint plugin for enforcing decorator position",

@@ -23,2 +23,3 @@ "main": "lib/index.js",

"test:debug-watch": "node --inspect node_modules/.bin/jest --watch --runInBand",
"test:debug:named": "node --inspect node_modules/.bin/jest --runInBand --watch --testNamePattern",
"test:coverage": "jest --coverage",

@@ -61,7 +62,7 @@ "test:watch": "jest --watchAll",

"devDependencies": {
"@commitlint/cli": "11.0.0",
"@commitlint/config-conventional": "11.0.0",
"@commitlint/cli": "12.0.0",
"@commitlint/config-conventional": "12.0.0",
"@semantic-release/changelog": "5.0.1",
"@semantic-release/git": "9.0.0",
"@typescript-eslint/parser": "4.15.0",
"@typescript-eslint/parser": "4.15.2",
"babel-eslint": "10.1.0",

@@ -85,3 +86,3 @@ "common-tags": "1.8.0",

"semantic-release": "17.3.9",
"typescript": "4.1.5"
"typescript": "4.2.2"
},

@@ -123,5 +124,5 @@ "dependencies": {

"volta": {
"node": "12.16.1",
"node": "14.16.0",
"yarn": "1.22.10"
}
}
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