@abinnovision/eslint-config-base 2.2.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 +23 -0
- package/README.md +81 -5
- package/dist/index.cjs +787 -27
- package/dist/index.d.cts +46 -71
- package/dist/index.d.ts +46 -71
- package/dist/index.js +779 -28
- package/package.json +22 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.0.1](https://github.com/abinnovision/js-commons/compare/eslint-config-base-v3.0.0...eslint-config-base-v3.0.1) (2025-11-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* trigger synthetic patch release for all packages ([0a42ee3](https://github.com/abinnovision/js-commons/commit/0a42ee36601f88ff232a41a8682266543849b3c6))
|
|
9
|
+
|
|
10
|
+
## [3.0.0](https://github.com/abinnovision/js-commons/compare/eslint-config-base-v2.2.0...eslint-config-base-v3.0.0) (2025-11-08)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ⚠ BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
* refactor eslint config with new base configs and add flavours
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* refactor eslint config with new base configs and add flavours ([581cfce](https://github.com/abinnovision/js-commons/commit/581cfceac98653d5b6f88a16f7807541b49320c8))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* migrate eslint configs to use defineConfig ([#541](https://github.com/abinnovision/js-commons/issues/541)) ([eb24dca](https://github.com/abinnovision/js-commons/commit/eb24dca423b594711b727da84f4c4026f781c9e4))
|
|
25
|
+
|
|
3
26
|
## [2.2.0](https://github.com/abinnovision/js-commons/compare/eslint-config-base-v2.1.2...eslint-config-base-v2.2.0) (2024-10-24)
|
|
4
27
|
|
|
5
28
|
|
package/README.md
CHANGED
|
@@ -1,12 +1,88 @@
|
|
|
1
1
|
# @abinnovision/eslint-config-base
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
standalone. This config is based on the
|
|
5
|
-
[AlloyTeam ESLint Config](https://github.com/AlloyTeam/eslint-config-alloy) with
|
|
6
|
-
some additional goodies on top.
|
|
3
|
+
ESLint configuration for JavaScript and TypeScript projects.
|
|
7
4
|
|
|
8
5
|
## Installation
|
|
9
6
|
|
|
10
7
|
```shell
|
|
11
|
-
yarn add --dev @abinnovision/eslint-config-base
|
|
8
|
+
yarn add --dev @abinnovision/eslint-config-base eslint
|
|
12
9
|
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```javascript
|
|
14
|
+
// eslint.config.js
|
|
15
|
+
import { base } from "@abinnovision/eslint-config-base";
|
|
16
|
+
|
|
17
|
+
export default [{ extends: [base] }];
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### TypeScript Configuration
|
|
21
|
+
|
|
22
|
+
If your `tsconfig.json` is not in the project root:
|
|
23
|
+
|
|
24
|
+
```javascript
|
|
25
|
+
// eslint.config.js
|
|
26
|
+
import { base } from "@abinnovision/eslint-config-base";
|
|
27
|
+
|
|
28
|
+
export default [
|
|
29
|
+
{
|
|
30
|
+
extends: [base],
|
|
31
|
+
languageOptions: {
|
|
32
|
+
parserOptions: {
|
|
33
|
+
project: "./path/to/tsconfig.json",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Flavours
|
|
41
|
+
|
|
42
|
+
Specialized configurations for specific project types.
|
|
43
|
+
|
|
44
|
+
### NestJS
|
|
45
|
+
|
|
46
|
+
For NestJS applications with dependency injection patterns.
|
|
47
|
+
|
|
48
|
+
```javascript
|
|
49
|
+
import { nestjs } from "@abinnovision/eslint-config-base";
|
|
50
|
+
|
|
51
|
+
export default [{ extends: [nestjs] }];
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Vitest
|
|
55
|
+
|
|
56
|
+
For test files using Vitest.
|
|
57
|
+
|
|
58
|
+
```javascript
|
|
59
|
+
import { base, vitest } from "@abinnovision/eslint-config-base";
|
|
60
|
+
|
|
61
|
+
export default [{ extends: [base] }, { extends: [vitest] }];
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Config Files
|
|
65
|
+
|
|
66
|
+
For build tool and project configuration files. Does not specify file patterns.
|
|
67
|
+
|
|
68
|
+
```javascript
|
|
69
|
+
import { base, configFiles } from "@abinnovision/eslint-config-base";
|
|
70
|
+
|
|
71
|
+
export default [
|
|
72
|
+
{ extends: [base] },
|
|
73
|
+
{
|
|
74
|
+
files: ["**/*.config.{ts,js}"],
|
|
75
|
+
extends: [configFiles],
|
|
76
|
+
},
|
|
77
|
+
];
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Related Packages
|
|
81
|
+
|
|
82
|
+
- [@abinnovision/eslint-config-react](../eslint-config-react) - React
|
|
83
|
+
configuration
|
|
84
|
+
- [@abinnovision/prettier-config](../prettier-config) - Code formatting
|
|
85
|
+
|
|
86
|
+
## License
|
|
87
|
+
|
|
88
|
+
Apache-2.0
|