Skip to content

Commit

Permalink
general fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ThobyV committed Sep 15, 2020
1 parent 5602cd0 commit e807b84
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
"sourceType": "module"
},
"rules": {
"prefer-object-spread": "off",
"guard-for-in": "off",
"quotes": "error",
"prettier/prettier": "error",
"eqeqeq": "off",
"no-param-reassign": "off",
"no-nested-ternary": "off",
Expand All @@ -31,6 +29,8 @@
"implicit-arrow-linebreak": "off",
"consistent-return": "off",
"no-restricted-syntax": "off",
"no-await-in-loop": "off"
"no-await-in-loop": "off",
"prefer-object-spread": "off",
"guard-for-in": "off"
}
}
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules
dist
src/test
.eslintrc
src/test
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
4 changes: 1 addition & 3 deletions src/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ let lit = (function create(opts) {
return function (url, data, config) {
if (!config) {
config = data;
data = null;
}
return request(deepMerge({ url, data, method }, config));
};
Expand All @@ -41,7 +40,6 @@ let lit = (function create(opts) {
}

function request(opts) {
if (typeof opts === "string") opts = { method: "get", url: opts };
let url = defaults.baseUrl;
let config = icp.request.callback
? icp.request.callback(deepMerge({}, opts))
Expand Down Expand Up @@ -169,5 +167,5 @@ let llit = lit.create({
console.log(
llit.post("devt.to", { name: "vitor" }, { headers: { auth: "ccc" } })
);
console.log(lit.get("string", { headers: { "Content-Type": "multipart" } }));
console.log(lit.get("string"));
// console.log(config)j

0 comments on commit e807b84

Please sign in to comment.