@robinblomberg/eslint-config-robinblomberg 0.7.6 → 0.7.7

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 +5 -12
  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: {
@@ -197,14 +195,12 @@ module.exports = {
197
195
  '@typescript-eslint/naming-convention': [
198
196
  warn,
199
197
  {
200
- format: ['strictCamelCase'],
198
+ format: ['camelCase'],
201
199
  leadingUnderscore: 'allow',
202
- prefix: camelCasePrefixes,
203
200
  selector: 'default',
204
201
  },
205
202
  {
206
- format: ['StrictPascalCase'],
207
- prefix: camelCasePrefixes,
203
+ format: ['PascalCase'],
208
204
  selector: [
209
205
  'class',
210
206
  'enum',
@@ -214,19 +210,16 @@ module.exports = {
214
210
  ],
215
211
  },
216
212
  {
217
- format: ['strictCamelCase', 'StrictPascalCase'],
218
- prefix: camelCasePrefixes,
213
+ format: ['camelCase', 'PascalCase'],
219
214
  selector: ['function'],
220
215
  },
221
216
  {
222
- format: ['strictCamelCase', 'UPPER_CASE'],
223
- prefix: camelCasePrefixes,
217
+ format: ['camelCase', 'UPPER_CASE'],
224
218
  selector: ['objectLiteralMethod', 'objectLiteralProperty'],
225
219
  },
226
220
  {
227
- format: ['strictCamelCase', 'StrictPascalCase', 'UPPER_CASE'],
221
+ format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
228
222
  leadingUnderscore: 'allow',
229
- prefix: camelCasePrefixes,
230
223
  selector: ['variable'],
231
224
  },
232
225
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinblomberg/eslint-config-robinblomberg",
3
- "version": "0.7.6",
3
+ "version": "0.7.7",
4
4
  "author": "Robin Blomberg",
5
5
  "main": "index.js",
6
6
  "repository": {