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

eslint-plugin-smarthr

Package Overview
Dependencies
Maintainers
22
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-smarthr - npm Package Compare versions

Comparing version 0.3.22 to 0.3.23

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [0.3.23](https://github.com/kufu/eslint-plugin-smarthr/compare/v0.3.22...v0.3.23) (2024-01-16)
### Bug Fixes
* import内で型の場合はtype kindを設定することでasでの命名縛りを回避できるように修正 ([#102](https://github.com/kufu/eslint-plugin-smarthr/issues/102)) ([689d7da](https://github.com/kufu/eslint-plugin-smarthr/commit/689d7da9e899b2801ae2dfdfd465f6cfcc277e85))
### [0.3.22](https://github.com/kufu/eslint-plugin-smarthr/compare/v0.3.21...v0.3.22) (2024-01-16)

@@ -7,0 +14,0 @@

9

libs/format_styled_components.js

@@ -30,3 +30,3 @@ const STYLED_COMPONENTS_METHOD = 'styled'

const checkImportedNameToLocalName = (node, base, extended, mode) => {
const checkImportedNameToLocalName = (node, base, extended, isImport) => {
entriesesTagNames.forEach(([b, e]) => {

@@ -36,4 +36,5 @@ if (base.match(b) && !extended.match(e)) {

node,
message: `${extended}を正規表現 "${e.toString()}" がmatchする名称に変更してください。
- ${base}が型の場合、'${mode} type { ${base} as ${extended} }' もしくは '${mode} { type ${base} as ${extended} }' のように明示的に型であることを宣言してください。名称変更が不要になります`,
message: `${extended}を正規表現 "${e.toString()}" がmatchする名称に変更してください。${isImport ? `
- ${base}が型の場合、'import type { ${base} as ${extended} }' もしくは 'import { type ${base} as ${extended} }' のように明示的に型であることを宣言してください。名称変更が不要になります
` : ''}`,
});

@@ -51,3 +52,3 @@ }

if (s.importKind !== 'type' && s.imported && s.imported.name !== s.local.name) {
checkImportedNameToLocalName(node, s.imported.name, s.local.name, 'import')
checkImportedNameToLocalName(node, s.imported.name, s.local.name, true)
}

@@ -54,0 +55,0 @@ })

{
"name": "eslint-plugin-smarthr",
"version": "0.3.22",
"version": "0.3.23",
"author": "SmartHR",

@@ -5,0 +5,0 @@ "license": "MIT",

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