@tb-dev/eslint-config 10.0.9 → 10.0.11

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.
@@ -10,7 +10,7 @@ export interface ConfigOptions {
10
10
  features?: FeaturesObject | (keyof FeaturesObject)[] | boolean;
11
11
  /** `tsconfig.json` files for TypeScript. */
12
12
  project: string[];
13
- ignores?: Ignores['ignores'];
13
+ ignores?: Ignores["ignores"];
14
14
  overrides?: {
15
15
  javascript?: Rules;
16
16
  perfectionist?: Rules;
@@ -38,10 +38,10 @@ export interface ConfigOptions {
38
38
  export interface Ignores {
39
39
  ignores: string[];
40
40
  }
41
- export type Severity = 'error' | 'warn' | 'off' | 0 | 1;
41
+ export type Severity = "error" | "warn" | "off" | 0 | 1;
42
42
  export type Rules = Record<string, Severity | any[]>;
43
43
  interface TypeOrValueSpecifier {
44
- from: 'file' | 'lib' | 'package';
44
+ from: "file" | "lib" | "package";
45
45
  name: string | string[];
46
46
  package?: string;
47
47
  path?: string;
@@ -51,13 +51,13 @@ export type KnownSafeCalls = TypeOrValueSpecifier;
51
51
  /** @see https://eslint.org/docs/latest/use/configure/configuration-files-new#configuration-objects */
52
52
  export interface ConfigObject {
53
53
  files: string[];
54
- ignores?: Ignores['ignores'];
54
+ ignores?: Ignores["ignores"];
55
55
  languageOptions?: {
56
- ecmaVersion?: 'latest';
57
- globals?: Record<string, boolean | 'readonly' | 'writeable'>;
56
+ ecmaVersion?: "latest";
57
+ globals?: Record<string, boolean | "readonly" | "writeable">;
58
58
  parser?: unknown;
59
59
  parserOptions?: Record<string, unknown>;
60
- sourceType?: 'module';
60
+ sourceType?: "module";
61
61
  };
62
62
  plugins?: Record<string, unknown>;
63
63
  processor?: unknown;
@@ -1,7 +1,7 @@
1
1
  import { ConfigOptions, FeaturesObject, Rules, Severity } from '../types';
2
2
  export * from './enum';
3
3
  export declare function interopDefault(promise: Promise<any>): Promise<unknown>;
4
- export declare function isEnabled(config: ConfigOptions['features'], feature: keyof FeaturesObject): boolean;
4
+ export declare function isEnabled(config: ConfigOptions["features"], feature: keyof FeaturesObject): boolean;
5
5
  export declare function json<T>(path: string): Promise<T>;
6
6
  export declare function getIgnores(): string[];
7
7
  export declare function mapRules(rules: Rules, fn: (rule: string, value: any[] | Severity) => [string, any[] | Severity]): Rules;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/eslint-config",
3
- "version": "10.0.9",
3
+ "version": "10.0.11",
4
4
  "description": "ESLint config",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,21 +19,21 @@
19
19
  "eslint-config"
20
20
  ],
21
21
  "dependencies": {
22
- "@typescript-eslint/eslint-plugin": "^8.59.1",
23
- "@typescript-eslint/parser": "^8.59.1",
22
+ "@typescript-eslint/eslint-plugin": "^8.59.3",
23
+ "@typescript-eslint/parser": "^8.59.3",
24
24
  "eslint-plugin-perfectionist": "^5.9.0",
25
25
  "eslint-plugin-unicorn": "^64.0.0",
26
- "eslint-plugin-vue": "^10.9.0",
26
+ "eslint-plugin-vue": "^10.9.1",
27
27
  "globals": "^17.6.0",
28
28
  "vue-eslint-parser": "^10.4.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@types/node": "^25.6.0",
32
- "eslint": "^10.3.0",
31
+ "@types/node": "^25.8.0",
32
+ "eslint": "^10.4.0",
33
33
  "tslib": "^2.8.1",
34
34
  "typescript": "^6.0.3",
35
35
  "unplugin-dts": "^1.0.0",
36
- "vite": "^8.0.10"
36
+ "vite": "^8.0.13"
37
37
  },
38
38
  "files": [
39
39
  "dist"