@kununu/eslint-config 7.3.4 → 7.3.5-improvements-beta.0
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.config.mjs +11 -0
- package/package.json +1 -1
package/eslint.config.mjs
CHANGED
|
@@ -126,6 +126,7 @@ export default defineConfig([
|
|
|
126
126
|
'@stylistic/array-bracket-spacing': ['error', 'never'],
|
|
127
127
|
'@stylistic/arrow-parens': ['error', 'as-needed'],
|
|
128
128
|
'@stylistic/brace-style': ['error', '1tbs'],
|
|
129
|
+
'@stylistic/function-paren-newline': ['error', 'multiline'],
|
|
129
130
|
'@stylistic/max-len': ['error', {
|
|
130
131
|
code: 120,
|
|
131
132
|
ignoreComments: true, // Ignore all comments
|
|
@@ -258,7 +259,17 @@ export default defineConfig([
|
|
|
258
259
|
type: 'natural',
|
|
259
260
|
},
|
|
260
261
|
],
|
|
262
|
+
'perfectionist/sort-interfaces': ['error', {
|
|
263
|
+
groups: ['required-member', 'optional-member'],
|
|
264
|
+
order: 'asc',
|
|
265
|
+
type: 'natural',
|
|
266
|
+
}],
|
|
261
267
|
'perfectionist/sort-modules': ['error', {type: 'usage'}],
|
|
268
|
+
'perfectionist/sort-object-types': ['error', {
|
|
269
|
+
groups: ['required-member', 'optional-member'],
|
|
270
|
+
order: 'asc',
|
|
271
|
+
type: 'natural',
|
|
272
|
+
}],
|
|
262
273
|
'perfectionist/sort-union-types': ['error', {
|
|
263
274
|
groups: [
|
|
264
275
|
'conditional',
|