bahlint 28.58.69340004 → 28.58.69340005

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/bin/bahlint.js +39 -9
  2. package/package.json +1 -1
package/bin/bahlint.js CHANGED
@@ -186,15 +186,45 @@ ${getErrorMessage(error)}`;
186
186
  },
187
187
  },
188
188
  rules: {
189
- // Add some basic rules with fixable options
190
- 'no-console': 'off',
191
- 'no-unused-vars': 'warn',
192
- 'no-undef': 'warn',
193
- 'no-multiple-empty-lines': ['warn', { max: 1 }],
194
- 'eol-last': ['warn', 'always'],
195
- 'no-trailing-spaces': 'warn',
196
- semi: ['warn', 'always'],
197
- quotes: ['warn', 'double'],
189
+ // Comprehensive set of fixable rules for general use
190
+ 'no-console': 'off', // Allow console (not fixable but common)
191
+ 'no-var': 'warn', // Prefer const/let - FIXABLE
192
+ 'prefer-const': 'warn', // Prefer const when possible - FIXABLE
193
+ 'no-unused-vars': ['warn', {
194
+ 'varsIgnorePattern': '^_',
195
+ 'argsIgnorePattern': '^_'
196
+ }], // Warn on unused vars
197
+ 'no-undef': 'warn', // Warn on undefined vars
198
+ 'no-multiple-empty-lines': ['warn', {
199
+ max: 1
200
+ }], // Limit empty lines - FIXABLE
201
+ 'eol-last': ['warn', 'always'], // Require newline at EOF - FIXABLE
202
+ 'no-trailing-spaces': 'warn', // Remove trailing spaces - FIXABLE
203
+ 'semi': ['warn', 'always'], // Require semicolons - FIXABLE
204
+ 'quotes': ['warn', 'double'], // Prefer double quotes - FIXABLE
205
+ 'indent': ['warn', 2], // 2-space indent - FIXABLE
206
+ 'comma-spacing': ['warn', {
207
+ 'before': false,
208
+ 'after': true
209
+ }], // Space after commas - FIXABLE
210
+ 'keyword-spacing': ['warn', {
211
+ 'before': true,
212
+ 'after': true
213
+ }], // Spacing around keywords - FIXABLE
214
+ 'space-in-parens': ['warn', 'never'], // No spaces in parens - FIXABLE
215
+ 'object-curly-spacing': ['warn', 'always'], // Spaces in curly braces - FIXABLE
216
+ 'array-bracket-spacing': ['warn', 'never'], // No spaces in brackets - FIXABLE
217
+ 'block-spacing': ['warn', 'always'], // Spacing in blocks - FIXABLE
218
+ 'computed-property-spacing': ['warn', 'never'], // No space in computed props - FIXABLE
219
+ 'func-call-spacing': ['warn', 'never'], // No space before paren - FIXABLE
220
+ 'key-spacing': ['warn', {
221
+ 'beforeColon': false,
222
+ 'afterColon': true
223
+ }], // Spacing in object keys - FIXABLE
224
+ 'arrow-spacing': ['warn', {
225
+ 'before': true,
226
+ 'after': true
227
+ }] // Arrow function spacing - FIXABLE
198
228
  },
199
229
  };
200
230
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bahlint",
3
- "version": "28.58.69340004",
3
+ "version": "28.58.69340005",
4
4
  "author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
5
5
  "description": "An AST-based pattern checker for JavaScript.",
6
6
  "type": "commonjs",