Bump deps and use eslint
This commit is contained in:
parent
6834abdef4
commit
59e8f06fe5
16
.eslintrc.json
Normal file
16
.eslintrc.json
Normal 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
3
.prettierrc
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"singleQuote": true
|
||||
}
|
8523
package-lock.json
generated
8523
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user