@robinblomberg/eslint-config-robinblomberg 0.7.5 → 0.7.9

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/index.js +15 -13
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -3,8 +3,6 @@ const error = 'error';
3
3
  const off = 'off';
4
4
  const warn = IS_DEVELOPMENT ? 'warn' : 'error';
5
5
 
6
- const camelCasePrefixes = ['I', 'T'];
7
-
8
6
  // eslint-disable-next-line import/no-commonjs
9
7
  module.exports = {
10
8
  env: {
@@ -127,7 +125,14 @@ module.exports = {
127
125
  // '@typescript-eslint/index': warn,
128
126
  '@typescript-eslint/init-declarations': off,
129
127
  '@typescript-eslint/keyword-spacing': warn,
130
- '@typescript-eslint/lines-between-class-members': off,
128
+ '@typescript-eslint/lines-between-class-members': [
129
+ warn,
130
+ 'always',
131
+ {
132
+ exceptAfterOverload: true,
133
+ exceptAfterSingleLine: true,
134
+ },
135
+ ],
131
136
  '@typescript-eslint/member-delimiter-style': [
132
137
  warn,
133
138
  {
@@ -197,14 +202,12 @@ module.exports = {
197
202
  '@typescript-eslint/naming-convention': [
198
203
  warn,
199
204
  {
200
- format: ['strictCamelCase'],
205
+ format: ['camelCase'],
201
206
  leadingUnderscore: 'allow',
202
- prefix: camelCasePrefixes,
203
207
  selector: 'default',
204
208
  },
205
209
  {
206
- format: ['StrictPascalCase'],
207
- prefix: camelCasePrefixes,
210
+ format: ['PascalCase'],
208
211
  selector: [
209
212
  'class',
210
213
  'enum',
@@ -214,19 +217,16 @@ module.exports = {
214
217
  ],
215
218
  },
216
219
  {
217
- format: ['strictCamelCase', 'StrictPascalCase'],
218
- prefix: camelCasePrefixes,
220
+ format: ['camelCase', 'PascalCase'],
219
221
  selector: ['function'],
220
222
  },
221
223
  {
222
- format: ['strictCamelCase', 'UPPER_CASE'],
223
- prefix: camelCasePrefixes,
224
+ format: ['camelCase', 'UPPER_CASE'],
224
225
  selector: ['objectLiteralMethod', 'objectLiteralProperty'],
225
226
  },
226
227
  {
227
- format: ['strictCamelCase', 'StrictPascalCase', 'UPPER_CASE'],
228
+ format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
228
229
  leadingUnderscore: 'allow',
229
- prefix: camelCasePrefixes,
230
230
  selector: ['variable'],
231
231
  },
232
232
  {
@@ -410,6 +410,8 @@ module.exports = {
410
410
  'jsdoc/require-returns-description': off,
411
411
  'jsdoc/require-returns-type': off,
412
412
  'keyword-spacing': off,
413
+ 'lines-between-class-members': off,
414
+ 'no-dupe-class-members': off,
413
415
  'no-empty-function': off,
414
416
  'no-extra-parens': off,
415
417
  'no-extra-semi': off,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinblomberg/eslint-config-robinblomberg",
3
- "version": "0.7.5",
3
+ "version": "0.7.9",
4
4
  "author": "Robin Blomberg",
5
5
  "main": "index.js",
6
6
  "repository": {