@vitus-labs/tools-lint 0.46.0 → 1.0.1-alpha.10

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/lib/index.d.ts CHANGED
@@ -25,7 +25,7 @@ export declare const createEslint: (options?: Options) => ({ rootPath, projects,
25
25
  plugins: string[];
26
26
  parserOptions: {
27
27
  tsconfigRootDir: string;
28
- project: any[];
28
+ project: boolean;
29
29
  ecmaFeatures: {
30
30
  jsx: boolean;
31
31
  };
@@ -67,7 +67,7 @@ export declare const eslint: {
67
67
  plugins: string[];
68
68
  parserOptions: {
69
69
  tsconfigRootDir: string;
70
- project: any[];
70
+ project: boolean;
71
71
  ecmaFeatures: {
72
72
  jsx: boolean;
73
73
  };
@@ -1,6 +1,6 @@
1
- import type { Options } from './types';
2
- declare const loadTsProjects: (projects: any) => any;
3
- declare const loadPlugins: (options: Options) => string[];
4
- declare const loadExtendsConfigs: (options: Options) => string[];
5
- declare const extendObject: (condition: boolean | null | undefined, object?: Record<string, any>) => Record<string, any>;
6
- export { loadTsProjects, loadPlugins, loadExtendsConfigs, extendObject };
1
+ import type { Options } from './types';
2
+ declare const loadTsProjects: (projects: any) => any;
3
+ declare const loadPlugins: (options: Options) => string[];
4
+ declare const loadExtendsConfigs: (options: Options) => string[];
5
+ declare const extendObject: (condition: boolean | null | undefined, object?: Record<string, any>) => Record<string, any>;
6
+ export { loadTsProjects, loadPlugins, loadExtendsConfigs, extendObject };
@@ -1,93 +1,93 @@
1
- import type { Options } from './types';
2
- type Config = Partial<{
3
- rootPath: string;
4
- projects: string[];
5
- extensions: string[];
6
- graphqlClient: 'apollo' | 'relay' | 'lokka' | 'fraql' | 'literal';
7
- scope: string;
8
- config: Record<string, any>;
9
- }>;
10
- declare const createEslint: (options?: Options) => ({ rootPath, projects, extensions, graphqlClient, scope, config, }?: Config) => {
11
- root: boolean;
12
- env: {
13
- browser: boolean;
14
- node: boolean;
15
- es2022: boolean;
16
- };
17
- globals: {
18
- __NODE__: boolean;
19
- __WEB__: boolean;
20
- __BROWSER__: boolean;
21
- __NATIVE__: boolean;
22
- __CLIENT__: boolean;
23
- };
24
- parser: string;
25
- plugins: string[];
26
- parserOptions: {
27
- tsconfigRootDir: string;
28
- project: any[];
29
- ecmaFeatures: {
30
- jsx: boolean;
31
- };
32
- ecmaVersion: string;
33
- sourceType: string;
34
- };
35
- extends: string[];
36
- settings: {
37
- [x: string]: any;
38
- };
39
- rules: {
40
- 'no-unused-vars': string;
41
- 'no-useless-constructor': string;
42
- 'no-shadow': string;
43
- 'no-use-before-define': string;
44
- 'no-param-reassign': (string | {
45
- props: boolean;
46
- ignorePropertyModificationsFor: string[];
47
- })[];
48
- };
49
- overrides: Record<string, any>[];
50
- } & Record<string, any>;
51
- export { createEslint };
52
- declare const _default: {
53
- root: boolean;
54
- env: {
55
- browser: boolean;
56
- node: boolean;
57
- es2022: boolean;
58
- };
59
- globals: {
60
- __NODE__: boolean;
61
- __WEB__: boolean;
62
- __BROWSER__: boolean;
63
- __NATIVE__: boolean;
64
- __CLIENT__: boolean;
65
- };
66
- parser: string;
67
- plugins: string[];
68
- parserOptions: {
69
- tsconfigRootDir: string;
70
- project: any[];
71
- ecmaFeatures: {
72
- jsx: boolean;
73
- };
74
- ecmaVersion: string;
75
- sourceType: string;
76
- };
77
- extends: string[];
78
- settings: {
79
- [x: string]: any;
80
- };
81
- rules: {
82
- 'no-unused-vars': string;
83
- 'no-useless-constructor': string;
84
- 'no-shadow': string;
85
- 'no-use-before-define': string;
86
- 'no-param-reassign': (string | {
87
- props: boolean;
88
- ignorePropertyModificationsFor: string[];
89
- })[];
90
- };
91
- overrides: Record<string, any>[];
92
- } & Record<string, any>;
93
- export default _default;
1
+ import type { Options } from './types';
2
+ type Config = Partial<{
3
+ rootPath: string;
4
+ projects: string[];
5
+ extensions: string[];
6
+ graphqlClient: 'apollo' | 'relay' | 'lokka' | 'fraql' | 'literal';
7
+ scope: string;
8
+ config: Record<string, any>;
9
+ }>;
10
+ declare const createEslint: (options?: Options) => ({ rootPath, projects, extensions, graphqlClient, scope, config, }?: Config) => {
11
+ root: boolean;
12
+ env: {
13
+ browser: boolean;
14
+ node: boolean;
15
+ es2022: boolean;
16
+ };
17
+ globals: {
18
+ __NODE__: boolean;
19
+ __WEB__: boolean;
20
+ __BROWSER__: boolean;
21
+ __NATIVE__: boolean;
22
+ __CLIENT__: boolean;
23
+ };
24
+ parser: string;
25
+ plugins: string[];
26
+ parserOptions: {
27
+ tsconfigRootDir: string;
28
+ project: boolean;
29
+ ecmaFeatures: {
30
+ jsx: boolean;
31
+ };
32
+ ecmaVersion: string;
33
+ sourceType: string;
34
+ };
35
+ extends: string[];
36
+ settings: {
37
+ [x: string]: any;
38
+ };
39
+ rules: {
40
+ 'no-unused-vars': string;
41
+ 'no-useless-constructor': string;
42
+ 'no-shadow': string;
43
+ 'no-use-before-define': string;
44
+ 'no-param-reassign': (string | {
45
+ props: boolean;
46
+ ignorePropertyModificationsFor: string[];
47
+ })[];
48
+ };
49
+ overrides: Record<string, any>[];
50
+ } & Record<string, any>;
51
+ export { createEslint };
52
+ declare const _default: {
53
+ root: boolean;
54
+ env: {
55
+ browser: boolean;
56
+ node: boolean;
57
+ es2022: boolean;
58
+ };
59
+ globals: {
60
+ __NODE__: boolean;
61
+ __WEB__: boolean;
62
+ __BROWSER__: boolean;
63
+ __NATIVE__: boolean;
64
+ __CLIENT__: boolean;
65
+ };
66
+ parser: string;
67
+ plugins: string[];
68
+ parserOptions: {
69
+ tsconfigRootDir: string;
70
+ project: boolean;
71
+ ecmaFeatures: {
72
+ jsx: boolean;
73
+ };
74
+ ecmaVersion: string;
75
+ sourceType: string;
76
+ };
77
+ extends: string[];
78
+ settings: {
79
+ [x: string]: any;
80
+ };
81
+ rules: {
82
+ 'no-unused-vars': string;
83
+ 'no-useless-constructor': string;
84
+ 'no-shadow': string;
85
+ 'no-use-before-define': string;
86
+ 'no-param-reassign': (string | {
87
+ props: boolean;
88
+ ignorePropertyModificationsFor: string[];
89
+ })[];
90
+ };
91
+ overrides: Record<string, any>[];
92
+ } & Record<string, any>;
93
+ export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/eslint/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,KAAK,MAAM,GAAG,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,aAAa,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAA;IACjE,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC5B,CAAC,CAAA;AAEF,QAAA,MAAM,YAAY,aACL,OAAO,0EAQf,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAuQR,CAAA;AAEH,OAAO,EAAE,YAAY,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACvB,wBAA+B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/eslint/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,KAAK,MAAM,GAAG,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,aAAa,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAA;IACjE,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC5B,CAAC,CAAA;AAEF,QAAA,MAAM,YAAY,aACL,OAAO,0EAQf,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAwQR,CAAA;AAEH,OAAO,EAAE,YAAY,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACvB,wBAA+B"}
@@ -1,10 +1,10 @@
1
- export type Options = Partial<{
2
- import: boolean;
3
- react: boolean;
4
- typescript: boolean;
5
- a11y: boolean;
6
- markdown: boolean;
7
- prettier: boolean;
8
- graphql: boolean;
9
- jest: boolean;
10
- }>;
1
+ export type Options = Partial<{
2
+ import: boolean;
3
+ react: boolean;
4
+ typescript: boolean;
5
+ a11y: boolean;
6
+ markdown: boolean;
7
+ prettier: boolean;
8
+ graphql: boolean;
9
+ jest: boolean;
10
+ }>;
@@ -1,3 +1,3 @@
1
- import eslint, { createEslint } from "./eslint";
2
- import styles from "./styles";
3
- export { eslint, styles, createEslint };
1
+ import eslint, { createEslint } from "./eslint";
2
+ import styles from "./styles";
3
+ export { eslint, styles, createEslint };
@@ -1,5 +1,5 @@
1
- declare const _default: {
2
- processors: string[];
3
- extends: string[];
4
- };
5
- export default _default;
1
+ declare const _default: {
2
+ processors: string[];
3
+ extends: string[];
4
+ };
5
+ export default _default;