1 | {
|
2 | "env": {
|
3 | "browser": true,
|
4 | "commonjs": true,
|
5 | "es6": true,
|
6 | "mocha": true
|
7 | },
|
8 | "globals": {
|
9 | "assert": true,
|
10 | "expect": true,
|
11 | "karmaHTML": true
|
12 | },
|
13 | "plugins": ["node"],
|
14 | "extends": ["eslint:recommended"],
|
15 | "parserOptions": {
|
16 | "sourceType": "module",
|
17 | "ecmaVersion": 2017
|
18 | },
|
19 | "rules": {
|
20 | "indent": ["error", 2],
|
21 | "semi": ["error", "always"],
|
22 | "no-console": [0],
|
23 | "quotes": [2, "single"],
|
24 | "curly": ["error", "all"],
|
25 | "no-var": "error",
|
26 | "require-jsdoc": [
|
27 | "error",
|
28 | {
|
29 | "require": {
|
30 | "FunctionDeclaration": true,
|
31 | "MethodDefinition": true,
|
32 | "ClassDeclaration": true,
|
33 | "ArrowFunctionExpression": false,
|
34 | "FunctionExpression": true
|
35 | }
|
36 | }
|
37 | ]
|
38 | }
|
39 | }
|