Skip to content

Commit 35642e0

Browse files
committed
Disable computed-property-spacing rule
Better to rely on author descretion to determine what makes the most sense in terms of readability and clarity.
1 parent 909c4aa commit 35642e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

etc/eslint/rules/style.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,12 @@ rules[ 'comma-spacing' ] = [ 'error', {
224224
rules[ 'comma-style' ] = [ 'error', 'last' ];
225225

226226
/**
227-
* Prefer using whitespace within computed properties.
227+
* Prefer using whitespace within computed properties. NOTE: disabled, as hard to enforce a general rule. While whitespace is preferred, readability and clarity is preferred to a greater extent.
228228
*
229229
* @name computed-property-spacing
230230
* @memberof rules
231231
* @type {Array}
232-
* @default [ 'error', 'always' ]
232+
* @default [ 'off', 'always' ]
233233
* @see [computed-property-spacing]{@link http://eslint.org/docs/rules/computed-property-spacing}
234234
*
235235
* @example
@@ -245,7 +245,7 @@ rules[ 'comma-style' ] = [ 'error', 'last' ];
245245
* // Good...
246246
* var x = obj[ prop ];
247247
*/
248-
rules[ 'computed-property-spacing' ] = [ 'warn', 'always' ];
248+
rules[ 'computed-property-spacing' ] = [ 'off', 'always' ];
249249

250250
/**
251251
* Require a `this` variable to only be aliased as `self`.

0 commit comments

Comments
 (0)