CodeCommitsIssuesPull requestsActionsInsightsSecurity
master

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS
SSH

Download ZIP

.eslintrc

152lines · modecode

1{
2 "env": {
3 "browser": true,
4 "es6": true,
5 },
6 "extends": "eslint:recommended",
7 "ecmaVersion": 7,
8 "globals": {
9 "INSTALL_OPTIONS": null,
10 "API_BASE": null,
11 "APP_BASE": null,
12 "ASSET_BASE": null,
13 "EAGER_BASE": null,
14 "Eager": null,
15 "process": null,
16 "VERSION": null
17 },
18 "parser": "babel-eslint",
19 "plugins": [
20 "babel"
21 ],
22 "rules": {
23 "babel/object-curly-spacing": ["warn", "never"],
24 "array-bracket-spacing": ["warn", "never"],
25 "arrow-parens": ["warn", "as-needed"],
26 "arrow-spacing": ["warn", {
27 "before": true,
28 "after": true
29 }],
30 "block-spacing": ["warn", "always"],
31 "brace-style": ["warn", "stroustrup", { "allowSingleLine": true }],
32 "camelcase": "off",
33 "comma-dangle": ["error", "never"],
34 "comma-spacing": ["error", {
35 "before": false,
36 "after": true
37 }],
38 "comma-style": ["warn", "last"],
39 "computed-property-spacing": ["warn", "never"],
40 "consistent-this": ["error", "self"],
41 "consistent-return": "off",
42 "constructor-super": "error",
43 "curly": "off",
44 "default-case": "warn",
45 "dot-location": ["error", "property"],
46 "dot-notation": "warn",
47 "eol-last": "warn",
48 "eqeqeq": ["error", "allow-null"],
49 "indent": ["warn", 2, {
50 "SwitchCase": 1,
51 "VariableDeclarator": 1
52 }],
53 "key-spacing": ["warn", {
54 "afterColon": true,
55 "beforeColon": false,
56 "mode": "strict"
57 }],
58 "keyword-spacing": ["warn", {
59 "after": true,
60 "before": true
61 }],
62 "jsx-quotes": ["warn", "prefer-double"],
63 "linebreak-style": ["error", "unix"],
64 "max-nested-callbacks": ["warn", 6],
65 "new-cap": "error",
66 "no-cond-assign": ["error", "except-parens"],
67 "new-parens": "error",
68 "newline-after-var": "warn",
69 "no-array-constructor": "error",
70 "no-caller": "error",
71 "no-class-assign": "error",
72 "no-console": "off",
73 "no-const-assign": "error",
74 "no-constant-condition": "warn",
75 "no-continue": "warn",
76 "no-debugger": "warn",
77 "no-delete-var": "error",
78 "no-dupe-class-members": "error",
79 "no-else-return": "warn",
80 "no-eval": "error",
81 "no-extend-native": "error",
82 "no-extra-bind": "warn",
83 "no-extra-parens": ["warn", "all"],
84 "no-floating-decimal": "error",
85 "no-implied-eval": "error",
86 "no-inline-comments": "off",
87 "no-labels": "warn",
88 "no-label-var": "error",
89 "no-lone-blocks": "error",
90 "no-lonely-if": "warn",
91 "no-loop-func": "error",
92 "no-mixed-spaces-and-tabs": "warn",
93 "no-multi-spaces": "warn",
94 "no-multiple-empty-lines": "warn",
95 "no-native-reassign": "error",
96 "no-nested-ternary": "warn",
97 "no-new": "off",
98 "no-new-func": "error",
99 "no-new-object": "error",
100 "no-new-wrappers": "error",
101 "no-restricted-syntax": ["error",
102 "WithStatement"
103 ],
104 "no-redeclare": "error",
105 "no-return-assign": "off",
106 "no-script-url": "error",
107 "no-self-compare": "error",
108 "no-sequences": "error",
109 "no-shadow-restricted-names": "error",
110 "no-spaced-func": "warn",
111 "no-this-before-super": "error",
112 "no-throw-literal": "error",
113 "no-undef": "error",
114 "no-undef-init": "error",
115 "no-undefined": "error",
116 "no-unexpected-multiline": "error",
117 "no-unused-vars": "warn",
118 "no-use-before-define": "error",
119 "no-useless-call": "warn",
120 "no-useless-concat": "warn",
121 "no-var": "error",
122 "no-void": "warn",
123 "no-with": "error",
124 "object-shorthand": ["warn", "always"],
125 "one-var": ["warn", {
126 "let": "never",
127 "const": "never"
128 }],
129 "operator-assignment": ["warn", "always"],
130 "operator-linebreak": ["warn", "after"],
131 "padded-blocks": ["warn", "never"],
132 "prefer-arrow-callback": "warn",
133 "prefer-const": "error",
134 "prefer-reflect": "off",
135 "prefer-spread": "warn",
136 "quote-props": ["warn", "as-needed"],
137 "quotes": ["warn", "double"],
138 "semi": ["error", "never"],
139 "semi-spacing": ["warn", {
140 "after": true,
141 "before": false
142 }],
143 "space-before-blocks": ["warn", "always"],
144 "space-in-parens": ["warn", "never"],
145 "space-infix-ops": ["warn"],
146 "space-unary-ops": ["warn"],
147 "spaced-comment": ["warn", "always"],
148 "yoda": ["warn", "never", {
149 "exceptRange": true
150 }]
151 }
152}