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.
Files changed (3) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/index.js +1 -20
  3. 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
- if (!DISAPPROVE_RULE_NAMES_REGEX.test(ruleName)) {
51
- config.rules[`smarthr/${ruleName}`] = 'off';
52
- }
33
+ config.rules[`smarthr/${ruleName}`] = 'off';
53
34
  }
54
35
 
55
36
  return config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-smarthr",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "author": "SmartHR",
5
5
  "license": "MIT",
6
6
  "description": "A sharable ESLint plugin for SmartHR",