UNPKG

@lueton/react-sparklines

Version:
121 lines (120 loc) 3.35 kB
{ "name": "@lueton/react-sparklines", "description": "Awesome Sparklines for React", "private": false, "version": "2.1.1", "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": "vitepress dev docs", "docs:build": "vitepress build docs", "docs:preview": "vitepress preview docs" }, "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", "lodash": "^4.17.21", "react-is": "^19.1.0" }, "devDependencies": { "@eslint/compat": "^1.2.9", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.26.0", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "@testing-library/dom": "^10.4.0", "@testing-library/react": "^16.3.0", "@types/d3": "^7.4.3", "@types/lodash": "^4.17.16", "@types/react": "^19.1.4", "@types/react-dom": "^19.1.5", "@types/react-is": "^19.0.0", "@typescript-eslint/eslint-plugin": "^8.32.1", "@typescript-eslint/parser": "^8.32.1", "@vitejs/plugin-react": "^4.4.1", "@vitest/coverage-v8": "^3.1.3", "c8": "^10.1.3", "eslint": "^9.26.0", "eslint-config-prettier": "^10.1.5", "eslint-plugin-prettier": "^5.4.0", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-react-refresh": "^0.4.20", "eslint-plugin-simple-import-sort": "^12.1.1", "globals": "^16.1.0", "husky": "^9.1.7", "jsdom": "^26.1.0", "prettier": "^3.5.3", "react-hooks": "^1.0.1", "semantic-release": "^24.2.3", "typescript": "^5.8.3", "vite": "^6.3.5", "vite-plugin-dts": "^4.5.4", "vite-plugin-linter": "^3.0.1", "vite-tsconfig-paths": "^5.1.4", "vitepress": "^1.6.3", "vitest": "^3.1.3", "vue": "^3.5.14" }, "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" } }