@effect-app/eslint-shared-config 0.0.10 → 0.0.12

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,5 +1,19 @@
1
1
  # @effect-app/eslint-shared-config
2
2
 
3
+ ## 0.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - 885a76f: enableTS is now defined again
8
+ - @effect-app/eslint-codegen-model@1.42.3
9
+
10
+ ## 0.0.11
11
+
12
+ ### Patch Changes
13
+
14
+ - 3454a27: enable projectService only when ENV var is set
15
+ - @effect-app/eslint-codegen-model@1.42.3
16
+
3
17
  ## 0.0.10
4
18
 
5
19
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-app/eslint-shared-config",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "Shared flat ESLint base & vue configs for effect-app monorepo",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -65,8 +65,8 @@ export function baseConfig(dirName, forceTS = false, project = undefined) {
65
65
  parser: tsParser,
66
66
  parserOptions: {
67
67
  extraFileExtensions: [".vue"], // should be the same as vue config for perfomance reasons (https://typescript-eslint.io/troubleshooting/typed-linting/performance#project-service-issues)
68
- ...({
69
- tsconfigRootDir: dirName,
68
+ tsconfigRootDir: dirName,
69
+ ...(enableTS && {
70
70
  projectService: true
71
71
  })
72
72
  }
@@ -21,7 +21,7 @@ export function vueConfig(dirName, forceTS = false, dprintConfigFile ) {
21
21
  if (!dprintConfigFile) dprintConfigFile = DEFAULT_DPRINT_CONFIG
22
22
  console.log("Using dprint config file:", dprintConfigFile)
23
23
 
24
- // const enableTS = !!dirName && (forceTS || process.env["ESLINT_TS"])
24
+ const enableTS = !!dirName && (forceTS || process.env["ESLINT_TS"])
25
25
 
26
26
  return [
27
27
  ...baseConfig(dirName, forceTS),
@@ -41,9 +41,9 @@ export function vueConfig(dirName, forceTS = false, dprintConfigFile ) {
41
41
  "ts": tseslint.parser,
42
42
  "js": tseslint.parser,
43
43
  },
44
- ...({
44
+ tsconfigRootDir: dirName,
45
+ ...(enableTS && {
45
46
  projectService: true,
46
- tsconfigRootDir: dirName,
47
47
  }),
48
48
  extraFileExtensions: [".vue"]
49
49
  }