UNPKG

1.89 kBPlain TextView Raw
1extends: 'eslint:recommended'
2
3env:
4 node: true
5 es6: true
6
7ecmaFeatures:
8 forOf: true
9 modules: true
10
11rules:
12 # Possible Errors
13 no-console: 0
14 valid-jsdoc: [0, {requireReturn: false, requireParamDescription: false, requireReturnDescription: false}]
15
16 # Best Practices
17 consistent-return: 0
18 curly: 0
19 block-scoped-var: 2
20 no-else-return: 2
21 no-process-env: 2
22 no-self-compare: 2
23 no-throw-literal: 2
24 no-void: 2
25 radix: 2
26 wrap-iife: [2, outside]
27
28 # Strict Mode
29 strict: [2, global]
30
31 # Variables
32 no-shadow: 0
33 no-use-before-define: [2, nofunc]
34
35 # Node.js
36 no-process-exit: 0
37 handle-callback-err: [2, err]
38 no-new-require: 2
39 no-path-concat: 2
40
41 # Stylistic Issues
42 quotes: [2, single]
43 camelcase: 0
44 indent: [2, 2]
45 no-lonely-if: 2
46 no-floating-decimal: 2
47 brace-style: [2, 1tbs, { "allowSingleLine": true }]
48 comma-style: [2, last]
49 consistent-this: [0, self]
50 func-style: 0
51 max-nested-callbacks: 0
52 new-cap: [2, {capIsNewExceptions: [JID]}]
53 no-inline-comments: 2
54 no-multiple-empty-lines: [2, {max: 1}]
55 no-nested-ternary: 2
56 semi-spacing: [2, {before: false, after: true}]
57 operator-assignment: [2, always]
58 padded-blocks: [2, never]
59 quote-props: [2, as-needed]
60 space-before-function-paren: [2, always]
61 space-after-keywords: [2, always]
62 space-before-blocks: [2, always]
63 array-bracket-spacing: [2, never]
64 computed-property-spacing: [2, never]
65 space-in-parens: [2, never]
66 space-unary-ops: [2, {words: true, nonwords: false}]
67 #spaced-line-comment: [2, always]
68 wrap-regex: 2
69 linebreak-style: [2, unix]
70 semi: [2, always]
71
72 # ECMAScript 6
73 arrow-spacing: [2, {before: true, after: true}]
74 no-class-assign: 2
75 no-const-assign: 2
76 no-dupe-class-members: 2
77 no-this-before-super: 2
78 no-var: 2
79 object-shorthand: [2, always]
80 prefer-arrow-callback: 2
81 prefer-const: 2
82 prefer-spread: 2
83 prefer-template: 2