@eslinted/core 4.0.5-rc.0 → 4.0.5-rc.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "20.18.0-core.0",
3
3
  "name": "@eslinted/core",
4
- "version": "4.0.5-rc.0",
4
+ "version": "4.0.5-rc.1",
5
5
  "description": "Core ESLint flat config factory npm package `linted`.",
6
6
  "keywords": [],
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
@@ -17,16 +17,6 @@
17
17
  ".": {
18
18
  "types": "./dist/index.d.ts",
19
19
  "default": "./dist/index.js"
20
- },
21
- "./input": {
22
- "types": "./dist/input.d.ts"
23
- },
24
- "./scopes": {
25
- "types": "./dist/scopes.d.ts",
26
- "default": "./dist/scopes.js"
27
- },
28
- "./output": {
29
- "types": "./dist/output.d.ts"
30
20
  }
31
21
  },
32
22
  "config": {
@@ -1,5 +1,5 @@
1
- import type { Scope } from "@eslinted/core/scopes";
2
- import type { Input } from "@eslinted/core/input";
1
+ import type { Scope } from "@eslinted/core";
2
+ import type { Input } from "@eslinted/core";
3
3
 
4
4
  export class Files {
5
5
  constructor(private readonly input: Input["files"]) {}
@@ -1,6 +1,6 @@
1
- import type { Input } from "@eslinted/core/input";
2
- import type { Scope } from "@eslinted/core/scopes";
3
- import type { Output } from "@eslinted/core/output";
1
+ import type { Input } from "@eslinted/core";
2
+ import type { Scope } from "@eslinted/core";
3
+ import type { Output } from "@eslinted/core";
4
4
  import type { Ruleset } from "../../ruleset";
5
5
  import type {
6
6
  OptionTemplate,
@@ -1,5 +1,5 @@
1
- import type { Input } from "@eslinted/core/input";
2
- import type { Scope } from "@eslinted/core/scopes";
1
+ import type { Input } from "@eslinted/core";
2
+ import type { Scope } from "@eslinted/core";
3
3
  import { Rule } from "./rule";
4
4
 
5
5
  export { Rule };
@@ -1,4 +1,4 @@
1
- import type { Input } from "@eslinted/core/input";
1
+ import type { Input } from "@eslinted/core";
2
2
 
3
3
  export class Rule {
4
4
  constructor(
@@ -1,5 +1,5 @@
1
- import type { Input } from "@eslinted/core/input";
2
- import type { Scope } from "@eslinted/core/scopes";
1
+ import type { Input } from "@eslinted/core";
2
+ import type { Scope } from "@eslinted/core";
3
3
  import { Ruleset, Rule } from "./ruleset";
4
4
 
5
5
  export class Rulesets {
package/src/index.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  import type { Input } from "./input";
2
2
  import type { Scope } from "./scopes";
3
3
  import type { Output } from "./output";
4
+
5
+ export type { Input, Scope, Output };
6
+
4
7
  import { scopes } from "./scopes";
5
8
  import {
6
9
  Files,
@@ -1,3 +1,3 @@
1
- import type { Scope } from "@eslinted/core/scopes";
1
+ import type { Scope } from "@eslinted/core";
2
2
 
3
3
  export type Base = Readonly<Record<Scope, readonly string[]>>;
@@ -1,4 +1,4 @@
1
- import type { Scope } from "@eslinted/core/scopes";
1
+ import type { Scope } from "@eslinted/core";
2
2
 
3
3
  export type Parsers = Scope
4
4
  & (
@@ -1,4 +1,4 @@
1
- import type { Scope } from "@eslinted/core/scopes";
1
+ import type { Scope } from "@eslinted/core";
2
2
  import type { Preset } from "./preset";
3
3
 
4
4
  export type Overrides = Readonly<Partial<Record<Scope, Preset[Scope][number][1]>>>;
@@ -1,4 +1,4 @@
1
- import type { Scope } from "@eslinted/core/scopes";
1
+ import type { Scope } from "@eslinted/core";
2
2
  import type { RuleEntry } from "./entry";
3
3
 
4
4
  export type Preset = Readonly<Record<Scope, readonly RuleEntry[]>>;