forked from realadvisor/rifm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
152 lines (152 loc) · 3.76 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"name": "rifm",
"version": "0.12.1",
"description": "Tiny react input formatter and mask",
"author": "istarkov",
"license": "MIT",
"main": "dist/rifm.cjs.js",
"module": "dist/rifm.esm.js",
"files": [
"dist",
"src"
],
"scripts": {
"build:code": "rollup -c",
"build:flow": "echo \"// @flow\n\nexport * from '../src'\" > dist/rifm.cjs.js.flow",
"build": "rimraf dist && yarn build:code && yarn build:flow",
"dev": "NODE_ICU_DATA=`yarn -s run node-full-icu-path` next dev",
"jest": "NODE_ICU_DATA=`yarn -s run node-full-icu-path` jest",
"test": "eslint --ignore-path .gitignore ./ && flow check && yarn test:ts && yarn jest",
"test:ts": "tsc",
"copy-sandbox-examples": "mkdir -p ./out/codesandboxes && find ./pages -type d -mindepth 1 -maxdepth 1 -exec cp -R \\{\\} ./out/codesandboxes \\;",
"export": "rimraf ./out && next build && NODE_ICU_DATA=`yarn -s run node-full-icu-path` next export && yarn copy-sandbox-examples",
"deploy": "yarn export && gh-pages -d out",
"prepublishOnly": "yarn test && yarn build"
},
"babel": {
"presets": [
"next/babel",
"@babel/flow",
"@babel/react"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,md,ts,tsx}": [
"prettier --write"
]
},
"prettier": {
"singleQuote": true,
"trailingComma": "es5",
"overrides": [
{
"files": "*.test.js",
"options": {
"printWidth": 120
}
}
]
},
"eslintConfig": {
"env": {
"node": 1,
"browser": 1,
"es6": 1,
"jest/globals": true
},
"parser": "babel-eslint",
"plugins": [
"react",
"flowtype",
"jsx-a11y",
"jest"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:flowtype/recommended",
"plugin:jsx-a11y/recommended"
],
"rules": {
"no-console": [
"error",
{
"allow": [
"warn",
"error",
"info"
]
}
],
"react/prop-types": "off"
},
"overrides": [
{
"files": [
"{src,tests}/**/*.ts*"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
}
}
]
},
"devDependencies": {
"@babel/core": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"@babel/preset-flow": "^7.9.0",
"@babel/preset-react": "^7.9.4",
"@material-ui/core": "^4.0.0",
"@material-ui/styles": "^4.0.0",
"@rollup/plugin-babel": "^5.0.2",
"@rollup/plugin-replace": "^2.3.2",
"@typescript-eslint/parser": "^1.9.0",
"alea": "^0.0.9",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.0.1",
"brotli-size": "^4.0.0",
"emotion": "^10.0.17",
"eslint": "^7.1.0",
"eslint-plugin-flowtype": "^5.1.0",
"eslint-plugin-jest": "^23.13.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.20.0",
"flow-bin": "^0.109.0",
"full-icu": "^1.3.0",
"gh-pages": "^1.2.0",
"gzip-size": "^5.1.1",
"husky": "^4.2.1",
"jest": "^26.0.1",
"libphonenumber-js": "^1.2.15",
"lint-staged": "^10.0.7",
"next": "^9.4.2",
"prettier": "^1.19.1",
"react": "^16.8.2",
"react-dom": "^16.8.2",
"react-test-renderer": "^16.8.2",
"rimraf": "^2.6.1",
"rollup": "^2.10.8",
"rollup-plugin-terser": "^6.0.1",
"typescript": "^3.4.5"
},
"peerDependencies": {
"react": ">=16.8"
},
"repository": {
"type": "git",
"url": "https://github.com/istarkov/rifm.git"
},
"resolutions": {
"react": "~16.8.0",
"react-dom": "~16.8.0"
},
"typings": "./src/index.d.ts"
}