@todesktop/dev-config 1.0.0 → 1.0.27

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 ADDED
@@ -0,0 +1,163 @@
1
+ # @todesktop/dev-config
2
+
3
+ ## 1.0.27
4
+
5
+ ### Patch Changes
6
+
7
+ - a67a3bd: Test bump 1
8
+
9
+ ## 1.0.26
10
+
11
+ ### Patch Changes
12
+
13
+ - b5cab45: Test bump 1
14
+
15
+ ## 1.0.25
16
+
17
+ ### Patch Changes
18
+
19
+ - 00d15f4: Test bump 1
20
+
21
+ ## 1.0.24
22
+
23
+ ### Patch Changes
24
+
25
+ - 57ae0fa: Test bump 1
26
+
27
+ ## 1.0.23
28
+
29
+ ### Patch Changes
30
+
31
+ - 9c78b7e: Test bump 1
32
+
33
+ ## 1.0.22
34
+
35
+ ### Patch Changes
36
+
37
+ - b353ff4: Test bump 1
38
+
39
+ ## 1.0.21
40
+
41
+ ### Patch Changes
42
+
43
+ - b0fec65: Test bump 1
44
+
45
+ ## 1.0.20
46
+
47
+ ### Patch Changes
48
+
49
+ - 4c48a0d: Test bump 1
50
+
51
+ ## 1.0.19
52
+
53
+ ### Patch Changes
54
+
55
+ - 71aa1f9: Test bump 1
56
+
57
+ ## 1.0.18
58
+
59
+ ### Patch Changes
60
+
61
+ - 78b8fe8: Test bump 1
62
+
63
+ ## 1.0.17
64
+
65
+ ### Patch Changes
66
+
67
+ - 0b18aac: Test bump 1
68
+
69
+ ## 1.0.16
70
+
71
+ ### Patch Changes
72
+
73
+ - bffb138: Test bump 1
74
+
75
+ ## 1.0.15
76
+
77
+ ### Patch Changes
78
+
79
+ - 1e53285: Test bump 1
80
+
81
+ ## 1.0.14
82
+
83
+ ### Patch Changes
84
+
85
+ - f28bdd9: Test bump 1
86
+
87
+ ## 1.0.13
88
+
89
+ ### Patch Changes
90
+
91
+ - 013d0ff: Test bump 1
92
+
93
+ ## 1.0.12
94
+
95
+ ### Patch Changes
96
+
97
+ - 2641679: Test bump 1
98
+
99
+ ## 1.0.11
100
+
101
+ ### Patch Changes
102
+
103
+ - c30955b: Test bump 1
104
+
105
+ ## 1.0.10
106
+
107
+ ### Patch Changes
108
+
109
+ - ecd1832: Test bump 1
110
+
111
+ ## 1.0.9
112
+
113
+ ### Patch Changes
114
+
115
+ - a66bda3: Test bump 1
116
+
117
+ ## 1.0.8
118
+
119
+ ### Patch Changes
120
+
121
+ - 06b9433: Test bump 1
122
+
123
+ ## 1.0.7
124
+
125
+ ### Patch Changes
126
+
127
+ - 07f9f29: Test bump 1
128
+
129
+ ## 1.0.6
130
+
131
+ ### Patch Changes
132
+
133
+ - d602d54: Test bump 1
134
+
135
+ ## 1.0.5
136
+
137
+ ### Patch Changes
138
+
139
+ - 00991be: Test bump 1
140
+
141
+ ## 1.0.4
142
+
143
+ ### Patch Changes
144
+
145
+ - c665c46: Test bump 1
146
+
147
+ ## 1.0.3
148
+
149
+ ### Patch Changes
150
+
151
+ - 0fc21f2: Test bump 1
152
+
153
+ ## 1.0.2
154
+
155
+ ### Patch Changes
156
+
157
+ - 6f03cf7: Test bump
158
+
159
+ ## 1.0.1
160
+
161
+ ### Patch Changes
162
+
163
+ - 764de5f: Test bump
@@ -28,10 +28,14 @@ export default {
28
28
  // https://github.com/NishargShah/eslint-config-airbnb-extended/blob/master/packages/eslint-config-airbnb-extended/rules/node/nodePromises.ts
29
29
  ...airbnb.rules.node.noUnsupportedFeatures.rules,
30
30
 
31
- // Requires type information
31
+ // This rule requires type information
32
32
  // https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-sync.md
33
33
  'n/no-sync': 'off',
34
34
 
35
+ // https://eslint.org/docs/latest/rules/no-console
36
+ // Allow only some methods of console
37
+ 'no-console': ['error', { allow: ['debug', 'error', 'info', 'warn'] }],
38
+
35
39
  // Strict flag depends on sourceType
36
40
  // https://eslint.org/docs/latest/rules/strict
37
41
  'strict': ['error', 'global'],
@@ -107,11 +107,9 @@ export default {
107
107
  { order: 'asc', type: 'alphabetical' },
108
108
  ],
109
109
 
110
+ // Currently disabled, since it varies a lot between projects
110
111
  // https://perfectionist.dev/rules/sort-modules
111
- 'perfectionist/sort-modules': [
112
- 'error',
113
- { order: 'asc', type: 'alphabetical' },
114
- ],
112
+ 'perfectionist/sort-modules': 'off',
115
113
 
116
114
  // https://perfectionist.dev/rules/sort-named-exports
117
115
  'perfectionist/sort-named-exports': [
@@ -17,5 +17,20 @@ export default {
17
17
  // Re-enabled after ts config
18
18
  // https://typescript-eslint.io/rules/no-explicit-any/
19
19
  '@typescript-eslint/no-explicit-any': 'error',
20
+
21
+ // Tune some options
22
+ // https://typescript-eslint.io/rules/no-unused-vars/
23
+ '@typescript-eslint/no-unused-vars': [
24
+ 'error',
25
+ {
26
+ args: 'all',
27
+ argsIgnorePattern: '^_',
28
+ caughtErrors: 'all',
29
+ caughtErrorsIgnorePattern: '^_',
30
+ destructuredArrayIgnorePattern: '^_',
31
+ ignoreRestSiblings: true,
32
+ varsIgnorePattern: '^_',
33
+ },
34
+ ],
20
35
  },
21
36
  };
@@ -23,6 +23,10 @@ export default {
23
23
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/filename-case.md
24
24
  'unicorn/filename-case': 'off',
25
25
 
26
+ // n/no-process-exit is used instead
27
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-process-exit.md
28
+ 'unicorn/no-process-exit': 'off',
29
+
26
30
  // Ofter `return undefined` specifies the return type explicitly
27
31
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-undefined.md
28
32
  'unicorn/no-useless-undefined': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/dev-config",
3
- "version": "1.0.0",
3
+ "version": "1.0.27",
4
4
  "description": "Shared dev configs for ESLint, Prettier, TypeScript, etc",
5
5
  "author": "ToDesktop <hello@todesktop.com>",
6
6
  "license": "MIT",
package/prettier/index.js CHANGED
@@ -1,12 +1,4 @@
1
1
  export default {
2
- overrides: [
3
- {
4
- files: ['*.yml'],
5
- options: {
6
- singleQuote: false,
7
- },
8
- },
9
- ],
10
2
  proseWrap: 'always',
11
3
  quoteProps: 'consistent',
12
4
  singleQuote: true,
package/tsconfig.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "allowJs": true,
4
+ "allowImportingTsExtensions": true,
4
5
  "esModuleInterop": true,
5
6
  "module": "node20",
6
7
  "moduleResolution": "Node16",