eslint-plugin-smarthr 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/index.js +1 -20
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.5.2](https://github.com/kufu/eslint-plugin-smarthr/compare/v0.5.1...v0.5.2) (2024-03-17)
|
|
6
|
+
|
|
5
7
|
### [0.5.1](https://github.com/kufu/eslint-plugin-smarthr/compare/v0.5.0...v0.5.1) (2024-03-17)
|
|
6
8
|
|
|
7
9
|
|
package/index.js
CHANGED
|
@@ -23,23 +23,6 @@ function generateRulesMap() {
|
|
|
23
23
|
return rulesMap;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
const DISAPPROVE_RULE_NAMES = [
|
|
27
|
-
'a11y-form-control-in-form', // formを使用することの是非について議論中のため
|
|
28
|
-
|
|
29
|
-
// ルールが動作するために設定が必要なものはrecommendedに含めない
|
|
30
|
-
'format-import-path',
|
|
31
|
-
'format-translate-component',
|
|
32
|
-
'jsx-start-with-spread-attributes',
|
|
33
|
-
'no-import-other-domain',
|
|
34
|
-
'prohibit-file-name',
|
|
35
|
-
'prohibit-import',
|
|
36
|
-
'prohibit-path-within-template-literal',
|
|
37
|
-
'require-declaration',
|
|
38
|
-
'require-export',
|
|
39
|
-
'require-import',
|
|
40
|
-
]
|
|
41
|
-
const DISAPPROVE_RULE_NAMES_REGEX = new RegExp(`^(${DISAPPROVE_RULE_NAMES.join('|')})$`)
|
|
42
|
-
|
|
43
26
|
function generateRecommendedConfig(rules) {
|
|
44
27
|
let config = {
|
|
45
28
|
plugins: ['smarthr'],
|
|
@@ -47,9 +30,7 @@ function generateRecommendedConfig(rules) {
|
|
|
47
30
|
};
|
|
48
31
|
|
|
49
32
|
for (let ruleName of Object.keys(rules)) {
|
|
50
|
-
|
|
51
|
-
config.rules[`smarthr/${ruleName}`] = 'off';
|
|
52
|
-
}
|
|
33
|
+
config.rules[`smarthr/${ruleName}`] = 'off';
|
|
53
34
|
}
|
|
54
35
|
|
|
55
36
|
return config;
|