forked from danbooru/danbooru
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
95 lines (92 loc) · 2.18 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
env:
browser: true
es6: true
extends: 'eslint:recommended'
parserOptions:
sourceType: module
ecmaVersion: 2017
globals:
$: false
require: false
parser: "@babel/eslint-parser"
plugins:
- babel
ignorePatterns:
- app/javascript/vendor/**/*.js
rules:
# https://eslint.org/docs/rules/
array-callback-return: error
babel/no-unused-expressions: error
block-scoped-var: error
consistent-return: error
default-case: error
dot-notation: error
eqeqeq: error
init-declarations: error
no-caller: error
no-empty-function: error
no-eval: error
no-extend-native: error
no-implicit-coercion: error
no-lone-blocks: error
no-lonely-if: error
no-mixed-operators: error
#no-new: warn
no-new-wrappers: error
no-return-assign: error
no-self-compare: error
no-sequences: error
no-shadow: error
no-shadow-restricted-names: error
#no-unused-expressions: error
no-unused-vars:
- error
- argsIgnorePattern: "^_"
args: none
no-use-before-define: error
no-useless-call: error
no-useless-concat: error
no-useless-return: error
# formatting issues
array-bracket-spacing: warn
brace-style: [warn, 1tbs, allowSingleLine: true]
comma-spacing: warn
curly: warn
dot-location: [warn, property]
eol-last: warn
func-call-spacing: warn
indent: [warn, 2]
linebreak-style: [warn, unix]
key-spacing: warn
keyword-spacing: warn
no-multiple-empty-lines: warn
no-tabs: warn
no-trailing-spaces: warn
no-whitespace-before-property: warn
space-before-blocks: warn
space-in-parens: warn
space-infix-ops: warn
space-unary-ops: warn
spaced-comment: warn
# These rules are potentially useful, but are currently too noisy to enable.
# block-spacing: warn
# no-alert: warn
# no-extra-parens: warn
# no-magic-numbers:
# - warn
# - ignore: [-1, 0, 1]
# ignoreArrayIndexes: true
# enforceConst: true
# no-multi-spaces: warn
# no-negated-condition: warn
# no-param-reassign: warn
# no-var: warn
# object-curly-spacing: warn
# prefer-arrow-callback: warn
# prefer-const: warn
# prefer-template: warn
# quote-props: [warn, consistent-as-needed]
# radix: warn
# semi: warn
# space-before-function-paren: warn
# vars-on-top: warn