Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With bug #1

Open
wants to merge 190 commits into
base: without-bug
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
190 commits
Select commit Hold shift + click to select a range
4f0d112
(Re)-Introduce Android support via a MutationObserver based reconcili…
clauderic May 14, 2021
7632d4d
Version Packages (#4259)
github-actions[bot] May 14, 2021
cb1db7f
Add getFragment to the API docs
thesunny May 15, 2021
294d512
Fix errors accessing `globalThis` in browsers that do not implement i…
clauderic May 20, 2021
ff26776
chore(slate-react) typo - rename extractMatch to exactMatch (#4271)
May 20, 2021
832597f
Add link to Selection Transforms API Reference in Transforms Concepts
thesunny May 21, 2021
f12a9ed
Attempt to fix broken links in GitBook to API Reference
thesunny May 21, 2021
5dea3d2
Another attempt to fix broken links using .md extension
thesunny May 21, 2021
ecf26bf
Fix another link in concepts/transforms
thesunny May 21, 2021
fcdcbc1
Fix link in concepts/nodes
thesunny May 21, 2021
76cfab1
Fix link target in concepts/nodes
thesunny May 21, 2021
53324cb
Adjust link references to be consistent with other by adding Robot em…
thesunny May 21, 2021
438722d
Add links from concepts/editor to Editor API Reference
thesunny May 21, 2021
b5f3678
docs: clarify Range.includes method to mean intersects
thesunny May 21, 2021
29051c8
Add documentation for options.split in Transforms.wrapNodes
thesunny May 22, 2021
ffbb92f
docs: Add descriptions and links to describe void/inline and void/not…
thesunny May 26, 2021
a55c4a2
docs: organize Editor configuration into headings and subheading
thesunny May 26, 2021
65a1a9e
docs: rename element configuration to behavior types
thesunny May 26, 2021
cf6145d
docs: minor grammatical fix
thesunny May 26, 2021
0a7e04c
docs: Add links about at and match options
thesunny May 26, 2021
7e736c9
docs: Remove puffery from docs
thesunny May 26, 2021
b3784e4
docs: Try putting options in a list in Transforms API for better read…
thesunny May 26, 2021
03746d9
docs: Add generics to Editor API and add missing method
thesunny May 26, 2021
0994413
Add markdownlint to remove unnecessary warnings
thesunny May 26, 2021
ced37b9
docs: Try changing function format to use fat arrow to see how it looks
thesunny May 26, 2021
2fbcb33
docs: change Editor static methods to use fat arrows in method names
thesunny May 26, 2021
21a213e
docs: Add return types to Editor schema specific overrides
thesunny May 26, 2021
c1496f4
docs: Add fat arrows to Nodes API
thesunny May 26, 2021
708372c
docs: Add fat arrows to Text API
thesunny May 26, 2021
5e4459e
docs: Fix spacing in Editor API interface code
thesunny May 26, 2021
1ef84f4
docs: Fix marks definition in Editor interface
thesunny May 26, 2021
c7ff274
Update release workflow to make sure `latest` job runs before `dev` (…
clauderic May 26, 2021
67f6460
Tweak release workflow (#4291)
clauderic May 26, 2021
8f7bf7f
Revert to using matrix for release workflow (#4294)
clauderic May 26, 2021
8db4573
Fix contributing link (#4297)
kellyjosephprice May 27, 2021
dfc0396
Fix warnings related to `autoCorrect` and `autoCapitalize` (#4295)
dubzzz May 27, 2021
2c17e2b
Allow control of Slate's event handler execution in custom event hand…
georgberecz Jun 1, 2021
a7e3a18
Fix deletion in Chrome when inline void node is selected (#4307)
clauderic Jun 1, 2021
411e5a1
Don't import slate-history in slate-react (#4266)
TheSpyder Jun 1, 2021
dbf9962
Version Packages (#4273)
github-actions[bot] Jun 1, 2021
f283a70
docs: Adjust docs to reflect that there is Android support
thesunny Jun 1, 2021
8ba06cd
docs: Fix duplicate Editor.nodes in documentation
thesunny Jun 6, 2021
c05d4c4
docs: Add detail to how the Editor.nodes method works
thesunny Jun 6, 2021
cbe8e1a
docs: Provide additional details for Path.next and Path.previous
thesunny Jun 6, 2021
68dba70
docs: Add details to how the Path.relative method works
thesunny Jun 6, 2021
402b93e
docs: Expand on Path.parent that it throws an Error if at the root
thesunny Jun 6, 2021
1a04970
docs: Convert Path API documentation to use TypeScript format for met…
thesunny Jun 6, 2021
a0a976f
docs: Switch Location API to use TypeScript method signatures
thesunny Jun 6, 2021
198b82c
docs: Convert Point API to use TypeScript method signatures
thesunny Jun 6, 2021
a451d3e
docs: Use TypeScript style method signatures for Range API
thesunny Jun 6, 2021
0c30c55
docs: Add details for how the Range static methods work
thesunny Jun 6, 2021
d8dde5b
docs: Add PointEntry to API reference
thesunny Jun 6, 2021
3308383
docs: Add API reference for NodeEntry
thesunny Jun 6, 2021
3156bd0
docs: Describe Text.matches in detail and describe 'loose' option in …
thesunny Jun 7, 2021
3baf130
docs: Add docs for Text.isTextList
thesunny Jun 7, 2021
e2ae330
docs: Experiment with alternate options documentation format
thesunny Jun 7, 2021
614260f
docs: Experiment with using ts for showing API signature
thesunny Jun 7, 2021
665b6c8
docs: Experiment with alternate Options syntax for documentation
thesunny Jun 7, 2021
1e6f60a
docs: Try options syntax with defaults
thesunny Jun 7, 2021
1f08442
docs: Add detailed description of how Editor.positions works
thesunny Jun 7, 2021
c86d0b0
docs: Improve styling and wording in Editor.positions
thesunny Jun 7, 2021
06121a3
docs: Fix typo
thesunny Jun 7, 2021
26f4b25
docs: Clarified that Editor.positions in reverse with a word changes …
thesunny Jun 7, 2021
61171a2
Fix backward typing bug in Safari by ensuring the selection is remove…
clauderic Jun 7, 2021
e042ebd
Expose interface to setNormalizing (#3859)
jason-codaio Jun 7, 2021
6c99352
Version Packages (#4325)
github-actions[bot] Jun 9, 2021
a3bc97a
Fix deletion of selected inline void nodes in Safari (#4331)
golota60 Jun 9, 2021
ea5e3e4
Version Packages (#4332)
github-actions[bot] Jun 9, 2021
506d9bc
Add syntax highlighting example to menu
thesunny Jul 2, 2021
51bfb40
Describe when we can remove lintstagedrc as a comment
thesunny Jul 2, 2021
19c9a8c
Added test for 'move-node' operation (#4361)
anishagg17 Jul 7, 2021
7d14bef
docs: Improve documentation for Editor.previous and Editor.next
thesunny Jul 8, 2021
03e8230
docs: Improve documentation around Editor.before and Editor.after
thesunny Jul 8, 2021
03eed53
Fix typescript docs (#4303)
cmditch Jul 9, 2021
7ea482c
docs: Improve wording on TypeScript docs
thesunny Jul 9, 2021
e377c8f
docs: Small change to test lint staging
thesunny Jul 9, 2021
acfcd9a
docs: Small change to 12-typescript.md to test linting
thesunny Jul 9, 2021
c3c3670
docs: Fix installing slate to pass prettier
thesunny Jul 9, 2021
f4168e2
Match lintstagedrc to lint-staged in package.json
thesunny Jul 9, 2021
e79f238
Comment lintstagedrc properly so we know how and why it is there and …
thesunny Jul 9, 2021
46c8871
Re-render leaf when new properties were added to it (#4347)
aiwenar Jul 9, 2021
c217dbb
Fix scroll into view to scroll parent scrollables (#4369)
thesunny Jul 9, 2021
106dd9c
docs: describe how empty element children normalization executes befo…
thesunny Jul 20, 2021
083a3da
fix: contributing link (#4344)
khattakdev Jul 21, 2021
06a376d
docs: add Span to documentation
thesunny Jul 27, 2021
354b009
docs: Fix links in Span API docs
thesunny Jul 27, 2021
baa43c3
Added cypress test for links and markdownShortcuts (#4397)
anishagg17 Aug 2, 2021
a35fe46
added cypress test for check-list page (#4383)
anishagg17 Aug 2, 2021
97b2809
Added cypress-test for code-highlighting (#4409)
anishagg17 Aug 3, 2021
fed9354
Cypress tests for examples (#4389)
samarsault Aug 3, 2021
f3b316e
Fix display bug in GitBook (#4402)
Aug 5, 2021
8860c91
feat(docs): add another member for slate (#4393)
pubuzhixing8 Aug 5, 2021
5169cf5
fix sentence order in doc (#4363)
Aug 5, 2021
531707e
Clean up imports (#4319)
dtslvr Aug 5, 2021
4d133e0
Fix broken plugins link in Editor documentation (#4335)
dylans Aug 5, 2021
81d62e1
Remove unused useEffect import (#4406)
Aug 5, 2021
8def576
cypress: shadow-dom example test (#4413)
samarsault Aug 5, 2021
e6faf8e
add test case to cover issue from #4103 (#4292)
lukesmurray Aug 5, 2021
0214b63
Skip wrapping nodes when the only match is an editor (#4253)
TheSpyder Aug 5, 2021
0188980
fix bug: decorate is not called for immediate children of editor (#4394)
jaked Aug 5, 2021
13b3f9c
Do not remove empty node in merge operation if it is first children i…
liangxiwei Aug 5, 2021
bde6e80
fix(slate-react): use Text.equals to compare leaf (#4175)
gyh9457 Aug 5, 2021
4b373dc
fix: hide placeholder when composing (#4352)
hueyhe Aug 5, 2021
2614dc3
Update resources.md (#4414)
dylans Aug 5, 2021
6c84422
Fix ios chrome ime double input issue. (#4049)
ulion Aug 6, 2021
f0721ac
Update resources.md (#4418)
dylans Aug 6, 2021
e0776c5
Allow setFragmentData without clipboardData object (#4333)
dylans Aug 6, 2021
0765766
docs: update link for react-page (former ORY Editor) (#3783)
macrozone Aug 6, 2021
1f3a489
Fix useTimeout type to use browser type instead of nodejs type (#4419)
bryanph Aug 6, 2021
e4e2757
prevent code highlighting test failure due to timeout (#4423)
dylans Aug 7, 2021
ca9e214
Support custom scrollIntoView from user side. (#4037)
ulion Aug 7, 2021
40a12d7
small UI fix for the search icon and placeholder of the search higli…
Devesh21700Kumar Aug 7, 2021
e65eeb2
added cypress tests (#4420)
anishagg17 Aug 7, 2021
ba8e5d8
feat(docs): mention third parameter to `toSlateRange` method in the d…
bytrangle Aug 8, 2021
706f2fc
Update 01-interfaces.md (#4424)
Aug 8, 2021
236754c
feature(slate): Add isElementType utility function to Element Interfa…
imdbsd Aug 9, 2021
247372d
build(deps): bump tar from 4.4.13 to 4.4.15 (#4410)
dependabot[bot] Aug 10, 2021
4f0ba30
build(deps-dev): bump prismjs from 1.23.0 to 1.24.0 (#4355)
dependabot[bot] Aug 10, 2021
748bf75
Remove unused slate-history dependency on immer (#4430)
TheSpyder Aug 10, 2021
237edc6
fix decorate bug (#4277) without adding extra layers of render tree (…
jaked Aug 10, 2021
3f69a9f
Update `findDocumentOrShadowRoot` to return the root node instead of …
ben10code Aug 10, 2021
9360707
Version Packages (#4368)
github-actions[bot] Aug 10, 2021
b47d3fd
Don't set null in set_node newProperties when using unsetNodes (#4428)
TheSpyder Aug 10, 2021
4dea740
build(deps): bump path-parse from 1.0.6 to 1.0.7 (#4435)
dependabot[bot] Aug 11, 2021
479a759
Fix mergeNodes moving node into parent sibling (#4296)
kellyjosephprice Aug 11, 2021
03ffe45
Add CoCalc to list of resources (#4437)
dylans Aug 11, 2021
4cb1837
Comment out currently flaky integration test (#4441)
dylans Aug 11, 2021
69ee04a
Update 02-nodes.md (#4442)
Aug 11, 2021
6f47cbb
Remove fast-deep-equal (#4276)
TheSpyder Aug 11, 2021
55ff8f0
Fixed regression in #4208 where normalization on empty block nodes co…
TheSpyder Aug 11, 2021
25afbd4
Use native character insertion to fix browser/OS text features (#3888)
bkrausz Aug 11, 2021
8f46d68
cypress: fix flaky code highlight test (#4444)
samarsault Aug 12, 2021
3e4d920
cypress: paste html example test (#4439)
samarsault Aug 12, 2021
62d1a06
Do not needlessly JSON.stringify() the whole editor (#4411)
wereHamster Aug 12, 2021
906e5af
Capture element selections through useSelected (#4365)
samarsault Aug 12, 2021
c6203a2
fix unwrapNode when split && add in nested block (#3820)
githoniel Aug 12, 2021
d32ce0f
fix example paste-html if children are empty (#4446)
horprogs Aug 12, 2021
a1f925b
fix(android): Get fragment from text/html when application/x-slate-fr…
imdbsd Aug 13, 2021
0025900
Add unicode sequences support (#4326)
oliger Aug 13, 2021
220f2d2
Fix invalid cursor when IME converting (#4450)
neko-neko Aug 13, 2021
834ce34
fix(android): Fix editors mark is not inserted on insert text in andr…
imdbsd Aug 13, 2021
935b3a7
fix: chinese input double in qq browser (#4452)
dylans Aug 13, 2021
d06706c
Read data-slate-fragment when application/x-slate-fragment is missing…
imdbsd Aug 13, 2021
8e4120a
fix: insert new node in advance to avoid ime double input with editor…
githoniel Aug 16, 2021
2fa9281
Proposal for Remove useCallback from walkthroughs documentation (#4091)
pukingrainbows Aug 18, 2021
ace397f
Double character insert regression (#4460)
dylans Aug 19, 2021
95c759a
Normalization: Nonempty to empty to inline should remove empty node (…
taj-codaio Aug 21, 2021
3e7ff3b
Layout example fix (#4463)
dylans Aug 21, 2021
48b7129
Make onDomSelectionChange triggered after onClick. (#4132)
ulion Aug 22, 2021
5f6d7b4
Fix typo in TypeScript concepts documentation (#4468)
dylans Aug 25, 2021
8a5a50d
Upgrade cypress to 8.x and next to 10.x (#4469)
bryanph Aug 25, 2021
781b7f7
Increase timeout for markdown-shortcuts test for now (#4474)
bryanph Aug 25, 2021
c1433f5
[slate-react]: fix selection bugs when multiple editors share value (…
skogsmaskin Aug 25, 2021
8eb1aba
Migrate yarn to berry v3 (#4417)
bryanph Aug 28, 2021
2d1aaaf
Fix(editable component): reselect the range created by triple click (…
bytrangle Aug 28, 2021
e51566a
Add key for Children SelectedContext.Provider (#4480)
imdbsd Aug 31, 2021
d338dcc
Jest testing for slate-react (#4459)
echarles Sep 1, 2021
29473b0
chore: follow-up to Yarn update (#4478)
merceyz Sep 2, 2021
1b560de
Fix paste to empty node losing structure of first block (#4489)
nemanja-tosic Sep 6, 2021
dd752df
fix cursor not correct when insert multiple nodes using insertNodes (…
Jokcy Sep 7, 2021
3dd74dd
Update error message for useSlate (#4493)
dylans Sep 7, 2021
f5c0cbd
Fix: regression caused by triple click fix (#4498)
bytrangle Sep 8, 2021
2065c5b
Add changeset for triple click fix (#4503)
bytrangle Sep 9, 2021
50bb3d7
Upgrade `is-plain-object` to v5.0.0 (#4500)
tubbo Sep 9, 2021
269e59c
Immer 9 security update (#4505)
dylans Sep 9, 2021
8b85aeb
Adds an example to the docs for Transforms.select (#4507)
DougReeder Sep 11, 2021
2a346de
Version Packages (#4436)
github-actions[bot] Sep 11, 2021
91ca440
Attempt fix the release process (#4510)
dylans Sep 13, 2021
2af6868
trigger changeset for 0.66 release (#4511)
dylans Sep 13, 2021
cc7cb62
fix(react-editor): reset focus offset when triple clicking (#4512)
bytrangle Sep 13, 2021
8b5dbc3
add missing changeset (#4514)
dylans Sep 13, 2021
cd39284
correct immutability lockfile flag for yarn 3 (#4515)
dylans Sep 13, 2021
59ca7a8
Fix release versioning (#4516)
dylans Sep 13, 2021
d528ad4
Fix release versioning 3 (#4517)
dylans Sep 13, 2021
6ec399d
Fixed nested object comparison when the second value doesn't have tha…
TheSpyder Sep 14, 2021
03226ce
fix release.yml (#4519)
dylans Sep 14, 2021
35b722c
Version Packages (#4520)
github-actions[bot] Sep 14, 2021
bd80a0b
Fix erroneous text after native insert (#4529)
nemanja-tosic Sep 19, 2021
15f8f86
docs: fix typo (#4538)
guitheengineer Sep 19, 2021
0da12c1
Fix setNodes when called with 'split' and a collapsed range (#4523)
steve-codaio Sep 23, 2021
38717ad
Version Packages (#4539)
github-actions[bot] Sep 23, 2021
bc85497
Fix - delete selected inline void in chrome (#4526)
VictorBaron Sep 24, 2021
95e13b0
Updates "Saving to a Database" example to distinguish content changes…
DougReeder Sep 26, 2021
f9c41a5
Fix deletion of expanded range (#4549)
nemanja-tosic Sep 26, 2021
677da0c
Fix `toSlatePoint` when text node ends in `\n` in Firefox (#4547)
clauderic Sep 26, 2021
997fee8
Version Packages (#4544)
github-actions[bot] Sep 27, 2021
7ba486a
Do NOT use exact match when updating dom selection (#4304)
davidruisinger Sep 27, 2021
ffac781
Version Packages (#4551)
github-actions[bot] Sep 27, 2021
37d60c5
only apply Firefox toSlatePoint offset fix if ending in `\n\n` (#4552)
clauderic Sep 27, 2021
f04cc58
Version Packages (#4553)
github-actions[bot] Sep 28, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/merge-nodes-issue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate": patch
---

Do not remove empty node in merge operation if it is first children in its parent.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ node_modules/
site/out/
tmp/
next.config.js
.yarn/
61 changes: 16 additions & 45 deletions .eslintrc → .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
{
"root": true,
"extends": [
"plugin:import/typescript",
"prettier",
"prettier/@typescript-eslint",
"prettier/react"
],
"plugins": [
"@typescript-eslint",
"import",
"react",
"prettier"
],
"plugins": ["@typescript-eslint", "import", "react", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
Expand All @@ -21,12 +17,7 @@
},
"ignorePatterns": ["**/next-env.d.ts"],
"settings": {
"import/extensions": [
".js",
".ts",
".jsx",
".tsx"
],
"import/extensions": [".js", ".ts", ".jsx", ".tsx"],
"react": {
"version": "detect"
}
Expand All @@ -45,10 +36,7 @@
"allowKeywords": true
}
],
"eqeqeq": [
"error",
"smart"
],
"eqeqeq": ["error", "smart"],
"import/default": "error",
"import/export": "error",
"import/first": "error",
Expand Down Expand Up @@ -106,10 +94,7 @@
"no-var": "error",
"no-void": "error",
"no-with": "error",
"object-shorthand": [
"error",
"always"
],
"object-shorthand": ["error", "always"],
"prefer-arrow-callback": "error",
"prefer-const": [
"error",
Expand All @@ -123,10 +108,7 @@
"prefer-template": "error",
"prettier/prettier": "error",
"radix": "error",
"react/jsx-boolean-value": [
"error",
"never"
],
"react/jsx-boolean-value": ["error", "never"],
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-target-blank": "error",
"react/jsx-no-undef": "error",
Expand All @@ -145,30 +127,13 @@
"error",
"always",
{
"exceptions": [
"-"
]
"exceptions": ["-"]
}
],
"use-isnan": "error",
"valid-jsdoc": [
"error",
{
"prefer": {
"return": "returns"
},
"requireReturn": false
}
],
"valid-typeof": "error",
"yield-star-spacing": [
"error",
"after"
],
"yoda": [
"error",
"never"
]
"yield-star-spacing": ["error", "after"],
"yoda": ["error", "never"]
},
"overrides": [
{
Expand All @@ -177,6 +142,12 @@
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off"
}
},
{
"files": "**/*.{ts,tsx}",
"rules": {
"import/named": "off"
}
}
]
}
}
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 12
cache: yarn

- name: Run ${{ matrix.command }}
run: yarn && yarn build && yarn ${{ matrix.command }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 12.x
cache: yarn
registry-url: https://registry.npmjs.org

- name: Install dependencies
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ jobs:
name: ${{ matrix.channel }}
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
channel:
- dev
- latest
- dev

steps:
- name: Checkout repo
uses: actions/checkout@v2
Expand All @@ -24,6 +26,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 12.x
cache: yarn
registry-url: https://registry.npmjs.org

- name: Install dependencies
Expand All @@ -33,15 +36,18 @@ jobs:
run: yarn prerelease

# https://github.com/changesets/action
- name: Create release pull request
- name: Create release pull request or Publish to npm
if: matrix.channel == 'latest'
uses: changesets/action@master
with:
# defined in package.json#scripts
version: yarn changesetversion
publish: yarn changeset publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
YARN_ENABLE_IMMUTABLE_INSTALLS: false

# https://github.com/atlassian/changesets/blob/master/docs/snapshot-releases.md
- name: Release to @dev channel
Expand All @@ -52,3 +58,4 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
*.log
.next/
.vscode/
.idea/
*.tsbuildinfo
build/
Expand All @@ -15,3 +14,12 @@ cypress/videos
cypress/fixtures
cypress/plugins
.DS_Store

# Recommendation from https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored (not using Zero-installs)
.yarn/*
!.yarn/releases
!.yarn/plugins
!/.yarn/sdks/
!/.yarn/sdks/**/lib/
!.yarn/versions
.pnp.*
29 changes: 29 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const escape = require('shell-quote').quote

/**
* Need this to fix a bug where we can't commit this:
*
* `pages/examples/[example].tsx`.
*
* because of the square brackets `[` and `]`.
*
* <https://github.com/okonet/lint-staged/issues/676#issuecomment-574764713>
*
* NOTE:
*
* We can remove this entire file if/when we upgrade to Prettier 2+ where this
* is no longer necessary according to the `lint-staged` issue shown above.
*
* Currently, the same configuration without the escaping of the filename
* still exists in `package.json` but this takes precedence over that.
*
* Once this file is removed, `package.json` configuration will be used.
*/

module.exports = {
'*.{ts,tsx,js,jsx,json,css,md}': filenames => [
...filenames.map(filename => `prettier --write "${escape([filename])}"`),
...filenames.map(filename => `git add "${filename}"`),
],
'*.{ts,tsx,js,jsx,json,css,md}': ['eslint --fix'],
}
4 changes: 4 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"MD001": false,
"MD013": false
}
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ lib/
node_modules/
package.json
site/out/
tmp/
tmp/
.yarn/
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"arcanis.vscode-zipfs",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"eslint.nodePath": ".yarn/sdks",
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
363 changes: 363 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

631 changes: 631 additions & 0 deletions .yarn/releases/yarn-3.0.1.cjs

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions .yarn/sdks/eslint/bin/eslint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire, createRequireFromPath} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint/bin/eslint.js
require(absPnpApiPath).setup();
}
}

// Defer to the real eslint/bin/eslint.js your application uses
module.exports = absRequire(`eslint/bin/eslint.js`);
20 changes: 20 additions & 0 deletions .yarn/sdks/eslint/lib/api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire, createRequireFromPath} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint/lib/api.js
require(absPnpApiPath).setup();
}
}

// Defer to the real eslint/lib/api.js your application uses
module.exports = absRequire(`eslint/lib/api.js`);
6 changes: 6 additions & 0 deletions .yarn/sdks/eslint/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "eslint",
"version": "6.8.0-sdk",
"main": "./lib/api.js",
"type": "commonjs"
}
5 changes: 5 additions & 0 deletions .yarn/sdks/integrations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file is automatically generated by @yarnpkg/sdks.
# Manual changes might be lost!

integrations:
- vscode
20 changes: 20 additions & 0 deletions .yarn/sdks/prettier/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire, createRequireFromPath} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier/index.js
require(absPnpApiPath).setup();
}
}

// Defer to the real prettier/index.js your application uses
module.exports = absRequire(`prettier/index.js`);
6 changes: 6 additions & 0 deletions .yarn/sdks/prettier/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "prettier",
"version": "1.19.1-sdk",
"main": "./index.js",
"type": "commonjs"
}
20 changes: 20 additions & 0 deletions .yarn/sdks/typescript/bin/tsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire, createRequireFromPath} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/bin/tsc
require(absPnpApiPath).setup();
}
}

// Defer to the real typescript/bin/tsc your application uses
module.exports = absRequire(`typescript/bin/tsc`);
20 changes: 20 additions & 0 deletions .yarn/sdks/typescript/bin/tsserver
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire, createRequireFromPath} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/bin/tsserver
require(absPnpApiPath).setup();
}
}

// Defer to the real typescript/bin/tsserver your application uses
module.exports = absRequire(`typescript/bin/tsserver`);
Loading