@vellone/techsak 1.2.2 → 1.2.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.
package/README.md CHANGED
@@ -21,17 +21,14 @@ include ./node_modules/@vellone/techsak/Makefile
21
21
  Run `make .editorconfig` to copy this project's `.editorconfig` to your project.
22
22
 
23
23
  ## Eslint Config
24
- Add the following code in your `.eslintrc.json` to include this project's ESLint configuration:
24
+ Add the following code in your `.eslintrc.mts` to include this project's ESLint configuration:
25
25
 
26
- ```json
26
+ ```ts
27
27
  {
28
- "extends": [
29
- "./node_modules/@vellone/techsak/.eslintrc.json"
30
- ]
28
+ export { default } from '@vellone/techsak/eslint.config.mjs'
31
29
  }
32
30
  ```
33
31
 
34
-
35
32
  ## TSConfig
36
33
 
37
34
  Add the following code in your `tsconfig.json` to include this project's TypeScript configuration:
package/eslint.config.mjs CHANGED
@@ -3,6 +3,23 @@ import antfu from '@antfu/eslint-config'
3
3
  export default antfu({
4
4
  typescript: {
5
5
  tsconfigPath: './tsconfig.json',
6
+ overridesTypeAware: {
7
+ 'ts/no-unnecessary-condition': 'error',
8
+ 'ts/no-floating-promises': 'error',
9
+ 'ts/no-misused-promises': [
10
+ 'error',
11
+ {
12
+ checksVoidReturn: {
13
+ attributes: false,
14
+ },
15
+ },
16
+ ],
17
+
18
+ 'import/no-deprecated': 'off',
19
+ 'ts/no-deprecated': 'error',
20
+
21
+ 'ts/await-thenable': 'error',
22
+ },
6
23
  },
7
24
 
8
25
  react: true,
@@ -13,8 +30,14 @@ export default antfu({
13
30
  quotes: 'single',
14
31
  semi: false,
15
32
  jsx: true,
33
+ overrides: {
34
+ 'style/quotes': ['error', 'single', {
35
+ avoidEscape: true,
36
+ }],
37
+ },
16
38
  },
17
-
39
+ }, {
40
+ name: 'vellone/all',
18
41
  rules: {
19
42
  'antfu/top-level-function': 'off',
20
43
 
@@ -47,26 +70,12 @@ export default antfu({
47
70
  'ts/array-type': ['error', {
48
71
  default: 'array-simple',
49
72
  }],
50
- 'ts/no-unused-vars': [
51
- 'error'
52
- ],
73
+ 'ts/no-unused-vars': 'error',
53
74
  'ts/no-explicit-any': 'error',
54
- 'ts/no-floating-promises': 'error',
55
- 'ts/no-misused-promises': [
56
- 'error',
57
- {
58
- 'checksVoidReturn': {
59
- 'attributes': false
60
- }
61
- }
62
- ],
63
75
  'ts/no-inferrable-types': 'error',
64
76
  'no-redeclare': 'off',
65
77
  'ts/no-redeclare': 'off',
66
- 'ts/no-unnecessary-condition': 'error',
67
- 'import/no-deprecated': 'off',
68
- 'ts/no-deprecated': 'error',
69
- 'ts/await-thenable': 'error',
78
+
70
79
  'ts/consistent-generic-constructors': 'error',
71
80
  'ts/method-signature-style': ['error', 'property'],
72
81
  'ts/no-empty-object-type': 'error',
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@vellone/techsak",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "matheusvellone's personal tech sak (swiss army knife)",
5
- "keywords": [
6
- "makefile",
7
- "editorconfig",
8
- "eslint"
9
- ],
10
5
  "author": "matheusvellone",
6
+ "license": "MIT",
11
7
  "repository": {
12
8
  "type": "git",
13
9
  "url": "https://github.com/matheusvellone/techsak"
14
10
  },
15
- "license": "MIT",
11
+ "keywords": [
12
+ "makefile",
13
+ "editorconfig",
14
+ "eslint"
15
+ ],
16
16
  "dependencies": {
17
17
  "@antfu/eslint-config": "^4.17.0",
18
18
  "@eslint-react/eslint-plugin": "^1.52.3",
package/tsconfig.json CHANGED
@@ -10,6 +10,6 @@
10
10
  "noPropertyAccessFromIndexSignature": false,
11
11
  "noUncheckedIndexedAccess": true,
12
12
  "noUnusedLocals": true,
13
- "noUnusedParameters": true,
14
- },
13
+ "noUnusedParameters": true
14
+ }
15
15
  }