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

eslint-plugin-smarthr

Package Overview
Dependencies
Maintainers
24
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.5.1 to 0.5.2

2

CHANGELOG.md

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

### [0.5.2](https://github.com/kufu/eslint-plugin-smarthr/compare/v0.5.1...v0.5.2) (2024-03-17)
### [0.5.1](https://github.com/kufu/eslint-plugin-smarthr/compare/v0.5.0...v0.5.1) (2024-03-17)

@@ -7,0 +9,0 @@

21

index.js

@@ -26,19 +26,2 @@ 'use strict';

const DISAPPROVE_RULE_NAMES = [
'a11y-form-control-in-form', // formを使用することの是非について議論中のため
// ルールが動作するために設定が必要なものはrecommendedに含めない
'format-import-path',
'format-translate-component',
'jsx-start-with-spread-attributes',
'no-import-other-domain',
'prohibit-file-name',
'prohibit-import',
'prohibit-path-within-template-literal',
'require-declaration',
'require-export',
'require-import',
]
const DISAPPROVE_RULE_NAMES_REGEX = new RegExp(`^(${DISAPPROVE_RULE_NAMES.join('|')})$`)
function generateRecommendedConfig(rules) {

@@ -51,5 +34,3 @@ let config = {

for (let ruleName of Object.keys(rules)) {
if (!DISAPPROVE_RULE_NAMES_REGEX.test(ruleName)) {
config.rules[`smarthr/${ruleName}`] = 'off';
}
config.rules[`smarthr/${ruleName}`] = 'off';
}

@@ -56,0 +37,0 @@

{
"name": "eslint-plugin-smarthr",
"version": "0.5.1",
"version": "0.5.2",
"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