Skip to content

Commit 0717ed8

Browse files
committed
chore: update repository setup
1 parent 91c872b commit 0717ed8

10 files changed

+208
-163
lines changed

.eslintignore

-10
This file was deleted.

.gitattributes

-1
This file was deleted.

.github/husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx --no-install lint-staged
4+
npx --no-install lint-staged --config .github/lint-staged.js

.github/lint-staged.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
'*.{ts,tsx,js,jsx}': [
3+
'prettier --write',
4+
'npm run lint-es:file:fix',
5+
() => 'npm run test',
6+
],
7+
'*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}':
8+
'prettier --write',
9+
};

.lintstagedrc.js

-10
This file was deleted.

.prettierrc.js

-4
This file was deleted.

.releaserc.js

-60
This file was deleted.

LICENSE.md

+70-70
Original file line numberDiff line numberDiff line change
@@ -217,23 +217,23 @@ produce it from the Program, in the form of source code under the
217217
terms of section 4, provided that you also meet all of these
218218
conditions:
219219

220-
- a) The work must carry prominent notices stating that you modified
221-
it, and giving a relevant date.
222-
- b) The work must carry prominent notices stating that it is
223-
released under this License and any conditions added under
224-
section 7. This requirement modifies the requirement in section 4
225-
to "keep intact all notices".
226-
- c) You must license the entire work, as a whole, under this
227-
License to anyone who comes into possession of a copy. This
228-
License will therefore apply, along with any applicable section 7
229-
additional terms, to the whole of the work, and all its parts,
230-
regardless of how they are packaged. This License gives no
231-
permission to license the work in any other way, but it does not
232-
invalidate such permission if you have separately received it.
233-
- d) If the work has interactive user interfaces, each must display
234-
Appropriate Legal Notices; however, if the Program has interactive
235-
interfaces that do not display Appropriate Legal Notices, your
236-
work need not make them do so.
220+
- a) The work must carry prominent notices stating that you modified
221+
it, and giving a relevant date.
222+
- b) The work must carry prominent notices stating that it is
223+
released under this License and any conditions added under
224+
section 7. This requirement modifies the requirement in section 4
225+
to "keep intact all notices".
226+
- c) You must license the entire work, as a whole, under this
227+
License to anyone who comes into possession of a copy. This
228+
License will therefore apply, along with any applicable section 7
229+
additional terms, to the whole of the work, and all its parts,
230+
regardless of how they are packaged. This License gives no
231+
permission to license the work in any other way, but it does not
232+
invalidate such permission if you have separately received it.
233+
- d) If the work has interactive user interfaces, each must display
234+
Appropriate Legal Notices; however, if the Program has interactive
235+
interfaces that do not display Appropriate Legal Notices, your
236+
work need not make them do so.
237237

238238
A compilation of a covered work with other separate and independent
239239
works, which are not by their nature extensions of the covered work,
@@ -252,42 +252,42 @@ sections 4 and 5, provided that you also convey the machine-readable
252252
Corresponding Source under the terms of this License, in one of these
253253
ways:
254254

255-
- a) Convey the object code in, or embodied in, a physical product
256-
(including a physical distribution medium), accompanied by the
257-
Corresponding Source fixed on a durable physical medium
258-
customarily used for software interchange.
259-
- b) Convey the object code in, or embodied in, a physical product
260-
(including a physical distribution medium), accompanied by a
261-
written offer, valid for at least three years and valid for as
262-
long as you offer spare parts or customer support for that product
263-
model, to give anyone who possesses the object code either (1) a
264-
copy of the Corresponding Source for all the software in the
265-
product that is covered by this License, on a durable physical
266-
medium customarily used for software interchange, for a price no
267-
more than your reasonable cost of physically performing this
268-
conveying of source, or (2) access to copy the Corresponding
269-
Source from a network server at no charge.
270-
- c) Convey individual copies of the object code with a copy of the
271-
written offer to provide the Corresponding Source. This
272-
alternative is allowed only occasionally and noncommercially, and
273-
only if you received the object code with such an offer, in accord
274-
with subsection 6b.
275-
- d) Convey the object code by offering access from a designated
276-
place (gratis or for a charge), and offer equivalent access to the
277-
Corresponding Source in the same way through the same place at no
278-
further charge. You need not require recipients to copy the
279-
Corresponding Source along with the object code. If the place to
280-
copy the object code is a network server, the Corresponding Source
281-
may be on a different server (operated by you or a third party)
282-
that supports equivalent copying facilities, provided you maintain
283-
clear directions next to the object code saying where to find the
284-
Corresponding Source. Regardless of what server hosts the
285-
Corresponding Source, you remain obligated to ensure that it is
286-
available for as long as needed to satisfy these requirements.
287-
- e) Convey the object code using peer-to-peer transmission,
288-
provided you inform other peers where the object code and
289-
Corresponding Source of the work are being offered to the general
290-
public at no charge under subsection 6d.
255+
- a) Convey the object code in, or embodied in, a physical product
256+
(including a physical distribution medium), accompanied by the
257+
Corresponding Source fixed on a durable physical medium
258+
customarily used for software interchange.
259+
- b) Convey the object code in, or embodied in, a physical product
260+
(including a physical distribution medium), accompanied by a
261+
written offer, valid for at least three years and valid for as
262+
long as you offer spare parts or customer support for that product
263+
model, to give anyone who possesses the object code either (1) a
264+
copy of the Corresponding Source for all the software in the
265+
product that is covered by this License, on a durable physical
266+
medium customarily used for software interchange, for a price no
267+
more than your reasonable cost of physically performing this
268+
conveying of source, or (2) access to copy the Corresponding
269+
Source from a network server at no charge.
270+
- c) Convey individual copies of the object code with a copy of the
271+
written offer to provide the Corresponding Source. This
272+
alternative is allowed only occasionally and noncommercially, and
273+
only if you received the object code with such an offer, in accord
274+
with subsection 6b.
275+
- d) Convey the object code by offering access from a designated
276+
place (gratis or for a charge), and offer equivalent access to the
277+
Corresponding Source in the same way through the same place at no
278+
further charge. You need not require recipients to copy the
279+
Corresponding Source along with the object code. If the place to
280+
copy the object code is a network server, the Corresponding Source
281+
may be on a different server (operated by you or a third party)
282+
that supports equivalent copying facilities, provided you maintain
283+
clear directions next to the object code saying where to find the
284+
Corresponding Source. Regardless of what server hosts the
285+
Corresponding Source, you remain obligated to ensure that it is
286+
available for as long as needed to satisfy these requirements.
287+
- e) Convey the object code using peer-to-peer transmission,
288+
provided you inform other peers where the object code and
289+
Corresponding Source of the work are being offered to the general
290+
public at no charge under subsection 6d.
291291

292292
A separable portion of the object code, whose source code is excluded
293293
from the Corresponding Source as a System Library, need not be
@@ -363,23 +363,23 @@ Notwithstanding any other provision of this License, for material you
363363
add to a covered work, you may (if authorized by the copyright holders
364364
of that material) supplement the terms of this License with terms:
365365

366-
- a) Disclaiming warranty or limiting liability differently from the
367-
terms of sections 15 and 16 of this License; or
368-
- b) Requiring preservation of specified reasonable legal notices or
369-
author attributions in that material or in the Appropriate Legal
370-
Notices displayed by works containing it; or
371-
- c) Prohibiting misrepresentation of the origin of that material,
372-
or requiring that modified versions of such material be marked in
373-
reasonable ways as different from the original version; or
374-
- d) Limiting the use for publicity purposes of names of licensors
375-
or authors of the material; or
376-
- e) Declining to grant rights under trademark law for use of some
377-
trade names, trademarks, or service marks; or
378-
- f) Requiring indemnification of licensors and authors of that
379-
material by anyone who conveys the material (or modified versions
380-
of it) with contractual assumptions of liability to the recipient,
381-
for any liability that these contractual assumptions directly
382-
impose on those licensors and authors.
366+
- a) Disclaiming warranty or limiting liability differently from the
367+
terms of sections 15 and 16 of this License; or
368+
- b) Requiring preservation of specified reasonable legal notices or
369+
author attributions in that material or in the Appropriate Legal
370+
Notices displayed by works containing it; or
371+
- c) Prohibiting misrepresentation of the origin of that material,
372+
or requiring that modified versions of such material be marked in
373+
reasonable ways as different from the original version; or
374+
- d) Limiting the use for publicity purposes of names of licensors
375+
or authors of the material; or
376+
- e) Declining to grant rights under trademark law for use of some
377+
trade names, trademarks, or service marks; or
378+
- f) Requiring indemnification of licensors and authors of that
379+
material by anyone who conveys the material (or modified versions
380+
of it) with contractual assumptions of liability to the recipient,
381+
for any liability that these contractual assumptions directly
382+
impose on those licensors and authors.
383383

384384
All other non-permissive additional terms are considered "further
385385
restrictions" within the meaning of section 10. If the Program as you

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)