We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ec89ee commit fcab128Copy full SHA for fcab128
.arcanist-extensions
.arcconfig
@@ -1,3 +1,7 @@
1
{
2
- "phabricator.uri" : "http://phabricator.bitgo.com"
+ "phabricator.uri" : "https://phabricator.bitgo.com",
3
+
4
+ "load": [
5
+ ".arcanist-extensions/eslint_linter"
6
+ ]
7
}
.arclint
@@ -0,0 +1,23 @@
+{
+ "linters": {
+ "filename": {
+ "type": "filename"
+ },
+ "generated": {
+ "type": "generated"
8
9
+ "merge-conflict": {
10
+ "type": "merge-conflict"
11
12
+ "nolint": {
13
+ "type": "nolint"
14
15
+ "spelling": {
16
+ "type": "spelling"
17
18
+ "eslint": {
19
+ "type": "eslint",
20
+ "include": "(\\.js$)"
21
+ }
22
23
+}
.eslintignore
@@ -0,0 +1,4 @@
+node_modules
+.idea
+.arcanist-extensions
+public
.eslintrc.json
@@ -0,0 +1,31 @@
+ "env": {
+ "browser": true,
+ "es6": true,
+ "node": true,
+ "mocha": true
+ "extends": "eslint:recommended",
+ "parserOptions": {
+ "sourceType": "module",
+ "ecmaVersion": 6
+ "rules": {
+ "indent": ["error", 2, {"SwitchCase": 1, "MemberExpression": "off"}],
+ "linebreak-style": ["error", "unix"],
+ "semi": ["error", "always"],
+ "eqeqeq": ["warn", "always"],
+ "curly": "error",
+ "no-extra-boolean-cast": "off",
+ "no-unused-vars": "warn",
+ "object-curly-spacing": ["error", "always", {"objectsInObjects": true, "arraysInObjects": true}],
+ "array-bracket-spacing": ["error", "never"],
+ "require-yield": "off",
24
+ "func-call-spacing": ["error", "never"],
25
+ "quotes": ["error", "single"],
26
+ "key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "strict" }],
27
+ "quote-props": ["error", "as-needed"],
28
+ "no-console": "off",
29
+ "no-empty": "warn"
30
31
.gitmodules
@@ -0,0 +1,3 @@
+[submodule ".arcanist-extensions"]
+ path = .arcanist-extensions
+ url = https://github.com/tagview/arcanist-extensions.git
package.json
@@ -1,6 +1,6 @@
"name": "bitgo",
- "version": "3.4.11",
+ "version": "3.4.12",
"description": "BitGo Javascript SDK",
"main": "./src/index.js",
"keywords": [
@@ -21,6 +21,7 @@
"browserify": "13.1.0",
"coveralls": "~2.13.1",
"envify": "~3.4.0",
+ "eslint": "~4.3.0",
"istanbul": "0.4.5",
"karma": "~0.13.22",
"karma-chrome-launcher": "~0.1.7",
@@ -60,7 +61,8 @@
60
61
"test": "npm run test-node",
62
"express": "node bin/bitgo-express -b 0.0.0.0",
63
"test-node": "./node_modules/.bin/istanbul test ./node_modules/.bin/_mocha -- --timeout 20000 --reporter list --recursive test/",
- "test-browser": "npm run compile-test && ./node_modules/karma/bin/karma start .karma.conf.js --log-level debug --single-run"
64
+ "test-browser": "npm run compile-test && ./node_modules/karma/bin/karma start .karma.conf.js --log-level debug --single-run",
65
+ "lint": "./node_modules/.bin/eslint --ext .js ."
66
},
67
"dependencies": {
68
"argparse": "~0.1.16",
0 commit comments