@jsse/eslint-config 0.3.4 → 0.3.6

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,17 @@
1
1
  # @jsse/eslint-config
2
2
 
3
+ ## 0.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - update tsconfig sorter
8
+
9
+ ## 0.3.5
10
+
11
+ ### Patch Changes
12
+
13
+ - d4ad81c: project-service for ts over old project
14
+
3
15
  ## 0.3.4
4
16
 
5
17
  ### Patch Changes
package/dist/cli.js CHANGED
@@ -588,7 +588,7 @@ var CAC = class extends EventEmitter {
588
588
  var cac = (name = "") => new CAC(name);
589
589
 
590
590
  // src/generated/version.ts
591
- var VERSION = "0.3.4";
591
+ var VERSION = "0.3.6";
592
592
 
593
593
  // src/cli.ts
594
594
  var cli = cac("jsselint");
@@ -46,6 +46,7 @@ export const sortTsconfig = async (options) => {
46
46
  "useDefineForClassFields",
47
47
  "emitDecoratorMetadata",
48
48
  "experimentalDecorators",
49
+ "libReplacement",
49
50
  /* Modules */
50
51
  "baseUrl",
51
52
  "rootDir",
@@ -116,9 +117,11 @@ export const sortTsconfig = async (options) => {
116
117
  "allowSyntheticDefaultImports",
117
118
  "esModuleInterop",
118
119
  "forceConsistentCasingInFileNames",
120
+ "isolatedDeclarations",
119
121
  "isolatedModules",
120
122
  "preserveSymlinks",
121
123
  "verbatimModuleSyntax",
124
+ "erasableSyntaxOnly",
122
125
  /* Completeness */
123
126
  "skipDefaultLibCheck",
124
127
  "skipLibCheck",
@@ -1,4 +1,5 @@
1
1
  import process from "node:process";
2
+ import { debug } from "src/lager.js";
2
3
  import { GLOB_MARKDOWN, GLOB_TS, GLOB_TSX } from "../../globs.js";
3
4
  import { parserTs } from "../../plugins.js";
4
5
  function autoUseParserService(options) {
@@ -16,6 +17,7 @@ export function typescriptParser(options) {
16
17
  const { componentExts = [], filesTypeAware: files = [GLOB_TS, GLOB_TSX], ignoresTypeAware: ignores = [GLOB_MARKDOWN], name, parserOptions: parserOptionsOverride = {}, react, tsconfig, useProjectService = autoUseParserService(options), } = options;
17
18
  const typeAware = !!tsconfig;
18
19
  if (useProjectService) {
20
+ debug("ts parser-options using `projectService`project service");
19
21
  return {
20
22
  files,
21
23
  ...(ignores ? { ignores } : {}),
@@ -29,7 +31,8 @@ export function typescriptParser(options) {
29
31
  ? {
30
32
  projectService: {
31
33
  allowDefaultProject: ["*.js"],
32
- defaultProject: tsconfig,
34
+ defaultProject: (typeof tsconfig === "string" ? tsconfig : tsconfig[0]) ??
35
+ "tsconfig.json",
33
36
  },
34
37
  tsconfigRootDir: process.cwd().replaceAll("\\", "/"),
35
38
  }
@@ -41,6 +44,7 @@ export function typescriptParser(options) {
41
44
  name: name ?? `jsse/typescript/${typeAware ? "type-aware-parser" : "parser"}`,
42
45
  };
43
46
  }
47
+ debug("ts parser-options NOT using `projectService`project service - using `project`");
44
48
  return {
45
49
  files,
46
50
  ...(ignores ? { ignores } : {}),
@@ -235,7 +235,6 @@ export const fixableRules = {
235
235
  "@typescript-eslint/no-meaningless-void-operator",
236
236
  "@typescript-eslint/no-restricted-types",
237
237
  "@typescript-eslint/no-unnecessary-boolean-literal-compare",
238
- "@typescript-eslint/no-unnecessary-condition",
239
238
  "@typescript-eslint/no-unnecessary-qualifier",
240
239
  "@typescript-eslint/no-unnecessary-template-expression",
241
240
  "@typescript-eslint/no-unnecessary-type-arguments",
@@ -1 +1 @@
1
- export declare const VERSION = "0.3.4";
1
+ export declare const VERSION = "0.3.6";
@@ -1 +1 @@
1
- export const VERSION = "0.3.4";
1
+ export const VERSION = "0.3.6";
@@ -1,3 +1,5 @@
1
+ import Debug from "debug";
2
+ export declare const debug: Debug.Debugger;
1
3
  declare const LAGER_LEVELS: {
2
4
  readonly trace: 10;
3
5
  readonly debug: 20;
package/dist/esm/lager.js CHANGED
@@ -1,5 +1,7 @@
1
1
  /* eslint-disable no-console */
2
2
  /* eslint-disable perfectionist/sort-objects */
3
+ import Debug from "debug";
4
+ export const debug = Debug("jsse:eslint-config");
3
5
  const LAGER_LEVELS = {
4
6
  trace: 10,
5
7
  debug: 20,