reactive-bulma 1.2.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  interface ButtonProps {
3
3
  text?: string;
4
4
  }
@@ -1,2 +1,2 @@
1
- import "../../node_modules/bulma/css/bulma.min.css";
1
+ import '../../node_modules/bulma/css/bulma.min.css';
2
2
  export { default as Button } from './Button';
package/package.json CHANGED
@@ -1,11 +1,17 @@
1
1
  {
2
2
  "name": "reactive-bulma",
3
- "version": "1.2.0",
4
- "description": "A typescript-react-based library using bulma",
3
+ "version": "1.4.0",
4
+ "description": "A typescript-react-based component library based on bulma",
5
5
  "keywords": [
6
6
  "typescript",
7
7
  "react",
8
8
  "bulma",
9
+ "rollup",
10
+ "semantic-release",
11
+ "jest",
12
+ "prettier",
13
+ "eslint",
14
+ "husky",
9
15
  "component-library"
10
16
  ],
11
17
  "author": "Nicolás Omar González Passerino",
@@ -18,13 +24,23 @@
18
24
  "bugs": {
19
25
  "url": "https://github.com/NicolasOmar/reactive-bulma/issues"
20
26
  },
27
+ "main": "dist/cjs/index.js",
28
+ "module": "dist/esm/index.js",
29
+ "files": [
30
+ "dist"
31
+ ],
32
+ "types": "dist/index.d.ts",
21
33
  "scripts": {
22
34
  "start": "start-storybook -p 6006",
23
35
  "test": "jest --watchAll=false --verbose",
24
36
  "test:ci": "npm test -- --coverage",
37
+ "lint": "eslint src/**/*.tsx",
38
+ "prettier": "prettier src/**/*.{tsx,ts} --write",
39
+ "lint-staged": "lint-staged -v",
40
+ "setup": "npm i && husky install",
25
41
  "prepare": "npm run build",
26
42
  "build": "rollup -c --bundleConfigAsCjs",
27
- "build-storybook": "build-storybook",
43
+ "build:storybook": "build-storybook",
28
44
  "semantic-release": "semantic-release"
29
45
  },
30
46
  "devDependencies": {
@@ -53,11 +69,18 @@
53
69
  "@testing-library/react": "^13.4.0",
54
70
  "@types/jest": "^29.4.0",
55
71
  "@types/react": "^18.0.26",
72
+ "@typescript-eslint/eslint-plugin": "^5.50.0",
73
+ "@typescript-eslint/parser": "^5.50.0",
56
74
  "babel-jest": "^29.4.1",
57
75
  "babel-loader": "^8.3.0",
58
76
  "bulma": "^0.9.4",
77
+ "eslint": "^8.33.0",
78
+ "eslint-config-prettier": "^8.6.0",
79
+ "eslint-plugin-react": "^7.32.2",
59
80
  "jest": "^29.4.1",
60
81
  "jest-environment-jsdom": "^29.4.1",
82
+ "lint-staged": "^13.1.0",
83
+ "prettier": "^2.8.3",
61
84
  "react": "^18.2.0",
62
85
  "react-dom": "^18.2.0",
63
86
  "rollup": "^3.9.1",
@@ -65,12 +88,13 @@
65
88
  "rollup-plugin-postcss": "^4.0.2",
66
89
  "semantic-release": "^20.1.0",
67
90
  "tslib": "^2.4.1",
68
- "typescript": "^4.9.4"
91
+ "typescript": "^4.9.4",
92
+ "husky": "^8.0.0"
69
93
  },
70
- "main": "dist/cjs/index.js",
71
- "module": "dist/esm/index.js",
72
- "files": [
73
- "dist"
74
- ],
75
- "types": "dist/index.d.ts"
94
+ "lint-staged": {
95
+ "src/**/*.(ts|tsx)": [
96
+ "prettier --write",
97
+ "eslint --fix"
98
+ ]
99
+ }
76
100
  }