Skip to content

Commit 4a38631

Browse files
authored
chore: cleanup views and lint config (#383)
* fix: cleanup views * chore: clean up lint-staged config
1 parent 8b0a60d commit 4a38631

File tree

5 files changed

+18
-34
lines changed

5 files changed

+18
-34
lines changed

.lintstagedrc.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
"*.md,!test/snapshots/**/*.md,!test/**/snapshots/**/*.md,!locales/README.md": [
3+
filenames => filenames.map(filename => `remark ${filename} -qfo`),
4+
'git add'
5+
],
6+
'package.json': ['fixpack', 'git add'],
7+
'*.js': ['xo --fix', 'git add ']
8+
};

package.json

+1-15
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"eslint-config-xo-lass": "^1.0.3",
4949
"eslint-plugin-compat": "^3.5.1",
5050
"husky": "^3.1.0",
51-
"lint-staged": "^10.1.3",
51+
"lint-staged": "^10.1.4",
5252
"nyc": "^15.0.1",
5353
"remark-cli": "^8.0.0",
5454
"remark-preset-github": "^1.0.0",
@@ -95,20 +95,6 @@
9595
"yeoman"
9696
],
9797
"license": "MIT",
98-
"lint-staged": {
99-
"*.js": [
100-
"xo --fix",
101-
"git add"
102-
],
103-
"*.md,!test/snapshots/**/*.md,!template/test/snapshots/**/*.md,!template/test/**/*snapshots/**/*.md,!template/README.md,!template/locales/README.md": [
104-
"remark . -qfo",
105-
"git add"
106-
],
107-
"package.json": [
108-
"fixpack",
109-
"git add"
110-
]
111-
},
11298
"main": "sao.js",
11399
"nyc": {
114100
"reporter": [

template/package.json

+1-11
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
"gulp-xo": "^0.24.0",
163163
"husky": "^4.2.3",
164164
"imagemin-pngquant": "^8.0.0",
165-
"lint-staged": "^10.1.3",
165+
"lint-staged": "10.1.1",
166166
"make-dir": "^3.0.2",
167167
"ms": "^2.1.2",
168168
"node-sass": "^4.13.1",
@@ -204,16 +204,6 @@
204204
"lass"
205205
],
206206
"license": "Unlicensed",
207-
"lint-staged": {
208-
"*.md,!test/snapshots/**/*.md,!test/**/snapshots/**/*.md,!locales/README.md": [
209-
"remark . -qfo",
210-
"git add"
211-
],
212-
"package.json": [
213-
"fixpack",
214-
"git add"
215-
]
216-
},
217207
"main": "index.js",
218208
"nodemonConfig": {
219209
"ignore": [

template/yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -9878,10 +9878,10 @@ [email protected], linkify-it@^2.0.0:
98789878
dependencies:
98799879
uc.micro "^1.0.1"
98809880

9881-
lint-staged@^10.1.3:
9882-
version "10.1.3"
9883-
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-10.1.3.tgz#da27713d3ac519da305381b4de87d5f866b1d2f1"
9884-
integrity sha512-o2OkLxgVns5RwSC5QF7waeAjJA5nz5gnUfqL311LkZcFipKV7TztrSlhNUK5nQX9H0E5NELAdduMQ+M/JPT7RQ==
9881+
9882+
version "10.1.1"
9883+
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-10.1.1.tgz#1c8569b66d684e6e3553cd760c03053f41fca152"
9884+
integrity sha512-wAeu/ePaBAOfwM2+cVbgPWDtn17B0Sxiv0NvNEqDAIvB8Yhvl60vafKFiK4grcYn87K1iK+a0zVoETvKbdT9/Q==
98859885
dependencies:
98869886
chalk "^3.0.0"
98879887
commander "^4.0.1"

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -4395,10 +4395,10 @@ lines-and-columns@^1.1.6:
43954395
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00"
43964396
integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=
43974397

4398-
lint-staged@^10.1.3:
4399-
version "10.1.3"
4400-
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-10.1.3.tgz#da27713d3ac519da305381b4de87d5f866b1d2f1"
4401-
integrity sha512-o2OkLxgVns5RwSC5QF7waeAjJA5nz5gnUfqL311LkZcFipKV7TztrSlhNUK5nQX9H0E5NELAdduMQ+M/JPT7RQ==
4398+
lint-staged@^10.1.4:
4399+
version "10.1.4"
4400+
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-10.1.4.tgz#c0e0930ed5568ada2a7fbd9d300318c87803a4b0"
4401+
integrity sha512-bFfQE6U8LASGKANl+JSN8nfL9Id6vq2YmWMgkynvmicMVQFR11OFU8lqcnI1y0fsPr3PwHa6xeMCh+SWB8TPkg==
44024402
dependencies:
44034403
chalk "^3.0.0"
44044404
commander "^4.0.1"

0 commit comments

Comments
 (0)