-
Notifications
You must be signed in to change notification settings - Fork 0
/
es6.js
30 lines (29 loc) · 1.12 KB
/
es6.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
'use strict';
module.exports = {
extends: [
'loris/es6'
],
rules: {
'array-bracket-spacing': [ 'error', 'always' ],
'camelcase': [ 'error', { properties: 'never' } ],
'consistent-this': [ 'error', 'that' ],
'eqeqeq': [ 'error', 'smart' ],
'keyword-spacing': [ 'error', { before: true, after: true, overrides: { catch: { after: false } } } ],
'no-bitwise': [ 'error' ],
'no-console': [ 'error', { allow: [ 'warn', 'error' ] } ],
'no-empty': [ 'error', { allowEmptyCatch: true } ],
'no-eq-null': [ 'warn' ],
'no-implicit-coercion': [ 'error', { allow: [ '!!' ] } ],
'object-curly-spacing': [ 'error', 'always' ],
'object-shorthand': 'error',
'quote-props': [ 'error', 'consistent-as-needed' ],
'quotes': [ 'error', 'single' ],
'space-before-function-paren': [ 'error', {
'anonymous': 'never',
'named': 'never',
'asyncArrow': 'always'
}],
'spaced-comment': [ 'error', 'always', { block: { balanced: true } } ],
'strict': [ 'error', 'global' ]
}
};