UNPKG

1.24 kBJavaScriptView Raw
1/* Copyright 2017 Agneta Network Applications, LLC.
2 *
3 * Source file: .eslintrc.js
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17module.exports = {
18 "env": {
19 "es6": true,
20 "node": true
21 },
22 "extends": "eslint:recommended",
23 "parserOptions": {
24 "sourceType": "module"
25 },
26 "rules": {
27 "no-console": ["error", {
28 allow: ["warn", "error", "log"]
29 }],
30 "no-unused-vars": ["error", {
31 "varsIgnorePattern": "^_e_"
32 }],
33 "indent": [
34 "error",
35 2, {
36 "SwitchCase": 1
37 }
38 ],
39 "linebreak-style": [
40 "error",
41 "unix"
42 ],
43 "quotes": [
44 "error",
45 "single"
46 ],
47 "semi": [
48 "error",
49 "always"
50 ]
51 }
52};