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.
@@ -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
- "[jsonc]": {
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
@@ -85,7 +85,8 @@ module.exports = {
85
85
  "meta",
86
86
  "link",
87
87
  "title",
88
- "mat-icon"
88
+ "mat-icon",
89
+ "ng-container"
89
90
  ],
90
91
  "ignoreAttributes": [
91
92
  ...baseIgnoreAttributes,
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
- // This removes empty space in braces braces, unlike VSCode's
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-beslogic",
3
- "version": "1.4.13",
3
+ "version": "1.4.14",
4
4
  "description": "ESLint rules, plugins and configs used at Beslogic",
5
5
  "main": "index.js",
6
6
  "scripts": {
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