@cenk1cenk2/eslint-config 2.5.3 → 2.5.4

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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## [2.5.4](https://github.com/cenk1cenk2/eslint-config/compare/v2.5.3...v2.5.4) (2022-02-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update function ([1f44e37](https://github.com/cenk1cenk2/eslint-config/commit/1f44e37062366c67ea001c86f8be3ebc4d3f0eb9))
7
+ * update utils ([3beeab4](https://github.com/cenk1cenk2/eslint-config/commit/3beeab4756c1a517e9d65e4137f0e041daee70c1))
8
+
1
9
  ## [2.5.3](https://github.com/cenk1cenk2/eslint-config/compare/v2.5.2...v2.5.3) (2022-02-01)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/eslint-config",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "Eslint configuration for my taste.",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/cenk1cenk2/eslint-config",
@@ -4,10 +4,10 @@ const { loadTsConfig } = require('load-tsconfig')
4
4
  * @param {{ paths?: string[] tsconfig?: string, tsconfigDir?: string}} options
5
5
  * @returns {import("eslint").Linter.Config['rules']}
6
6
  */
7
- function generateImportPluginGroupCases (options) {
7
+ function generateImportGroups (options) {
8
8
  const defaults = [ '@cenk1cenk2', '@cenk1cenk2-*' ]
9
9
 
10
- options.paths = options.paths ? options.paths.push(...defaults) : defaults
10
+ options.paths = Array.isArray(options.paths) ? [ ...options.paths, ...defaults ] : defaults
11
11
 
12
12
  /** @type {string[]} */
13
13
  let tsConfigPaths = []
@@ -68,4 +68,4 @@ function generateImportPluginGroupCases (options) {
68
68
  }
69
69
  }
70
70
 
71
- module.exports = generateImportPluginGroupCases
71
+ module.exports = { generateImportGroups }