@kitschpatrol/eslint-config 4.3.0 → 4.3.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.
- package/eslint.config.cjs +36 -6
- package/package.json +2 -2
package/eslint.config.cjs
CHANGED
|
@@ -85,27 +85,57 @@ const globalRulesTypescript = {
|
|
|
85
85
|
'no-undef': 'off',
|
|
86
86
|
'no-unused-vars': 'off',
|
|
87
87
|
'@typescript-eslint/naming-convention': [
|
|
88
|
+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/naming-convention.md
|
|
88
89
|
'error',
|
|
90
|
+
// Group selectors
|
|
89
91
|
{
|
|
92
|
+
// Matches everything
|
|
90
93
|
selector: 'default',
|
|
91
|
-
format: ['camelCase'
|
|
94
|
+
format: ['camelCase'],
|
|
92
95
|
},
|
|
93
96
|
{
|
|
97
|
+
// Forgive quoted things
|
|
94
98
|
selector: 'default',
|
|
95
99
|
format: null,
|
|
96
100
|
modifiers: ['requiresQuotes'],
|
|
97
101
|
},
|
|
98
102
|
{
|
|
99
|
-
|
|
100
|
-
|
|
103
|
+
// Matches the same as class, enum, interface, typeAlias, typeParameter
|
|
104
|
+
selector: 'typeLike',
|
|
105
|
+
format: ['StrictPascalCase'],
|
|
101
106
|
},
|
|
102
107
|
{
|
|
103
|
-
|
|
108
|
+
// Matches the same as function, parameter and variable
|
|
109
|
+
selector: 'variableLike',
|
|
110
|
+
leadingUnderscore: 'allow',
|
|
111
|
+
trailingUnderscore: 'allow',
|
|
104
112
|
format: ['camelCase'],
|
|
105
113
|
},
|
|
114
|
+
// {
|
|
115
|
+
// // matches the same as accessor, enumMember, method, parameterProperty, property
|
|
116
|
+
// selector: 'memberLike'
|
|
117
|
+
// // format: []
|
|
118
|
+
// },
|
|
119
|
+
// {
|
|
120
|
+
// // matches the same as classMethod, objectLiteralMethod, typeMethod
|
|
121
|
+
// selector: 'method'
|
|
122
|
+
// // format: []
|
|
123
|
+
// },
|
|
124
|
+
// {
|
|
125
|
+
// // matches the same as classProperty, objectLiteralProperty, typeProperty
|
|
126
|
+
// selector: 'property'
|
|
127
|
+
// // format: []
|
|
128
|
+
// },
|
|
129
|
+
// Individual selectors
|
|
106
130
|
{
|
|
107
|
-
selector: '
|
|
108
|
-
format: ['StrictPascalCase'],
|
|
131
|
+
selector: 'import',
|
|
132
|
+
format: ['camelCase', 'StrictPascalCase'],
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
// Allow Component import
|
|
136
|
+
selector: 'variable',
|
|
137
|
+
modifiers: ['destructured'],
|
|
138
|
+
format: ['camelCase', 'StrictPascalCase'],
|
|
109
139
|
},
|
|
110
140
|
],
|
|
111
141
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/eslint-config",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Eslint config for @kitschpatrol/shared-config",
|
|
6
6
|
"repository": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"eslint-plugin-astro": "^0.30.0",
|
|
47
47
|
"eslint-plugin-html": "^7.1.0",
|
|
48
48
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
49
|
-
"eslint-plugin-mdx": "^3.0.
|
|
49
|
+
"eslint-plugin-mdx": "^3.0.1",
|
|
50
50
|
"eslint-plugin-n": "^16.5.0",
|
|
51
51
|
"eslint-plugin-perfectionist": "^2.5.0",
|
|
52
52
|
"eslint-plugin-svelte": "^2.35.1",
|