@odg/eslint-config 3.2.2 → 3.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odg/eslint-config",
3
- "version": "3.2.2",
3
+ "version": "3.2.4",
4
4
  "description": "Linter for JavaScript And Typescript project",
5
5
  "type": "module",
6
6
  "main": "index.mjs",
@@ -299,6 +299,16 @@ export default {
299
299
  bundledDependencies: true,
300
300
  },
301
301
  ], // Não dependa de pacotes em devDependencies
302
+ "sort-imports": [
303
+ "error",
304
+ {
305
+ "ignoreCase": true,
306
+ "ignoreDeclarationSort": true,
307
+ "ignoreMemberSort": false,
308
+ "memberSyntaxSortOrder": [ "none", "all", "multiple", "single" ],
309
+ "allowSeparatedGroups": true,
310
+ },
311
+ ],
302
312
  "import/order": [
303
313
  "error",
304
314
  {
@@ -310,6 +320,14 @@ export default {
310
320
  "newlines-between": "always",
311
321
  },
312
322
  ], // Força essa ordem no import
323
+ "@stylistic/spaced-comment": [
324
+ "error",
325
+ "always",
326
+ {
327
+ exceptions: [ "-", "+" ],
328
+ block: { "balanced": true },
329
+ },
330
+ ], // Força espaço apos do // comentário
313
331
  "import/no-anonymous-default-export": [ "error", { allowCallExpression: false } ],
314
332
  "import/exports-last": [ "error" ], // Export por ultimo
315
333
  // "import/no-deprecated": [ "error" ], // Não import deprecated // ? slower
@@ -20,6 +20,7 @@ export default {
20
20
  "yml/no-irregular-whitespace": [ "error" ], // Sem Espaços em brancos irregular caracteres especiais
21
21
  "yml/no-trailing-zeros": [ "error" ], // Use 1.2 ao invés de 1.20
22
22
  "yml/spaced-comment": [ "error" ], // Comentarios com espaço
23
+ "@stylistic/spaced-comment": [ "off" ], // Força espaço apos do // comentário
23
24
  "filenames/match-regex": [ "off" ], // Desliga validação de nomes
24
25
  "@stylistic/max-len": [
25
26
  "warn",