@todesktop/dev-config 1.0.0 → 1.0.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/eslint/configs/node.js
CHANGED
|
@@ -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
|
-
//
|
|
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'],
|
package/eslint/configs/strict.js
CHANGED
|
@@ -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': [
|
|
@@ -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