@slashnephy/eslint-config 0.2.1 → 0.2.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/dist/typescript.js +20 -17
  2. package/package.json +1 -1
@@ -25,12 +25,11 @@ const typescript = {
25
25
  },
26
26
  ],
27
27
  '@typescript-eslint/consistent-type-imports': 'error',
28
- '@typescript-eslint/explicit-function-return-type': 'warn',
29
28
  '@typescript-eslint/explicit-member-accessibility': 'error',
30
29
  '@typescript-eslint/explicit-module-boundary-types': 'warn',
31
30
  '@typescript-eslint/member-delimiter-style': 'error',
32
31
  '@typescript-eslint/member-ordering': 'warn',
33
- '@typescript-eslint/method-signature-style': 'warn',
32
+ '@typescript-eslint/method-signature-style': ['warn', 'method'],
34
33
  '@typescript-eslint/naming-convention': [
35
34
  'warn',
36
35
  {
@@ -39,20 +38,29 @@ const typescript = {
39
38
  },
40
39
  {
41
40
  selector: ['variableLike'],
42
- format: ['camelCase'],
41
+ format: ['camelCase', 'UPPER_CASE'],
43
42
  leadingUnderscore: 'allow',
44
43
  },
45
44
  {
46
- selector: ['variable'],
47
- modifiers: ['const', 'global', 'exported'],
48
- types: ['boolean', 'string', 'number'],
49
- format: ['UPPER_CASE'],
45
+ selector: ['property'],
46
+ format: ['camelCase', 'snake_case'],
50
47
  },
51
48
  {
52
49
  selector: ['variableLike'],
53
50
  types: ['boolean'],
54
51
  format: ['PascalCase'],
55
- prefix: ['is', 'should', 'has', 'can', 'did', 'will', 'contains'],
52
+ prefix: [
53
+ 'is',
54
+ 'are',
55
+ 'was',
56
+ 'were',
57
+ 'should',
58
+ 'has',
59
+ 'can',
60
+ 'did',
61
+ 'will',
62
+ 'contains',
63
+ ],
56
64
  },
57
65
  {
58
66
  selector: ['typeLike'],
@@ -65,13 +73,13 @@ const typescript = {
65
73
  leadingUnderscore: 'require',
66
74
  },
67
75
  {
68
- selector: ['memberLike'],
69
- modifiers: ['requiresQuotes'],
76
+ selector: ['variableLike'],
77
+ modifiers: ['destructured'],
70
78
  format: null,
71
79
  },
72
80
  {
73
- selector: ['variableLike'],
74
- modifiers: ['destructured'],
81
+ selector: ['memberLike', 'property'],
82
+ modifiers: ['requiresQuotes'],
75
83
  format: null,
76
84
  },
77
85
  ],
@@ -112,11 +120,6 @@ const typescript = {
112
120
  allowNullish: true,
113
121
  },
114
122
  ],
115
- '@typescript-eslint/no-unsafe-argument': 'off',
116
- '@typescript-eslint/no-unsafe-assignment': 'off',
117
- '@typescript-eslint/no-unsafe-call': 'off',
118
- '@typescript-eslint/no-unsafe-member-access': 'off',
119
- '@typescript-eslint/no-unsafe-return': 'off',
120
123
  '@typescript-eslint/no-unused-vars': 'off',
121
124
  'unused-imports/no-unused-vars': [
122
125
  'warn',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slashnephy/eslint-config",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "author": "SlashNephy <spica@starry.blue> (https://spica.starry.blue/)",
5
5
  "repository": {
6
6
  "type": "git",