@jsse/eslint-config 0.3.3 → 0.3.5
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 +12 -0
- package/dist/cli.js +1 -1
- package/dist/esm/configs/ts/parser.js +5 -1
- package/dist/esm/fixable.js +0 -1
- package/dist/esm/generated/version.d.ts +1 -1
- package/dist/esm/generated/version.js +1 -1
- package/dist/esm/lager.d.ts +2 -0
- package/dist/esm/lager.js +2 -0
- package/dist/index.d.ts +401 -340
- package/dist/index.js +10 -4
- package/package.json +27 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @jsse/eslint-config
|
|
2
2
|
|
|
3
|
+
## 0.3.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d4ad81c: project-service for ts over old project
|
|
8
|
+
|
|
9
|
+
## 0.3.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 792877b: remove define config estlint which is deprecated
|
|
14
|
+
|
|
3
15
|
## 0.3.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cli.js
CHANGED
|
@@ -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 } : {}),
|
package/dist/esm/fixable.js
CHANGED
|
@@ -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.
|
|
1
|
+
export declare const VERSION = "0.3.5";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.3.
|
|
1
|
+
export const VERSION = "0.3.5";
|
package/dist/esm/lager.d.ts
CHANGED