UNPKG

@lueton/react-sparklines

Version:
116 lines (115 loc) 3.22 kB
{ "name": "@lueton/react-sparklines", "description": "Awesome Sparklines for React", "private": false, "version": "2.2.0", "type": "module", "scripts": { "prepare": "husky install", "dev": "vite", "build": "tsc && vite build", "lint": "eslint lib/**/*.{jsx,ts,tsx} --report-unused-disable-directives --max-warnings 0", "test": "vitest run", "test:coverage": "vitest run --coverage", "watch": "vitest", "preview": "vite preview", "lint:fix": "eslint lib/**/*.{jsx,ts,tsx} --fix", "format": "prettier --write lib//**/*.{ts,tsx} --config ./.prettierrc", "docs:dev": "cd docs-next && npm run dev", "docs:build": "cd docs-next && npm run build" }, "files": [ "dist" ], "exports": { ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/react-sparklines.es.js" }, "require": { "types": "./dist/index.d.ts", "default": "./dist/react-sparklines.umd.js" } } }, "source": "./lib/index.js", "main": "./dist/react-sparklines.umd.js", "module": "./dist/react-sparklines.es.js", "types": "./dist/index.d.ts", "dependencies": { "clsx": "^2.1.1", "d3": "^7.9.0", "react-is": "^19.2.0" }, "devDependencies": { "@eslint/compat": "^1.4.0", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.37.0", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "@testing-library/dom": "^10.4.1", "@testing-library/react": "^16.3.0", "@types/d3": "^7.4.3", "@types/react": "^19.2.0", "@types/react-dom": "^19.2.0", "@types/react-is": "^19.2.0", "@typescript-eslint/eslint-plugin": "^8.45.0", "@typescript-eslint/parser": "^8.45.0", "@vitejs/plugin-react": "^5.0.4", "@vitest/coverage-v8": "^3.2.4", "c8": "^10.1.3", "eslint": "^9.37.0", "eslint-config-prettier": "^10.1.8", "eslint-plugin-prettier": "^5.5.4", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^6.1.1", "eslint-plugin-react-refresh": "^0.4.23", "eslint-plugin-simple-import-sort": "^12.1.1", "globals": "^16.4.0", "husky": "^9.1.7", "jsdom": "^27.0.0", "prettier": "^3.6.2", "react-hooks": "^1.0.1", "semantic-release": "^24.2.9", "typescript": "^5.9.3", "vite": "^7.1.9", "vite-plugin-dts": "^4.5.4", "vite-plugin-linter": "^3.1.0", "vite-tsconfig-paths": "^5.1.4", "vitest": "^3.2.4" }, "peerDependencies": { "react": ">=16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": ">=16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "lib/**/*.{js,jsx,ts,tsx}": [ "npm eslint", "npm format" ] }, "keywords": [ "react", "sparklines", "typescript" ], "author": "Leon Lüttger", "repository": { "type": "git", "url": "https://github.com/Lueton/react-sparklines" }, "bugs": { "url": "https://github.com/Lueton/react-sparklines/issues" }, "homepage": "https://github.com/Lueton/react-sparklines#readme", "license": "MIT", "publishConfig": { "access": "public" } }