@borela-tech/eslint-config 2.4.0 → 2.4.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/README.md +3 -3
- package/jest.config.ts +1 -6
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Shared ESLint configuration for Borela Tech projects.
|
|
|
17
17
|
- [React Hooks](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)
|
|
18
18
|
- [Stylistic](https://github.com/eslint-stylistic/eslint-stylistic)
|
|
19
19
|
- [TypeScript ESLint](https://typescript-eslint.io/)
|
|
20
|
-
- [Unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
|
|
20
|
+
- [Unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
|
|
21
21
|
- 17 custom rules for consistent code organization:
|
|
22
22
|
- [`brace-style-control-statements`](#brace-style-control-statements)
|
|
23
23
|
- [`export-filename-match`](#export-filename-match)
|
|
@@ -49,8 +49,8 @@ Create a file named `eslint.config.ts` in the root of your project and add the
|
|
|
49
49
|
following code:
|
|
50
50
|
|
|
51
51
|
```typescript
|
|
52
|
-
import {
|
|
53
|
-
export default
|
|
52
|
+
import {config} from '@borela-tech/eslint-config'
|
|
53
|
+
export {config as default}
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
## Custom Rules
|
package/jest.config.ts
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import type {Config} from 'jest'
|
|
2
2
|
|
|
3
3
|
const config: Config = {
|
|
4
|
-
extensionsToTreatAsEsm: ['.ts'],
|
|
5
4
|
moduleNameMapper: {
|
|
6
5
|
'^@lib/(.*)$': '<rootDir>/src/lib/$1',
|
|
7
6
|
},
|
|
8
|
-
preset: 'ts-jest/presets/default-esm',
|
|
9
7
|
testEnvironment: 'node',
|
|
10
8
|
testMatch: ['**/__tests__/**/*.test.ts'],
|
|
11
9
|
transform: {
|
|
12
|
-
'^.+\\.tsx?$':
|
|
13
|
-
'ts-jest',
|
|
14
|
-
{useESM: true},
|
|
15
|
-
],
|
|
10
|
+
'^.+\\.tsx?$': '@swc/jest',
|
|
16
11
|
},
|
|
17
12
|
}
|
|
18
13
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@borela-tech/eslint-config",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "ESLint config used in Borela Tech projects.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "./bin/build",
|
|
@@ -43,13 +43,14 @@
|
|
|
43
43
|
"typescript-eslint": "^8.56.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
+
"@swc/jest": "^0.2.39",
|
|
46
47
|
"@types/jest": "^30.0.0",
|
|
47
48
|
"@types/node": "^24.12.0",
|
|
48
49
|
"@typescript-eslint/rule-tester": "^8.57.1",
|
|
49
50
|
"@typescript-eslint/utils": "^8.57.1",
|
|
50
51
|
"eslint": "^9.24.0",
|
|
51
52
|
"jest": "^30.3.0",
|
|
52
|
-
"
|
|
53
|
+
"jiti": "^2.6.1",
|
|
53
54
|
"typescript": "~5.9.3",
|
|
54
55
|
"vite": "^6.3.5",
|
|
55
56
|
"vite-plugin-dts": "^4.5.3"
|