Bump deps and use eslint

This commit is contained in:
Nick Playfair 2021-02-21 23:38:18 +00:00
parent 6834abdef4
commit 59e8f06fe5
4 changed files with 8516 additions and 40 deletions

16
.eslintrc.json Normal file
View File

@ -0,0 +1,16 @@
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": [
"airbnb-base"
],
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"no-console": "off"
}
}

3
.prettierrc Normal file
View File

@ -0,0 +1,3 @@
{
"singleQuote": true
}

8523
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"build": "npm run bundle && npm run copy:html",
"bundle": "browserify ./src/bom2table.js -o ./dist/bundle.js",
"bundle": "browserify ./src/bom2table.js -p tinyify -o ./dist/bundle.js",
"copy:html": "cpy 'src/*.html' 'dist/'"
},
"author": "nplayfair",
@ -14,7 +14,15 @@
"browserify": "^17.0.0",
"cpy-cli": "^3.1.1",
"csvtojson": "^2.0.10",
"js-beautify": "^1.13.0"
"js-beautify": "^1.13.5"
},
"devDependencies": {}
"devDependencies": {
"eslint": "^7.20.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.0.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.3.1",
"prettier": "^2.2.1",
"tinyify": "^3.0.0"
}
}