@petbee/eslint-config 2.0.13 → 2.0.14

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/index.js CHANGED
@@ -18,7 +18,6 @@ module.exports = {
18
18
  './rules/imports.js',
19
19
  './rules/tests.js',
20
20
  './rules/typescript.js',
21
- './rules/nestjs.js',
22
21
  ],
23
22
  root: true,
24
23
  env: {
package/index.mjs CHANGED
@@ -30,7 +30,7 @@ const ignoreConfig = {
30
30
  ignores: ['coverage', 'dist', '**/dist/', 'node_modules', '**/node_modules'],
31
31
  }
32
32
 
33
- export default tsLint.config(
33
+ const eslintFlatConfig = tsLint.config(
34
34
  ignoreConfig,
35
35
  ...(hasTypescript ? [] : [jsLint.configs.recommended]),
36
36
  ...getFlat(typescriptConfig),
@@ -42,6 +42,11 @@ export default tsLint.config(
42
42
  ...getFlat(variablesConfig),
43
43
  ...getFlat(bestPracticesConfig),
44
44
  ...getFlat(importsConfig),
45
- ...getFlat(testsConfig),
46
- ...getFlat(nestjsConfig)
45
+ ...getFlat(testsConfig)
47
46
  )
47
+
48
+ const nestjsEslintFlatConfig = nestjsConfig.flat
49
+
50
+ export { nestjsEslintFlatConfig, eslintFlatConfig }
51
+
52
+ export default eslintFlatConfig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petbee/eslint-config",
3
- "version": "2.0.13",
3
+ "version": "2.0.14",
4
4
  "description": "Petbee's eslint config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "7bd18dff6b637dc709f25a85e449dda98a4f91a9"
84
+ "gitHead": "7620d675794a985ac47570248038304617b45af0"
85
85
  }
package/rules/nestjs.js CHANGED
@@ -46,12 +46,4 @@ const nestFlat = hasNestJs
46
46
  ]
47
47
  : []
48
48
 
49
- module.exports = hasNestJs
50
- ? {
51
- extends: ['plugin:@darraghor/nestjs-typed/recommended'],
52
- plugins: [nestjsLint.classicPlugin],
53
- rules: nestjsRules,
54
- }
55
- : {}
56
-
57
49
  module.exports.flat = nestFlat