@abinnovision/eslint-config-base 3.0.0 → 3.0.1
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 +7 -0
- package/dist/index.cjs +886 -0
- package/dist/index.d.cts +48 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +846 -0
- package/package.json +2 -2
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Base ESLint Configuration
|
|
5
|
+
*/
|
|
6
|
+
declare const config$3: eslint_config.Config[];
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* ESLint configuration for build tool and project configuration files.
|
|
10
|
+
*
|
|
11
|
+
* This configuration does not specify file patterns - consumers decide which
|
|
12
|
+
* files to apply this to (e.g., vite.config.ts, webpack.config.js, etc.).
|
|
13
|
+
*
|
|
14
|
+
* Usage example:
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import { base, configFiles } from "@abinnovision/eslint-config-base";
|
|
17
|
+
*
|
|
18
|
+
* export default [
|
|
19
|
+
* { extends: [base] },
|
|
20
|
+
* {
|
|
21
|
+
* files: ["**\/*.config.{ts,js}", "vite.config.ts"],
|
|
22
|
+
* extends: [configFiles],
|
|
23
|
+
* }
|
|
24
|
+
* ];
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
declare const config$2: eslint_config.Config[];
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* ESLint configuration tailored for NestJS projects.
|
|
31
|
+
* Adjusts rules to accommodate NestJS patterns, especially for dependency injection.
|
|
32
|
+
*
|
|
33
|
+
* NOTE: This configuration is meant to be used in conjunction with
|
|
34
|
+
* the base TypeScript ESLint configuration.
|
|
35
|
+
*/
|
|
36
|
+
declare const config$1: eslint_config.Config[];
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* ESLint configuration tailored for Vitest test files.
|
|
40
|
+
* Relaxes strict rules to accommodate common testing patterns while adding
|
|
41
|
+
* Vitest-specific linting rules.
|
|
42
|
+
*
|
|
43
|
+
* NOTE: This configuration is meant to be used in conjunction with
|
|
44
|
+
* the base TypeScript ESLint configuration.
|
|
45
|
+
*/
|
|
46
|
+
declare const config: eslint_config.Config[];
|
|
47
|
+
|
|
48
|
+
export { config$3 as base, config$2 as configFiles, config$1 as nestjs, config as vitest };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Base ESLint Configuration
|
|
5
|
+
*/
|
|
6
|
+
declare const config$3: eslint_config.Config[];
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* ESLint configuration for build tool and project configuration files.
|
|
10
|
+
*
|
|
11
|
+
* This configuration does not specify file patterns - consumers decide which
|
|
12
|
+
* files to apply this to (e.g., vite.config.ts, webpack.config.js, etc.).
|
|
13
|
+
*
|
|
14
|
+
* Usage example:
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import { base, configFiles } from "@abinnovision/eslint-config-base";
|
|
17
|
+
*
|
|
18
|
+
* export default [
|
|
19
|
+
* { extends: [base] },
|
|
20
|
+
* {
|
|
21
|
+
* files: ["**\/*.config.{ts,js}", "vite.config.ts"],
|
|
22
|
+
* extends: [configFiles],
|
|
23
|
+
* }
|
|
24
|
+
* ];
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
declare const config$2: eslint_config.Config[];
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* ESLint configuration tailored for NestJS projects.
|
|
31
|
+
* Adjusts rules to accommodate NestJS patterns, especially for dependency injection.
|
|
32
|
+
*
|
|
33
|
+
* NOTE: This configuration is meant to be used in conjunction with
|
|
34
|
+
* the base TypeScript ESLint configuration.
|
|
35
|
+
*/
|
|
36
|
+
declare const config$1: eslint_config.Config[];
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* ESLint configuration tailored for Vitest test files.
|
|
40
|
+
* Relaxes strict rules to accommodate common testing patterns while adding
|
|
41
|
+
* Vitest-specific linting rules.
|
|
42
|
+
*
|
|
43
|
+
* NOTE: This configuration is meant to be used in conjunction with
|
|
44
|
+
* the base TypeScript ESLint configuration.
|
|
45
|
+
*/
|
|
46
|
+
declare const config: eslint_config.Config[];
|
|
47
|
+
|
|
48
|
+
export { config$3 as base, config$2 as configFiles, config$1 as nestjs, config as vitest };
|