forked from Tylian/XKit
-
Notifications
You must be signed in to change notification settings - Fork 135
/
.eslintrc.yml
74 lines (71 loc) · 1.83 KB
/
.eslintrc.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
root: true
parserOptions:
ecmaVersion: 2018
env:
es6: true
browser: true
jquery: true
webextensions: true
extends: eslint:recommended
rules:
dot-notation: [error, allowPattern: "^[A-Z]"]
id-length: [error, exceptions: [i, j, e, x, y]]
no-caller: error
no-console: off
no-empty: off
no-implied-eval: error
no-mixed-spaces-and-tabs: [error, smart-tabs]
no-unused-vars:
- error
- vars: local
args: none
no-shadow: error
no-unsafe-negation: error
no-with: error
valid-jsdoc:
- error
- requireReturn: false
requireParamDescription: false
requireReturnDescription: false
indent: [error, tab, {SwitchCase: 1, MemberExpression: off, CallExpression: {arguments: off}}]
semi: error
brace-style: [error, 1tbs, allowSingleLine: true]
linebreak-style: [error, unix]
semi-spacing: error
comma-spacing: error
space-infix-ops: error
template-curly-spacing: error
space-before-function-paren: [error, {anonymous: never, named: never, asyncArrow: always}]
space-before-blocks: error
keyword-spacing:
- error
- before: true
after: true
no-useless-escape: off
no-prototype-builtins: off
overrides:
- files: "*.mjs"
parserOptions:
sourceType: module
globals:
BigInt: readonly
_: readonly
XKit: writable
XBridge: writable
centerIt: writable
Tumblr: writable
add_tag: writable
storage_max: writable
storage_used: writable
framework_version: writable
getBridgeError: writable
GM_flushStorage: writable
GM_deleteAllValues: writable
GM_getValue: writable
GM_deleteValue: writable
GM_setValue: writable
GM_log: writable
GM_openInTab: writable
GM_listValues: writable
GM_xmlhttpRequest: writable