@vellone/techsak 1.1.1 → 1.1.2

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.
Files changed (2) hide show
  1. package/eslint.config.mjs +23 -31
  2. package/package.json +1 -1
package/eslint.config.mjs CHANGED
@@ -59,33 +59,18 @@ export default tseslint.config(
59
59
  'no-throw-literal': 'error',
60
60
  'no-undef': 'off',
61
61
  'no-unneeded-ternary': 'error',
62
- 'no-unused-expressions': 'error',
63
62
  'no-useless-call': 'error',
64
63
  'no-useless-computed-key': 'error',
65
64
  'no-useless-constructor': 'error',
66
- 'no-useless-return': 'error',
65
+ 'no-useless-return': 'off',
67
66
  'no-var': 'error',
67
+ // Queria na verdade configurar que 'ou é tudo em uma linha ou é tudo em várias linhas', mas não consegui.
68
+ // Esse foi o mais próximo disso que consegui
68
69
  'object-curly-newline': ['error', {
69
- ObjectExpression: {
70
- multiline: true,
71
- minProperties: 5,
72
- consistent: true,
73
- },
74
- ObjectPattern: {
75
- multiline: true,
76
- minProperties: 5,
77
- consistent: true,
78
- },
79
- ImportDeclaration: {
80
- multiline: true,
81
- minProperties: 50,
82
- consistent: true,
83
- },
84
- ExportDeclaration: {
85
- multiline: true,
86
- minProperties: 5,
87
- consistent: true,
88
- },
70
+ ObjectExpression: { multiline: true, minProperties: 5, consistent: true },
71
+ ObjectPattern: { multiline: true, minProperties: 5, consistent: true },
72
+ ImportDeclaration: { multiline: true, minProperties: 50, consistent: true },
73
+ ExportDeclaration: { multiline: true, minProperties: 5, consistent: true },
89
74
  }],
90
75
  'object-property-newline': ['error', {
91
76
  allowAllPropertiesOnSameLine: true,
@@ -144,23 +129,24 @@ export default tseslint.config(
144
129
  },
145
130
  ],
146
131
  '@typescript-eslint/ban-ts-comment': 'error',
147
- '@typescript-eslint/comma-dangle': 'off',
148
132
  '@typescript-eslint/consistent-generic-constructors': 'error',
149
- '@typescript-eslint/indent': 'off',
150
- '@typescript-eslint/lines-between-class-members': 'off',
151
133
  '@typescript-eslint/method-signature-style': ['error', 'property'],
152
134
  '@typescript-eslint/naming-convention': 'off',
153
135
  '@typescript-eslint/no-duplicate-enum-values': 'error',
154
- '@typescript-eslint/no-empty-object-type': 'off',
155
- '@typescript-eslint/no-explicit-any': 'off',
136
+ '@typescript-eslint/no-empty-object-type': 'error',
137
+ '@typescript-eslint/no-explicit-any': 'error',
156
138
  '@typescript-eslint/no-floating-promises': 'error',
157
139
  '@typescript-eslint/no-inferrable-types': 'error',
158
- '@typescript-eslint/no-loop-func': 'off',
159
- '@typescript-eslint/no-redeclare': 'off',
140
+ 'no-loop-func': 'off',
141
+ '@typescript-eslint/no-loop-func': 'error',
142
+ 'no-redeclare': 'off',
143
+ '@typescript-eslint/no-redeclare': 'error',
160
144
  '@typescript-eslint/no-require-imports': 'error',
161
145
  '@typescript-eslint/no-unnecessary-condition': 'error',
162
- '@typescript-eslint/no-unused-expressions': 'off',
163
- '@typescript-eslint/no-use-before-define': 'off',
146
+ 'no-unused-expressions': 'off',
147
+ '@typescript-eslint/no-unused-expressions': 'error',
148
+ 'no-use-before-define': 'off',
149
+ '@typescript-eslint/no-use-before-define': 'error',
164
150
  },
165
151
  },
166
152
  {
@@ -176,7 +162,13 @@ export default tseslint.config(
176
162
  },
177
163
  {
178
164
  rules: {
165
+ 'unicorn/filename-case': 'off',
166
+ 'unicorn/prevent-abbreviations': 'off',
179
167
  'unicorn/no-unused-properties': 'error',
168
+ 'unicorn/no-array-reduce': 'off',
169
+ 'unicorn/no-null': 'off',
170
+ 'unicorn/consistent-function-scoping': 'off',
171
+ 'unicorn/prevent-abbreviations': 'off',
180
172
  },
181
173
  },
182
174
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellone/techsak",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "matheusvellone's personal tech sak (swiss army knife)",
5
5
  "keywords": [],
6
6
  "author": "matheusvellone",