@ttoss/config 1.35.1 → 1.35.3

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.
Files changed (2) hide show
  1. package/README.md +5 -21
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -29,12 +29,12 @@ const { prettierConfig } = require('@ttoss/config');
29
29
  module.exports = prettierConfig();
30
30
  ```
31
31
 
32
- Create the `.eslintrc.js` file and add the following configuration:
32
+ Create the `eslint.config.mjs` file and add the following configuration:
33
33
 
34
- ```js title=".eslintrc.js"
35
- module.exports = {
36
- extends: '@ttoss/eslint-config',
37
- };
34
+ ```js title="eslint.config.mjs"
35
+ import ttossEslintConfig from '@ttoss/eslint-config';
36
+
37
+ export default [...ttossEslintConfig];
38
38
  ```
39
39
 
40
40
  ### Husky, commitlint, and lint-staged
@@ -76,24 +76,8 @@ pnpm husky add .husky/pre-commit "pnpm lint-staged"
76
76
 
77
77
  You can use configs below to your packages folders.
78
78
 
79
- ### Babel
80
-
81
- Add the `babel.config.js` file on the package folder:
82
-
83
- ```js title="babel.config.js"
84
- const { babelConfig } = require('@ttoss/config');
85
-
86
- module.exports = babelConfig();
87
- ```
88
-
89
79
  ### Jest
90
80
 
91
- Install [Jest](https://jestjs.io/) and its types on your package:
92
-
93
- ```shell
94
- pnpm add -D jest @types/jest ts-node
95
- ```
96
-
97
81
  Follow our [tests guidelines](https://ttoss.dev/docs/engineering/guidelines/tests) to configure and run your tests.
98
82
 
99
83
  ### Tsup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/config",
3
- "version": "1.35.1",
3
+ "version": "1.35.3",
4
4
  "description": "Default configuration for packages.",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",
@@ -38,7 +38,7 @@
38
38
  "devDependencies": {
39
39
  "@jest/types": "^29.6.3",
40
40
  "@types/jest": "^29.5.14",
41
- "@types/node": "^20.17.10",
41
+ "@types/node": "^22.10.2",
42
42
  "esbuild": "^0.24.0",
43
43
  "jest": "^29.7.0",
44
44
  "tsup": "^8.3.5"
@@ -49,7 +49,7 @@
49
49
  "provenance": true
50
50
  },
51
51
  "scripts": {
52
- "build:config": "tsup-node",
52
+ "build-config": "tsup-node",
53
53
  "test": "jest --projects tests/unit"
54
54
  }
55
55
  }