Compare commits

..

No commits in common. "35c075e1b55f74a10800baccfc8a04169e4d1002" and "8b65a52035a2c51c14b45308bbf1bc492dee09a6" have entirely different histories.

6 changed files with 22 additions and 2076 deletions

2
.eslintignore Normal file
View File

@ -0,0 +1,2 @@
node_modules/
dist/

18
.eslintrc.json Normal file
View File

@ -0,0 +1,18 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"no-console": "off"
}
}

View File

@ -1,17 +0,0 @@
// @ts-check
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config(
{
ignores: [
'dist/**',
'node_modules/**',
'webpack.dev.js',
'webpack.prod.js',
],
},
eslint.configs.recommended,
tseslint.configs.recommended,
);

2052
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,8 +5,7 @@
"main": "bom2table.js",
"scripts": {
"serve": "webpack serve --config webpack.dev.js",
"build": "webpack --config webpack.prod.js",
"lint": "eslint ."
"build": "webpack --config webpack.prod.js"
},
"author": "nplayfair",
"license": "MIT",
@ -15,15 +14,12 @@
"htmlfy": "^0.7.5"
},
"devDependencies": {
"@eslint/js": "^9.28.0",
"@types/csvtojson": "^1.1.5",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^13.0.0",
"eslint": "^9.28.0",
"prettier": "^3.5.3",
"ts-loader": "^9.5.2",
"typescript": "^5.8.3",
"typescript-eslint": "^8.34.0",
"webpack": "^5.99.9",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^5.2.2"

View File

@ -1,6 +1,5 @@
import { csvConfig, rejectedParts } from './config';
// const csv = require('csvtojson');
import csv from 'csvtojson';
const csv = require('csvtojson');
export async function getBOM(csvBOM: string) {
const rawBOM = await csv(csvConfig).fromString(csvBOM);