@slashnephy/eslint-config 0.2.1 → 0.2.3

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 +31 -22
  2. package/package.json +1 -1
@@ -25,53 +25,66 @@ 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
  {
37
36
  selector: ['default'],
38
- format: ['camelCase'],
37
+ format: ['strictCamelCase'],
38
+ },
39
+ {
40
+ selector: ['typeLike'],
41
+ format: ['StrictPascalCase'],
39
42
  },
40
43
  {
41
44
  selector: ['variableLike'],
42
- format: ['camelCase'],
45
+ format: ['strictCamelCase'],
43
46
  leadingUnderscore: 'allow',
44
47
  },
45
48
  {
46
49
  selector: ['variable'],
47
50
  modifiers: ['const', 'global', 'exported'],
48
- types: ['boolean', 'string', 'number'],
49
- format: ['UPPER_CASE'],
51
+ format: ['strictCamelCase', 'UPPER_CASE', 'StrictPascalCase'],
50
52
  },
51
53
  {
52
- selector: ['variableLike'],
53
- types: ['boolean'],
54
- format: ['PascalCase'],
55
- prefix: ['is', 'should', 'has', 'can', 'did', 'will', 'contains'],
54
+ selector: ['property'],
55
+ format: ['strictCamelCase', 'snake_case', 'UPPER_CASE'],
56
56
  },
57
57
  {
58
- selector: ['typeLike'],
59
- format: ['PascalCase'],
58
+ selector: ['variableLike'],
59
+ types: ['boolean'],
60
+ format: ['StrictPascalCase'],
61
+ prefix: [
62
+ 'is',
63
+ 'are',
64
+ 'was',
65
+ 'were',
66
+ 'should',
67
+ 'has',
68
+ 'can',
69
+ 'did',
70
+ 'will',
71
+ 'contains',
72
+ ],
60
73
  },
61
74
  {
62
75
  selector: ['memberLike'],
63
76
  modifiers: ['private'],
64
- format: ['camelCase'],
77
+ format: ['strictCamelCase'],
65
78
  leadingUnderscore: 'require',
66
79
  },
67
80
  {
68
- selector: ['memberLike'],
69
- modifiers: ['requiresQuotes'],
81
+ selector: ['variableLike'],
82
+ modifiers: ['destructured'],
70
83
  format: null,
71
84
  },
72
85
  {
73
- selector: ['variableLike'],
74
- modifiers: ['destructured'],
86
+ selector: ['memberLike', 'property'],
87
+ modifiers: ['requiresQuotes'],
75
88
  format: null,
76
89
  },
77
90
  ],
@@ -104,6 +117,7 @@ const typescript = {
104
117
  '@typescript-eslint/strict-boolean-expressions': 'error',
105
118
  '@typescript-eslint/switch-exhaustiveness-check': 'error',
106
119
  '@typescript-eslint/type-annotation-spacing': 'error',
120
+ '@typescript-eslint/unbound-method': 'off',
107
121
  '@typescript-eslint/restrict-template-expressions': [
108
122
  'error',
109
123
  {
@@ -112,11 +126,6 @@ const typescript = {
112
126
  allowNullish: true,
113
127
  },
114
128
  ],
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
129
  '@typescript-eslint/no-unused-vars': 'off',
121
130
  'unused-imports/no-unused-vars': [
122
131
  '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.3",
4
4
  "author": "SlashNephy <spica@starry.blue> (https://spica.starry.blue/)",
5
5
  "repository": {
6
6
  "type": "git",