eslint-config-gristow 2.0.6 → 2.0.8
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/package.json +1 -1
- package/rules/shared-rules.cjs +4 -1
- package/rules/svelte-rules.cjs +1 -2
package/package.json
CHANGED
package/rules/shared-rules.cjs
CHANGED
|
@@ -79,6 +79,7 @@ module.exports = {
|
|
|
79
79
|
'tsdoc/syntax': 'off',
|
|
80
80
|
// Conflicts w/ prettier:
|
|
81
81
|
'object-curly-newline': 'off',
|
|
82
|
+
curly: ['error', 'all'],
|
|
82
83
|
'operator-linebreak': 'off',
|
|
83
84
|
'implicit-arrow-linebreak': 'off',
|
|
84
85
|
'function-paren-newline': 'off',
|
|
@@ -140,7 +141,9 @@ module.exports = {
|
|
|
140
141
|
// often require these.
|
|
141
142
|
{
|
|
142
143
|
selector: 'objectLiteralProperty',
|
|
143
|
-
|
|
144
|
+
custom: {
|
|
145
|
+
regex: '[a-zA-Z]+(_[a-zA-Z\\d]+)*',
|
|
146
|
+
},
|
|
144
147
|
},
|
|
145
148
|
// Make sure types and interfaces are in PascalCase. (Also applies
|
|
146
149
|
// to classes.)
|
package/rules/svelte-rules.cjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
// Must disable to make 2-way data binding possible
|
|
3
3
|
'import/no-mutable-exports': 'off',
|
|
4
|
-
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
|
|
5
4
|
'no-labels': 'off',
|
|
6
5
|
'no-restricted-syntax': 'off',
|
|
7
6
|
// In svelte we often have to init an export ot undefined to mark it as an optional
|
|
@@ -10,4 +9,4 @@ module.exports = {
|
|
|
10
9
|
// Svelte checking will handle verifying resolved imports, and eslint is unfortunately
|
|
11
10
|
// unaware of vite paths:
|
|
12
11
|
'import/no-unresolved': 'off',
|
|
13
|
-
};
|
|
12
|
+
};
|