@decampsrenan/config 1.0.0 → 1.1.0

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 (3) hide show
  1. package/README.md +12 -2
  2. package/package.json +3 -2
  3. package/tsconfig.json +25 -0
package/README.md CHANGED
@@ -5,7 +5,7 @@ I use this config in all my projects. No need to copy/paste anymore 😄
5
5
  ## Supported tools
6
6
 
7
7
  - [x] Prettier
8
- - [ ] ESLint
8
+ - [x] ESLint
9
9
  - [ ] Typescript
10
10
 
11
11
  ## Install
@@ -18,7 +18,7 @@ npm i -D @decampsrenan/config
18
18
 
19
19
  ### Prettier
20
20
 
21
- ```json
21
+ ```json5
22
22
  // package.json
23
23
  {
24
24
  "name": "...",
@@ -45,4 +45,14 @@ Then run the following commands to check or update files if needed:
45
45
  ```sh
46
46
  npx prettier -c ./ # Check if there is some files to update
47
47
  npx prettier -w ./ # Update files
48
+ ```
49
+
50
+ ### TSConfig
51
+
52
+ ```json5
53
+ // tsconfig.json
54
+ {
55
+ "extends": "@decampsrenan/config/tsconfig"
56
+ // Override with your custom needs here
57
+ }
48
58
  ```
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@decampsrenan/config",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Personal config files",
5
5
  "exports": {
6
6
  "./prettier-default": "./prettier-default.mjs",
7
- "./prettier-astro": "./prettier-astro.mjs"
7
+ "./prettier-astro": "./prettier-astro.mjs",
8
+ "./tsconfig": "./tsconfig.json"
8
9
  },
9
10
  "scripts": {
10
11
  "test": "true",
package/tsconfig.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ /* Base Options: */
5
+ "esModuleInterop": true,
6
+ "skipLibCheck": true,
7
+ "target": "es2022",
8
+ "allowJs": true,
9
+ "resolveJsonModule": true,
10
+ "moduleDetection": "force",
11
+ "isolatedModules": true,
12
+
13
+ /* Strictness */
14
+ "strict": true,
15
+ "noUncheckedIndexedAccess": true,
16
+
17
+ /* If NOT transpiling with TypeScript: */
18
+ "moduleResolution": "Bundler",
19
+ "module": "ESNext",
20
+ "noEmit": true,
21
+
22
+ /* If your code runs in the DOM: */
23
+ "lib": ["es2022", "dom", "dom.iterable"],
24
+ }
25
+ }