Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ export default [
'eqeqeq': ['error', 'always'],
'no-duplicate-imports': 'error',
'no-undef': ['error', { 'typeof': true }],
'no-unused-vars': ['warn', {
'args': 'none',
'argsIgnorePattern': '^_',
'varsIgnorePattern': '^_|^[A-Z][a-zA-Z]*$' // This will ignore both _-prefixed vars and capitalized enum values
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['warn', {
args: 'none',
argsIgnorePattern: '^_',
varsIgnorePattern: '^_|^[A-Z][a-zA-Z]*$' // Ignore both _-prefixed vars and capitalized enum values
}],
'no-console': 'off'
},
Expand All @@ -61,4 +62,4 @@ export default [
ignores: ['dist/**', 'coverage/**', 'node_modules/**']
},
eslintConfigPrettier,
];
];
25 changes: 10 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
{
"name": "@mlightcad/mtext-parser",
"version": "1.3.3",
"version": "1.4.0",
"description": "AutoCAD MText parser written in TypeScript",
"type": "module",
"main": "dist/parser.cjs.js",
"module": "dist/parser.es.js",
"browser": "dist/parser.umd.js",
"main": "dist/parser.js",
"module": "dist/parser.js",
"types": "dist/types/parser.d.ts",
"author": "MLight Lee <mlight.lee@outlook.com>",
"repository": {
"type": "git",
"url": "https://gitlab.com/mlightcad/mtext-parser"
"url": "https://github.com/mlightcad/mtext-parser"
},
"homepage": "https://gitlab.com/mlightcad/mtext-parser",
"homepage": "https://github.com/mlightcad/mtext-parser",
"scripts": {
"build": "vite build",
"build:example": "vite build --config vite.config.ts --mode example",
"build:types": "tsc --emitDeclarationOnly",
"example": "npm run build && npm run build:example && node dist/node/example.cjs.js",
"build": "tsc -p tsconfig.build.json",
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json}\"",
"lint": "eslint ./src --ext .ts",
Expand All @@ -34,23 +30,22 @@
"license": "MIT",
"files": [
"dist",
"src",
"README.md",
"package.json"
],
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "^20.11.24",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"@typescript-eslint/eslint-plugin": "^8.57.0",
"@typescript-eslint/parser": "^8.57.0",
"eslint": "^9.26.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-prettier": "^5.4.0",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"ts-jest": "^29.3.2",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"vite": "^5.1.4",
"vite-plugin-dts": "^3.7.3"
"typescript": "^5.3.3"
}
}
Loading
Loading