Skip to content

Commit c72cf1b

Browse files
committed
update eslint config
1 parent a2e9ced commit c72cf1b

File tree

4 files changed

+10
-166
lines changed

4 files changed

+10
-166
lines changed

.eslintrc

Lines changed: 4 additions & 165 deletions
Original file line numberDiff line numberDiff line change
@@ -1,171 +1,10 @@
11
{
2+
"extends": "standard",
3+
"plugins": ["html"],
24
"env": {
3-
"browser": true
5+
"amd": true
46
},
5-
"globals": {
6-
"define": true,
7-
"Vue": true,
8-
"Firebase": true,
9-
"describe": true,
10-
"it": true,
11-
"expect": true
12-
},
13-
"plugins": [
14-
"html"
15-
],
167
"rules": {
17-
"accessor-pairs": 2,
18-
"array-bracket-spacing": 0,
19-
"block-scoped-var": 0,
20-
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
21-
"camelcase": 0,
22-
"comma-dangle": [2, "never"],
23-
"comma-spacing": [2, { "before": false, "after": true }],
24-
"comma-style": [2, "last"],
25-
"complexity": 0,
26-
"computed-property-spacing": 0,
27-
"consistent-return": 0,
28-
"consistent-this": 0,
29-
"constructor-super": 2,
30-
"curly": [2, "multi-line"],
31-
"default-case": 0,
32-
"dot-location": [2, "property"],
33-
"dot-notation": 0,
34-
"eol-last": 2,
35-
"eqeqeq": [2, "allow-null"],
36-
"func-names": 0,
37-
"func-style": 0,
38-
"generator-star-spacing": [2, { "before": true, "after": true }],
39-
"guard-for-in": 0,
40-
"handle-callback-err": [2, "^(err|error)$" ],
41-
"indent": [2, 2, { "SwitchCase": 1 }],
42-
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
43-
"linebreak-style": 0,
44-
"lines-around-comment": 0,
45-
"max-nested-callbacks": 0,
46-
"new-cap": [2, { "newIsCap": true, "capIsNew": false }],
47-
"new-parens": 2,
48-
"newline-after-var": 0,
49-
"no-alert": 0,
50-
"no-array-constructor": 2,
51-
"no-caller": 2,
52-
"no-catch-shadow": 0,
53-
"no-cond-assign": 2,
54-
"no-console": 0,
55-
"no-constant-condition": 0,
56-
"no-continue": 0,
57-
"no-control-regex": 2,
58-
"no-debugger": 2,
59-
"no-delete-var": 2,
60-
"no-div-regex": 0,
61-
"no-dupe-args": 2,
62-
"no-dupe-keys": 2,
63-
"no-duplicate-case": 2,
64-
"no-else-return": 0,
65-
"no-empty": 0,
66-
"no-empty-character-class": 2,
67-
"no-empty-label": 2,
68-
"no-eq-null": 0,
69-
"no-eval": 2,
70-
"no-ex-assign": 2,
71-
"no-extend-native": 2,
72-
"no-extra-bind": 2,
73-
"no-extra-boolean-cast": 2,
74-
"no-extra-parens": 0,
75-
"no-extra-semi": 0,
76-
"no-fallthrough": 2,
77-
"no-floating-decimal": 2,
78-
"no-func-assign": 2,
79-
"no-implied-eval": 2,
80-
"no-inline-comments": 0,
81-
"no-inner-declarations": [2, "functions"],
82-
"no-invalid-regexp": 2,
83-
"no-irregular-whitespace": 2,
84-
"no-iterator": 2,
85-
"no-label-var": 2,
86-
"no-labels": 2,
87-
"no-lone-blocks": 2,
88-
"no-lonely-if": 0,
89-
"no-loop-func": 0,
90-
"no-mixed-requires": 0,
91-
"no-mixed-spaces-and-tabs": 2,
92-
"no-multi-spaces": 2,
93-
"no-multi-str": 2,
94-
"no-multiple-empty-lines": [2, { "max": 1 }],
95-
"no-native-reassign": 2,
96-
"no-negated-in-lhs": 2,
97-
"no-nested-ternary": 0,
98-
"no-new": 0,
99-
"no-new-func": 0,
100-
"no-new-object": 2,
101-
"no-new-require": 2,
102-
"no-new-wrappers": 2,
103-
"no-obj-calls": 2,
104-
"no-octal": 2,
105-
"no-octal-escape": 2,
106-
"no-param-reassign": 0,
107-
"no-path-concat": 0,
108-
"no-process-env": 0,
109-
"no-process-exit": 0,
110-
"no-proto": 0,
111-
"no-redeclare": 2,
112-
"no-regex-spaces": 2,
113-
"no-restricted-modules": 0,
114-
"no-return-assign": 2,
115-
"no-script-url": 0,
116-
"no-self-compare": 2,
117-
"no-sequences": 2,
118-
"no-shadow": 0,
119-
"no-shadow-restricted-names": 2,
120-
"no-spaced-func": 2,
121-
"no-sparse-arrays": 2,
122-
"no-sync": 0,
123-
"no-ternary": 0,
124-
"no-this-before-super": 2,
125-
"no-throw-literal": 2,
126-
"no-trailing-spaces": 2,
127-
"no-undef": 2,
128-
"no-undef-init": 2,
129-
"no-undefined": 0,
130-
"no-underscore-dangle": 0,
131-
"no-unexpected-multiline": 2,
132-
"no-unneeded-ternary": 2,
133-
"no-unreachable": 2,
134-
"no-unused-expressions": 0,
135-
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
136-
"no-use-before-define": 0,
137-
"no-var": 0,
138-
"no-void": 0,
139-
"no-warning-comments": 0,
140-
"no-with": 2,
141-
"object-curly-spacing": 0,
142-
"object-shorthand": 0,
143-
"one-var": [2, { "initialized": "never" }],
144-
"operator-assignment": 0,
145-
"operator-linebreak": [2, "after", { "overrides": { "?": "before", ":": "before" } }],
146-
"padded-blocks": 0,
147-
"prefer-const": 0,
148-
"quote-props": 0,
149-
"quotes": [2, "single", "avoid-escape"],
150-
"radix": 2,
151-
"semi": [2, "never"],
152-
"semi-spacing": 0,
153-
"sort-vars": 0,
154-
"space-after-keywords": [2, "always"],
155-
"space-before-blocks": [2, "always"],
156-
"space-before-function-paren": [2, "always"],
157-
"space-in-parens": [2, "never"],
158-
"space-infix-ops": 2,
159-
"space-return-throw-case": 2,
160-
"space-unary-ops": [2, { "words": true, "nonwords": false }],
161-
"spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!"] }],
162-
"strict": 0,
163-
"use-isnan": 2,
164-
"valid-jsdoc": 0,
165-
"valid-typeof": 2,
166-
"vars-on-top": 0,
167-
"wrap-iife": [2, "any"],
168-
"wrap-regex": 0,
169-
"yoda": [2, "never"]
8+
"no-new": 0
1709
}
17110
}

examples/todoApp/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
</div>
2424

2525
<script>
26+
/* global Vue, Firebase */
2627
new Vue({
2728
el: '#app',
2829
data: {

src/vuefire.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
root.VueFire = factory()
1010
}
1111
})(this, function () {
12-
1312
/**
1413
* Check if a value is an object.
1514
*

tests/.eslintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"env": {
3+
"jasmine": true
4+
}
5+
}

0 commit comments

Comments
 (0)