@w5s/eslint-config 2.2.0 → 2.2.1

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/dist/rules/es.js CHANGED
@@ -9,7 +9,5 @@ const jsdoc_js_1 = __importDefault(require("./es/jsdoc.js"));
9
9
  const import_js_1 = __importDefault(require("./es/import.js"));
10
10
  const unicorn_js_1 = __importDefault(require("./es/unicorn.js"));
11
11
  // import prettierConfig from './prettier.js';
12
- const config = dev_1.ESLintConfig.concat(base_js_1.default, promise_js_1.default, jsdoc_js_1.default, import_js_1.default, unicorn_js_1.default
13
- // prettierConfig
14
- );
12
+ const config = dev_1.ESLintConfig.concat(base_js_1.default, promise_js_1.default, jsdoc_js_1.default, import_js_1.default, unicorn_js_1.default);
15
13
  module.exports = config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/eslint-config",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "ESLint configuration presets",
5
5
  "keywords": [
6
6
  "eslint",
@@ -36,8 +36,8 @@
36
36
  "@rushstack/eslint-patch": "^1.1.0",
37
37
  "@typescript-eslint/eslint-plugin": "^8.0.0",
38
38
  "@typescript-eslint/parser": "^8.0.0",
39
- "@w5s/dev": "^2.2.14",
40
- "@w5s/prettier-config": "^2.1.1",
39
+ "@w5s/dev": "^2.2.15",
40
+ "@w5s/prettier-config": "^2.2.0",
41
41
  "eslint-config-airbnb-base": "^15.0.0",
42
42
  "eslint-config-prettier": "^9.0.0",
43
43
  "eslint-plugin-import": "^2.25.0",
@@ -71,5 +71,5 @@
71
71
  "access": "public"
72
72
  },
73
73
  "sideEffect": false,
74
- "gitHead": "f58f8377bc54398236a7bc08869c7a77272cc510"
74
+ "gitHead": "98a230292696150554b89e419fcd0ca4a3f5763f"
75
75
  }
package/src/es.ts CHANGED
@@ -6,7 +6,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
6
6
  {
7
7
  extends: [require.resolve('./rules/es.js')],
8
8
  },
9
- prettierConfig
9
+ prettierConfig,
10
10
  );
11
11
 
12
12
  export = config;
package/src/index.ts CHANGED
@@ -25,7 +25,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
25
25
  ymlConfig,
26
26
  {
27
27
  root: true,
28
- }
28
+ },
29
29
  );
30
30
 
31
31
  export = config;
@@ -26,7 +26,7 @@ const baseConfig = ESLintConfig.concat(
26
26
  nodeConfig,
27
27
  strictConfig,
28
28
  styleConfig,
29
- variablesConfig
29
+ variablesConfig,
30
30
  );
31
31
 
32
32
  const config: eslint.Linter.Config = ESLintConfig.concat(
@@ -65,7 +65,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
65
65
  // @ts-ignore No typing available
66
66
  'no-restricted-syntax': baseConfig.rules['no-restricted-syntax'].filter(
67
67
  // @ts-ignore No typing available
68
- ({ selector }) => selector !== 'ForOfStatement'
68
+ ({ selector }) => selector !== 'ForOfStatement',
69
69
  ),
70
70
  // underscore is often used (mongodb, etc)
71
71
  'no-underscore-dangle': 'off',
@@ -77,7 +77,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
77
77
  'no-void': ['error', { allowAsStatement: true }],
78
78
  'unicode-bom': ['error', 'never'],
79
79
  },
80
- }
80
+ },
81
81
  );
82
82
 
83
83
  export = config;
@@ -75,7 +75,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
75
75
  },
76
76
  },
77
77
  ],
78
- }
78
+ },
79
79
  );
80
80
 
81
81
  export = config;
@@ -69,6 +69,6 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
69
69
  'unicorn/prefer-default-parameters': 'off',
70
70
  'unicorn/prevent-abbreviations': 'off', // This rule is so dangerous : it potentially break code while fixing in many cases !!
71
71
  },
72
- }
72
+ },
73
73
  );
74
74
  export = config;
package/src/rules/es.ts CHANGED
@@ -12,7 +12,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
12
12
  promiseConfig,
13
13
  jsdocConfig,
14
14
  importConfig,
15
- unicornConfig
15
+ unicornConfig,
16
16
  // prettierConfig
17
17
  );
18
18
  export = config;
package/src/rules/jest.ts CHANGED
@@ -57,6 +57,6 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
57
57
  '@typescript-eslint/restrict-template-expressions': 'off',
58
58
  '@typescript-eslint/unbound-method': 'off',
59
59
  },
60
- }
60
+ },
61
61
  );
62
62
  export = config;
@@ -177,7 +177,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
177
177
  }
178
178
  return [...result, ...toAppend];
179
179
  },
180
- []
180
+ [],
181
181
  ),
182
182
  },
183
183
  ],
@@ -250,6 +250,6 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
250
250
  'space-infix-ops': 'off',
251
251
  'valid-typeof': 'off',
252
252
  },
253
- }
253
+ },
254
254
  );
255
255
  export = config;
package/src/typescript.ts CHANGED
@@ -9,12 +9,12 @@ const config: eslint.Linter.Config = {
9
9
  {
10
10
  extends: [require.resolve('./rules/typescript.js')],
11
11
  },
12
- prettierConfig
12
+ prettierConfig,
13
13
  ),
14
14
  files: [
15
15
  Project.extensionsToGlob(
16
16
  // ts only extensions
17
- Project.queryExtensions(['typescript', 'typescriptreact'])
17
+ Project.queryExtensions(['typescript', 'typescriptreact']),
18
18
  ),
19
19
  ],
20
20
  },
package/src/yml.ts CHANGED
@@ -9,7 +9,7 @@ const config: eslint.Linter.Config = {
9
9
  files: [
10
10
  Project.extensionsToGlob(
11
11
  // ts only extensions
12
- Project.queryExtensions(['yaml'])
12
+ Project.queryExtensions(['yaml']),
13
13
  ),
14
14
  ],
15
15
  },