@willbooster/eslint-config-next 2.0.2 → 2.0.4
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.js +21 -16
- package/package.json +1 -1
package/eslint.config.js
CHANGED
|
@@ -39,23 +39,23 @@ const config = [
|
|
|
39
39
|
{
|
|
40
40
|
ignores: [
|
|
41
41
|
// Directories
|
|
42
|
-
'
|
|
43
|
-
'3rd-party/**',
|
|
44
|
-
'
|
|
45
|
-
'__generated__/**',
|
|
46
|
-
'android/**',
|
|
47
|
-
'bin/**',
|
|
48
|
-
'build/**',
|
|
49
|
-
'coverage/**',
|
|
50
|
-
'dist/**',
|
|
51
|
-
'ios/**',
|
|
52
|
-
'no-format/**',
|
|
53
|
-
'node_modules/**',
|
|
54
|
-
'temp/**',
|
|
55
|
-
'test-fixtures/**',
|
|
42
|
+
'**/.yarn/**',
|
|
43
|
+
'**/3rd-party/**',
|
|
44
|
+
'**/@types/**',
|
|
45
|
+
'**/__generated__/**',
|
|
46
|
+
'**/android/**',
|
|
47
|
+
'**/bin/**',
|
|
48
|
+
'**/build/**',
|
|
49
|
+
'**/coverage/**',
|
|
50
|
+
'**/dist/**',
|
|
51
|
+
'**/ios/**',
|
|
52
|
+
'**/no-format/**',
|
|
53
|
+
'**/node_modules/**',
|
|
54
|
+
'**/temp/**',
|
|
55
|
+
'**/test-fixtures/**',
|
|
56
56
|
// Files
|
|
57
|
-
'
|
|
58
|
-
'
|
|
57
|
+
'**/*.d.ts',
|
|
58
|
+
'**/*.min.*js',
|
|
59
59
|
],
|
|
60
60
|
},
|
|
61
61
|
// cf. https://github.com/eslint/eslint/blob/main/packages/js/src/configs/eslint-recommended.js
|
|
@@ -202,6 +202,11 @@ const config = [
|
|
|
202
202
|
leadingUnderscore: 'allow',
|
|
203
203
|
trailingUnderscore: 'allow',
|
|
204
204
|
},
|
|
205
|
+
{
|
|
206
|
+
selector: 'function',
|
|
207
|
+
format: ['camelCase', 'PascalCase'], // Allow PascalCase for React component functions
|
|
208
|
+
leadingUnderscore: 'allow',
|
|
209
|
+
},
|
|
205
210
|
{
|
|
206
211
|
selector: 'typeLike',
|
|
207
212
|
format: ['PascalCase'],
|