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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-gristow",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "Eslint settings for Greg Ristow",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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
- format: ['camelCase', 'snake_case'],
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.)
@@ -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
+ };