Skip to content

Commit

Permalink
initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbw committed Jul 4, 2019
0 parents commit 73c9ec2
Show file tree
Hide file tree
Showing 8 changed files with 4,309 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parserOptions: {
parser: "babel-eslint",
ecmaVersion: 2017
},
env: {
es6: true
},
extends: [
"plugin:prettier/recommended",
"prettier",
],
plugins: [
"prettier"
],
// add your custom rules here
rules: {
"quotes": [
"warn",
"double",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"no-console": "off"
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"semi": true
}
3 changes: 3 additions & 0 deletions Utils.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
exports.test = function test() {
return "success";
};
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const _ = require("lodash");
const Utils = require("./Utils");
const objs = [{ a: 1, b: 2 }, { a: 2, b: 1 }];
console.log("string");

const obA = _.find(objs, ["a", 1]);
console.log(JSON.stringify(obA, null, 2));

Utils.test();
Loading

0 comments on commit 73c9ec2

Please sign in to comment.