Skip to content

Commit

Permalink
chore: add husky + lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
mazipan committed Jul 28, 2022
1 parent 8d3bc22 commit 03853b7
Show file tree
Hide file tree
Showing 4 changed files with 829 additions and 92 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
4 changes: 4 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.{css,scss,json,md,html}": ["prettier --write"],
"*.{js,ts,tsx}": ["prettier --write", "eslint --ignore-path .gitignore --quiet --fix"]
}
157 changes: 80 additions & 77 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,79 +1,82 @@
{
"name": "mantine-data-grid",
"version": "0.0.9",
"homepage": "https://kuechlin.github.io/mantine-data-grid/",
"repository": {
"type": "git",
"url": "https://github.com/Kuechlin/mantine-data-grid.git"
},
"license": "MIT",
"author": "Yannick Küchlin <y.kuechlin@vws.app>",
"type": "module",
"exports": {
".": {
"import": "./dist/mantine-data-grid.js",
"require": "./dist/mantine-data-grid.umd.cjs"
}
},
"main": "./dist/mantine-data-grid.umd.cjs",
"module": "./dist/mantine-data-grid.js",
"types": "./dist/index.d.ts",
"files": [
"dist",
"README.md"
],
"scripts": {
"build": "vite build && tsc --emitDeclarationOnly",
"build:docs": "vite build -c vite.config.docs.ts",
"dev": "vite -c vite.config.docs.ts --port 3000",
"format": "prettier \"**/*.+(js|ts|tsx|css|scss|json|md|html)\" --write",
"lint": "eslint ."
},
"dependencies": {
"@emotion/react": "^11.9.3",
"@mantine/core": "^5.0.0",
"@mantine/dates": "^5.0.0",
"@mantine/hooks": "^5.0.0",
"@tanstack/react-table": "^8.3.3",
"dayjs": "^1.11.4",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"tabler-icons-react": "^1.54.0"
},
"devDependencies": {
"@faker-js/faker": "^7.3.0",
"@mantine/prism": "^5.0.0",
"@types/node": "^18.6.1",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@vitejs/plugin-react": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-typescript": "^3.3.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1",
"react-markdown": "^8.0.3",
"react-router-dom": "^6.3.0",
"remark-gfm": "^3.0.1",
"rollup": "^2.77.1",
"rollup-plugin-visualizer": "^5.7.1",
"typescript": "^4.6.3",
"vite": "^3.0.3"
},
"peerDependencies": {
"@mantine/core": "^4.2.5",
"@mantine/dates": "^4.2.11",
"@mantine/hooks": "^4.2.5",
"dayjs": "^1.11.3",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"peerDependenciesMeta": {
"dayjs": {
"optional": true
}
"name": "mantine-data-grid",
"version": "0.0.9",
"homepage": "https://kuechlin.github.io/mantine-data-grid/",
"repository": {
"type": "git",
"url": "https://github.com/Kuechlin/mantine-data-grid.git"
},
"license": "MIT",
"author": "Yannick Küchlin <y.kuechlin@vws.app>",
"type": "module",
"exports": {
".": {
"import": "./dist/mantine-data-grid.js",
"require": "./dist/mantine-data-grid.umd.cjs"
}
}
},
"main": "./dist/mantine-data-grid.umd.cjs",
"module": "./dist/mantine-data-grid.js",
"types": "./dist/index.d.ts",
"files": [
"dist",
"README.md"
],
"scripts": {
"build": "vite build && tsc --emitDeclarationOnly",
"build:docs": "vite build -c vite.config.docs.ts",
"dev": "vite -c vite.config.docs.ts --port 3000",
"format": "prettier \"**/*.+(js|ts|tsx|css|scss|json|md|html)\" --write",
"lint": "eslint .",
"prepare": "husky install"
},
"dependencies": {
"@emotion/react": "^11.9.3",
"@mantine/core": "^5.0.0",
"@mantine/dates": "^5.0.0",
"@mantine/hooks": "^5.0.0",
"@tanstack/react-table": "^8.3.3",
"dayjs": "^1.11.4",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"tabler-icons-react": "^1.54.0"
},
"devDependencies": {
"@faker-js/faker": "^7.3.0",
"@mantine/prism": "^5.0.0",
"@types/node": "^18.6.1",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@vitejs/plugin-react": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-typescript": "^3.3.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1",
"react-markdown": "^8.0.3",
"react-router-dom": "^6.3.0",
"remark-gfm": "^3.0.1",
"rollup": "^2.77.1",
"rollup-plugin-visualizer": "^5.7.1",
"typescript": "^4.6.3",
"vite": "^3.0.3"
},
"peerDependencies": {
"@mantine/core": "^5.0.0",
"@mantine/dates": "^5.0.0",
"@mantine/hooks": "^5.0.0",
"dayjs": "^1.11.4",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"peerDependenciesMeta": {
"dayjs": {
"optional": true
}
}
}
Loading

0 comments on commit 03853b7

Please sign in to comment.