UNPKG

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