Skip to content

Instantly share code, notes, and snippets.

View tlindow's full-sized avatar
😀
Software Engineer | Creative Coder | http://tlindow.github.io

Tyler Lindow tlindow

😀
Software Engineer | Creative Coder | http://tlindow.github.io
View GitHub Profile
let strExample = "// if char equals a forward slash, check if next is a forward slash \n // if so, begin collection of comment \n"
let str = JSON.stringify(strExample); // To stringify \n
const comments = [];
const start = null;
const end = null;
const isComment = false;
for (let idx = 0; idx < str.length; idx++) {
if (str.slice(idx, idx + 2) === '//') {
start = idx;
{
"name": "My App",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "nodemon index.js",
"build": "webpack -d --watch"
},
"author": "Tyler Lindow",
@tlindow
tlindow / .eslint.js
Created May 8, 2019 19:25
Airbnb eslint setup
module.exports = {
"extends": ["airbnb-base", 'plugin:react/recommended'],
"env": {"jest": true, "browser": true},
"parser": "babel-eslint",
};
@tlindow
tlindow / webpack.config.js
Created May 8, 2019 19:08
React-babel Setup
module.exports = {
entry: __dirname + '/client/src/index.jsx',
module: {
rules: [
{
test: [/\.jsx$/],
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {