eslint-config-beslogic 1.4.13 → 1.4.14
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/.vscode/settings.json +5 -14
- package/angular.js +2 -1
- package/javascript.js +2 -4
- package/package.json +1 -1
- package/typescript.js +2 -0
package/.vscode/settings.json
CHANGED
|
@@ -20,22 +20,10 @@
|
|
|
20
20
|
"editor.insertSpaces": true,
|
|
21
21
|
"editor.formatOnSave": true,
|
|
22
22
|
// Specify the formatter in case other formatters are also installed (ie: Prettier)
|
|
23
|
-
"[json]": {
|
|
23
|
+
"[json][jsonc]": {
|
|
24
24
|
"editor.defaultFormatter": "vscode.json-language-features"
|
|
25
25
|
},
|
|
26
|
-
"[
|
|
27
|
-
"editor.defaultFormatter": "vscode.json-language-features"
|
|
28
|
-
},
|
|
29
|
-
"[javascript]": {
|
|
30
|
-
"editor.defaultFormatter": "vscode.typescript-language-features"
|
|
31
|
-
},
|
|
32
|
-
"[javascriptreact]": {
|
|
33
|
-
"editor.defaultFormatter": "vscode.typescript-language-features"
|
|
34
|
-
},
|
|
35
|
-
"[typescript]": {
|
|
36
|
-
"editor.defaultFormatter": "vscode.typescript-language-features"
|
|
37
|
-
},
|
|
38
|
-
"[typescriptreact]": {
|
|
26
|
+
"[javascript][javascriptreact][typescript][typescriptreact]": {
|
|
39
27
|
"editor.defaultFormatter": "vscode.typescript-language-features"
|
|
40
28
|
},
|
|
41
29
|
"[html]": {
|
|
@@ -51,9 +39,12 @@
|
|
|
51
39
|
"javascript.preferences.quoteStyle": "single",
|
|
52
40
|
"typescript.preferences.quoteStyle": "single",
|
|
53
41
|
"html.format.wrapAttributes": "force-expand-multiline",
|
|
42
|
+
// js/ts.format.* not needed with dprint
|
|
54
43
|
"javascript.format.semicolons": "remove",
|
|
55
44
|
"typescript.format.semicolons": "remove",
|
|
56
45
|
// For Angular: "typescript.format.semicolons": "insert",
|
|
46
|
+
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
|
|
47
|
+
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
|
|
57
48
|
"javascript.preferences.importModuleSpecifier": "non-relative",
|
|
58
49
|
"typescript.preferences.importModuleSpecifier": "non-relative",
|
|
59
50
|
"eslint.validate": [
|
package/angular.js
CHANGED
package/javascript.js
CHANGED
|
@@ -103,10 +103,7 @@ module.exports = {
|
|
|
103
103
|
],
|
|
104
104
|
"unicorn/consistent-function-scoping": "error",
|
|
105
105
|
"unicorn/custom-error-definition": "error",
|
|
106
|
-
|
|
107
|
-
// javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces
|
|
108
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1879
|
|
109
|
-
"unicorn/empty-brace-spaces": "off",
|
|
106
|
+
"unicorn/empty-brace-spaces": "error",
|
|
110
107
|
"unicorn/filename-case": [
|
|
111
108
|
"error",
|
|
112
109
|
{
|
|
@@ -299,6 +296,7 @@ module.exports = {
|
|
|
299
296
|
"error",
|
|
300
297
|
"property"
|
|
301
298
|
],
|
|
299
|
+
"eol-last": "error",
|
|
302
300
|
"eqeqeq": [
|
|
303
301
|
"error",
|
|
304
302
|
"smart"
|
package/package.json
CHANGED
package/typescript.js
CHANGED
|
@@ -78,6 +78,8 @@ module.exports = {
|
|
|
78
78
|
"rules": {
|
|
79
79
|
// Slow and not as useful with TypeScript: https://github.com/import-js/eslint-plugin-import/issues/2340
|
|
80
80
|
"import/namespace": "off",
|
|
81
|
+
// Not usable with typescript anyway
|
|
82
|
+
"unicode-bom": "off",
|
|
81
83
|
|
|
82
84
|
// eslint-plugin-total-functions overrides (https://www.npmjs.com/package/eslint-plugin-total-functions#user-content-rules)
|
|
83
85
|
// It takes an advanced TypeScript use to fully make sense of this rule
|