eslint-plugin-smarthr
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
363100
5195