-
Notifications
You must be signed in to change notification settings - Fork 42
/
package.json
217 lines (217 loc) · 5.97 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
{
"name": "hello-vue-components",
"private": true,
"scripts": {
"dev": "node build-utils/update-index-file.js && vue-cli-service serve",
"build": "node build-utils/build-lib.js",
"lint": "eslint --ext .js,.vue --fix . && stylelint --fix \"{src,tests/e2e/demo}/**/*.{css,vue}\" && markdownlint docs/*.md *.md && prettier --write --loglevel warn \"**/*.{js,json,css,vue,md}\"",
"unit": "vue-cli-service test:unit",
"e2e": "cross-env VUE_APP_E2E=true npm run build && vue-cli-service test:e2e",
"test": "npm run unit && npm run e2e",
"prepublishOnly": "npm run lint && npm run test && node build-utils/build-lib.js"
},
"gitHooks": {
"pre-commit": "cross-env PRE_COMMIT=true lint-staged"
},
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.1.2",
"@vue/cli-plugin-babel": "^3.1.0",
"@vue/cli-plugin-e2e-cypress": "^3.1.0",
"@vue/cli-plugin-eslint": "^3.1.0",
"@vue/cli-plugin-unit-jest": "^3.1.0",
"@vue/cli-service": "^3.1.0",
"@vue/component-compiler-utils": "^2.3.0",
"@vue/eslint-config-prettier": "^4.0.0",
"@vue/eslint-config-standard": "^4.0.0",
"@vue/test-utils": "1.0.0-beta.29",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "^24.1.0",
"babel-loader": "^8.0.4",
"cross-env": "^5.2.0",
"eslint-plugin-vue": "^5.2.2",
"fs-extra": "^7.0.1",
"globby": "^9.0.0",
"imagemin-lint-staged": "^0.4.0",
"lerna": "^3.4.3",
"lint-staged": "^8.0.4",
"lodash": "^4.17.11",
"markdownlint-cli": "^0.13.0",
"null-loader": "^0.1.1",
"rxjs": "^6.3.3",
"stylelint": "^9.7.1",
"stylelint-config-css-modules": "^1.3.0",
"stylelint-config-prettier": "^4.0.0",
"stylelint-config-recess-order": "^2.0.0",
"stylelint-config-standard": "^18.2.0",
"vue": "^2.5.17",
"vue-template-compiler": "^2.5.17"
},
"babel": {
"presets": [
[
"@babel/env",
{
"useBuiltIns": "usage"
}
]
]
},
"browserslist": ["> 1%", "last 2 versions", "not ie <= 8"],
"eslintConfig": {
"root": true,
"parserOptions": {
"sourceType": "script"
},
"extends": [
"plugin:vue/recommended",
"standard",
"prettier",
"prettier/standard"
],
"rules": {
"no-debugger": "warn",
"no-console": [
"warn",
{
"allow": ["warn", "error"]
}
],
"vue/component-name-in-template-casing": ["error", "PascalCase"],
"vue/multiline-html-element-content-newline": "error",
"vue/singleline-html-element-content-newline": "error",
"vue/no-spaces-around-equal-signs-in-attribute": "error",
"vue/script-indent": [
"error",
2,
{
"baseIndent": 0
}
],
"vue/no-parsing-error": "off"
},
"overrides": [
{
"files": ["src/**/*", "demo/**/*", "tests/unit/**/*"],
"parserOptions": {
"parser": "babel-eslint",
"sourceType": "module"
},
"env": {
"browser": true
}
},
{
"files": ["tests/e2e/**/*"],
"parserOptions": {
"parser": "babel-eslint",
"sourceType": "module"
},
"plugins": ["cypress"],
"env": {
"cypress/globals": true
}
},
{
"files": ["**/*.unit.js"],
"parserOptions": {
"parser": "babel-eslint",
"sourceType": "module"
},
"env": {
"jest": true
},
"globals": {
"mount": false,
"shallowMount": false,
"createComponentMocks": false
}
}
]
},
"eslintIgnore": [
"/dist/",
"/packages/",
"/tests/e2e/fixtures/public/packages/",
"/tests/unit/coverage/"
],
"jest": {
"setupFiles": ["<rootDir>/tests/unit/setup"],
"setupTestFrameworkScriptFile": "<rootDir>/tests/unit/matchers",
"testMatch": ["**/(*.)unit.js"],
"moduleFileExtensions": ["js", "json", "vue"],
"transform": {
"^.+\\.vue$": "vue-jest",
"^.+\\.js$": "babel-jest"
},
"moduleNameMapper": {
"\\.(jpe?g|png|gif|webp|svg|mp4|webm|ogg|mp3|wav|flac|aac|woff2?|eot|ttf|otf)$": "<rootDir>/tests/unit/fixtures/empty-string.js"
},
"snapshotSerializers": ["jest-serializer-vue"],
"coverageDirectory": "<rootDir>/tests/unit/coverage",
"collectCoverageFrom": [
"src/**/*.{js,vue}",
"!**/node_modules/**",
"!src/index.js"
]
},
"lint-staged": {
"*.js": [
"eslint --fix",
"prettier --write --loglevel warn",
"git add",
"npm run unit -- --bail --findRelatedTests"
],
"{*.json,*.code-snippets,.*rc}": [
"prettier --write --loglevel warn --parser json",
"git add"
],
"*.vue": [
"eslint --fix",
"stylelint --fix",
"prettier --write --loglevel warn",
"git add",
"npm run unit -- --bail --findRelatedTests"
],
"*.css": ["stylelint --fix", "prettier --write --loglevel warn", "git add"],
"*.md": ["markdownlint", "prettier --write --loglevel warn", "git add"],
"*.{png,jpeg,jpg,gif,svg}": ["imagemin-lint-staged", "git add"]
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"prettier": {
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "avoid",
"proseWrap": "never"
},
"stylelint": {
"extends": [
"stylelint-config-standard",
"stylelint-config-recess-order",
"stylelint-config-prettier",
"stylelint-config-css-modules"
],
"rules": {
"string-no-newline": null,
"selector-class-pattern": "^[a-z][a-zA-Z]*(-(enter|leave)(-(active|to))?)?$",
"selector-id-pattern": "^[a-z][a-zA-Z]*$",
"selector-max-universal": 1,
"selector-max-type": [
0,
{
"ignore": ["child", "descendant", "compounded"]
}
]
}
}
}