forked from 0-vortex/twitch-changelog-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
57 lines (55 loc) · 1.35 KB
/
.eslintrc.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
module.exports = {
globals: {
// __PATH_PREFIX__: true,
// USER: true,
// API_KEY: true,
},
ignorePatterns: ['dist/*', 'worker/*'],
extends: [
'airbnb/base',
],
env: {
node: true,
es2020: true,
mocha: true,
},
parserOptions: {
ecmaFeatures: {
globalReturn: true,
impliedStrict: true,
},
},
rules: {
// airbnb scope overrides
'class-methods-use-this': 'off',
// prettier replacement rules
'max-len': [2, 120, 2, {
ignoreUrls: true,
ignoreComments: false,
comments: 300,
}],
indent: [2, 2],
semi: [2, 'always'],
quotes: [2, 'single', {allowTemplateLiterals: true}],
'comma-dangle': [2, 'always-multiline'],
'object-curly-spacing': [2, 'never'],
'arrow-parens': [2, 'as-needed'],
'linebreak-style': 0,
'array-bracket-spacing': [2, 'never'],
'function-call-argument-newline': [2, 'consistent'],
'function-paren-newline': [2, 'consistent'],
'object-property-newline': 2,
'no-param-reassign': 0,
'consistent-return': 0,
'import/prefer-default-export': [1],
'no-restricted-globals': 0,
// overrides
'no-unused-vars': 1,
'no-unused-expressions': [2, {allowShortCircuit: true}],
'no-console': 0,
'no-plusplus': 1,
'no-bitwise': 1,
'no-underscore-dangle': 1,
'max-classes-per-file': 1,
},
};