This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "My App", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"start": "nodemon index.js", | |
"build": "webpack -d --watch" | |
}, | |
"author": "Tyler Lindow", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
"extends": ["airbnb-base", 'plugin:react/recommended'], | |
"env": {"jest": true, "browser": true}, | |
"parser": "babel-eslint", | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
entry: __dirname + '/client/src/index.jsx', | |
module: { | |
rules: [ | |
{ | |
test: [/\.jsx$/], | |
exclude: /node_modules/, | |
use: { | |
loader: 'babel-loader', | |
options: { |