New ts-eslint config
This commit is contained in:
parent
9b836cc360
commit
35c075e1b5
17
eslint.config.mjs
Normal file
17
eslint.config.mjs
Normal file
@ -0,0 +1,17 @@
|
||||
// @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
2052
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,8 @@
|
||||
"main": "bom2table.js",
|
||||
"scripts": {
|
||||
"serve": "webpack serve --config webpack.dev.js",
|
||||
"build": "webpack --config webpack.prod.js"
|
||||
"build": "webpack --config webpack.prod.js",
|
||||
"lint": "eslint ."
|
||||
},
|
||||
"author": "nplayfair",
|
||||
"license": "MIT",
|
||||
@ -14,12 +15,15 @@
|
||||
"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"
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { csvConfig, rejectedParts } from './config';
|
||||
const csv = require('csvtojson');
|
||||
// const csv = require('csvtojson');
|
||||
import csv from 'csvtojson';
|
||||
|
||||
export async function getBOM(csvBOM: string) {
|
||||
const rawBOM = await csv(csvConfig).fromString(csvBOM);
|
||||
|
Loading…
x
Reference in New Issue
Block a user