@juuso.piikkila/eslint-config-typescript 3.0.0 → 3.0.1

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.
@@ -2,6 +2,8 @@ name: NPM Release
2
2
 
3
3
  on:
4
4
  workflow_dispatch:
5
+ schedule:
6
+ - cron: '0 0 * * 5'
5
7
 
6
8
  jobs:
7
9
  build:
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [3.0.1](https://github.com/juusopiikkila/eslint-config-typescript/compare/3.0.0...3.0.1) (2025-03-06)
2
+
3
+ ### Bug Fixes
4
+
5
+ * sort by keys and fix typescript rules ([512cbf4](https://github.com/juusopiikkila/eslint-config-typescript/commit/512cbf4b1fb68f1c7f4cf7c91158393c489bfdc4))
6
+
1
7
  ## [3.0.0](https://github.com/juusopiikkila/eslint-config-typescript/compare/2.8.0...3.0.0) (2025-03-05)
2
8
 
3
9
  ### ⚠ BREAKING CHANGES
@@ -9,10 +9,26 @@ module.exports = [
9
9
  '**/*.{ts,cjs,mjs,js,jsx,vue}',
10
10
  ],
11
11
  rules: {
12
+ '@stylistic/array-bracket-newline': [
13
+ 2,
14
+ 'consistent',
15
+ ],
16
+ '@stylistic/array-element-newline': [
17
+ 'error',
18
+ 'consistent',
19
+ ],
20
+ '@stylistic/comma-dangle': [
21
+ 'error',
22
+ 'always-multiline',
23
+ ],
12
24
  '@stylistic/indent': [
13
25
  'error',
14
26
  4,
15
27
  ],
28
+ '@stylistic/no-extra-parens': [
29
+ 'error',
30
+ 'functions',
31
+ ],
16
32
  '@stylistic/object-curly-newline': [
17
33
  2,
18
34
  {
@@ -38,42 +54,15 @@ module.exports = [
38
54
  },
39
55
  },
40
56
  ],
41
- '@stylistic/array-bracket-newline': [
42
- 2,
43
- 'consistent',
44
- ],
45
- 'max-len': [
46
- 'error',
47
- {
48
- code: 120,
49
- ignoreComments: true,
50
- ignoreUrls: true,
51
- ignoreStrings: true,
52
- ignoreTemplateLiterals: true,
53
- },
54
- ],
55
57
  '@stylistic/object-property-newline': [
56
58
  2,
57
59
  {
58
60
  allowAllPropertiesOnSameLine: true,
59
61
  },
60
62
  ],
61
- '@stylistic/member-delimiter-style': [
62
- 2,
63
- {
64
- multiline: {
65
- delimiter: 'none',
66
- requireLast: true,
67
- },
68
- singleline: {
69
- delimiter: 'semi',
70
- requireLast: false,
71
- },
72
- },
73
- ],
74
- 'arrow-body-style': [
63
+ '@stylistic/operator-linebreak': [
75
64
  'error',
76
- 'as-needed',
65
+ 'before',
77
66
  ],
78
67
  '@stylistic/space-before-function-paren': [
79
68
  'error',
@@ -83,24 +72,11 @@ module.exports = [
83
72
  asyncArrow: 'always',
84
73
  },
85
74
  ],
86
- 'canonical/import-specifier-newline': 'off',
87
- 'import/extensions': 'off',
88
- 'perfectionist/sort-objects': 'off',
89
- 'perfectionist/sort-object-types': 'off',
90
- 'perfectionist/sort-switch-case': 'off',
91
- 'perfectionist/sort-decorators': 'off',
92
- 'perfectionist/sort-interfaces': 'off',
93
- 'perfectionist/sort-modules': 'off',
94
- 'perfectionist/sort-enums': 'off',
95
- 'perfectionist/sort-union-types': 'off',
96
- '@stylistic/operator-linebreak': [
97
- 'error',
98
- 'before',
99
- ],
100
- '@stylistic/no-extra-parens': [
75
+ 'arrow-body-style': [
101
76
  'error',
102
- 'functions',
77
+ 'as-needed',
103
78
  ],
79
+ 'canonical/destructuring-property-newline': 'off',
104
80
  'canonical/filename-match-regex': [
105
81
  'error',
106
82
  {
@@ -109,6 +85,8 @@ module.exports = [
109
85
  ignoreExporting: true,
110
86
  },
111
87
  ],
88
+ 'canonical/id-match': 'off',
89
+ 'canonical/import-specifier-newline': 'off',
112
90
  'func-style': [
113
91
  'error',
114
92
  'declaration',
@@ -116,29 +94,21 @@ module.exports = [
116
94
  allowArrowFunctions: true,
117
95
  },
118
96
  ],
119
- 'unicorn/numeric-separators-style': [
97
+ 'import/extensions': 'off',
98
+ 'max-len': [
120
99
  'error',
121
100
  {
122
- onlyIfContainsSeparator: false,
123
- hexadecimal: {
124
- minimumDigits: 0,
125
- groupLength: 2,
126
- },
127
- binary: {
128
- minimumDigits: 0,
129
- groupLength: 4,
130
- },
131
- octal: {
132
- minimumDigits: 0,
133
- groupLength: 4,
134
- },
135
- number: {
136
- minimumDigits: 5,
137
- groupLength: 3,
138
- },
101
+ code: 120,
102
+ ignoreComments: true,
103
+ ignoreUrls: true,
104
+ ignoreStrings: true,
105
+ ignoreTemplateLiterals: true,
139
106
  },
140
107
  ],
108
+ 'no-warning-comments': 'off',
141
109
  'perfectionist/sort-classes': 'off',
110
+ 'perfectionist/sort-decorators': 'off',
111
+ 'perfectionist/sort-enums': 'off',
142
112
  'perfectionist/sort-imports': [
143
113
  2,
144
114
  {
@@ -169,17 +139,34 @@ module.exports = [
169
139
  type: 'natural',
170
140
  },
171
141
  ],
172
- 'no-warning-comments': 'off',
173
- '@stylistic/comma-dangle': [
174
- 'error',
175
- 'always-multiline',
176
- ],
177
- 'canonical/destructuring-property-newline': 'off',
178
- '@stylistic/array-element-newline': [
142
+ 'perfectionist/sort-interfaces': 'off',
143
+ 'perfectionist/sort-modules': 'off',
144
+ 'perfectionist/sort-object-types': 'off',
145
+ 'perfectionist/sort-objects': 'off',
146
+ 'perfectionist/sort-switch-case': 'off',
147
+ 'perfectionist/sort-union-types': 'off',
148
+ 'unicorn/numeric-separators-style': [
179
149
  'error',
180
- 'consistent',
150
+ {
151
+ onlyIfContainsSeparator: false,
152
+ hexadecimal: {
153
+ minimumDigits: 0,
154
+ groupLength: 2,
155
+ },
156
+ binary: {
157
+ minimumDigits: 0,
158
+ groupLength: 4,
159
+ },
160
+ octal: {
161
+ minimumDigits: 0,
162
+ groupLength: 4,
163
+ },
164
+ number: {
165
+ minimumDigits: 5,
166
+ groupLength: 3,
167
+ },
168
+ },
181
169
  ],
182
- 'canonical/id-match': 'off',
183
170
  },
184
171
  },
185
172
  ];
@@ -12,22 +12,25 @@ module.exports = [
12
12
  '@typescript-eslint': require('@typescript-eslint/eslint-plugin'),
13
13
  },
14
14
  rules: {
15
- '@typescript-eslint/no-non-null-assertion': 'off',
16
- '@typescript-eslint/func-call-spacing': 'off',
17
- '@typescript-eslint/indent': 'off',
18
- '@typescript-eslint/object-curly-spacing': 'off',
19
- '@typescript-eslint/type-annotation-spacing': 'off',
20
- '@typescript-eslint/no-extraneous-class': [
21
- 'error',
15
+ '@stylistic/member-delimiter-style': [
16
+ 2,
22
17
  {
23
- allowWithDecorator: true,
24
- allowConstructorOnly: true,
18
+ multiline: {
19
+ delimiter: 'none',
20
+ requireLast: true,
21
+ },
22
+ singleline: {
23
+ delimiter: 'semi',
24
+ requireLast: false,
25
+ },
25
26
  },
26
27
  ],
27
28
  '@typescript-eslint/consistent-type-definitions': [
28
29
  'error',
29
30
  'interface',
30
31
  ],
32
+ '@typescript-eslint/func-call-spacing': 'off',
33
+ '@typescript-eslint/indent': 'off',
31
34
  '@typescript-eslint/naming-convention': [
32
35
  'error',
33
36
  {
@@ -77,10 +80,20 @@ module.exports = [
77
80
  format: ['camelCase', 'PascalCase'],
78
81
  },
79
82
  ],
83
+ '@typescript-eslint/no-extraneous-class': [
84
+ 'error',
85
+ {
86
+ allowWithDecorator: true,
87
+ allowConstructorOnly: true,
88
+ },
89
+ ],
90
+ '@typescript-eslint/no-non-null-assertion': 'off',
91
+ '@typescript-eslint/object-curly-spacing': 'off',
80
92
  '@typescript-eslint/return-await': [
81
93
  'error',
82
94
  'in-try-catch',
83
95
  ],
96
+ '@typescript-eslint/type-annotation-spacing': 'off',
84
97
  },
85
98
  },
86
99
  ];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@juuso.piikkila/eslint-config-typescript",
3
3
  "description": "ESLint config for typescript projects",
4
- "version": "3.0.0",
4
+ "version": "3.0.1",
5
5
  "main": "index.cjs",
6
6
  "author": "Juuso Piikkilä",
7
7
  "license": "MIT",