diff --git a/.eslintignore b/.eslintignore index 28601d04b..e8189a36c 100644 --- a/.eslintignore +++ b/.eslintignore @@ -6,4 +6,5 @@ dist/ lib/ node_modules/ site/out/ -tmp/ \ No newline at end of file +tmp/ +next.config.js diff --git a/.eslintrc b/.eslintrc index 928636ec6..597463f27 100644 --- a/.eslintrc +++ b/.eslintrc @@ -15,7 +15,7 @@ } }, "settings": { - "import/extensions": [".js", ".ts"], + "import/extensions": [".js", ".ts", ".jsx", ".tsx"], "react": { "version": "detect" } diff --git a/Contributing.md b/Contributing.md index 57b9b0d5c..1ecd37e4d 100644 --- a/Contributing.md +++ b/Contributing.md @@ -64,7 +64,7 @@ yarn start To run the tests, start by building the mono repo as described in the [Repository Setup](#repository-setup) section. -Then you can reun the tests with: +Then you can rerun the tests with: ``` yarn test diff --git a/docs/Summary.md b/docs/Summary.md index 9ae066bb3..a81c05177 100644 --- a/docs/Summary.md +++ b/docs/Summary.md @@ -8,6 +8,7 @@ - [Applying Custom Formatting](./walkthroughs/04-applying-custom-formatting.md) - [Executing Commands](./walkthroughs/05-executing-commands.md) - [Saving to a Database](./walkthroughs/06-saving-to-a-database.md) +- [Using the bundled Source](./walkthroughs/XX-using-the-bundled-source.md) ## Concepts @@ -20,6 +21,7 @@ - [Editor](./concepts/07-editor.md) - [Plugins](./concepts/08-plugins.md) - [Rendering](./concepts/09-rendering.md) +- [Migrating](./concepts/XX-migrating.md) ## General diff --git a/package.json b/package.json index 35644723e..880e59023 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { "private": true, "name": "slate-packages", - "type": "module", "workspaces": [ "packages/*" ], @@ -14,8 +13,8 @@ "fix:eslint": "yarn lint:eslint --fix", "fix:prettier": "yarn lint:prettier --write", "lint": "yarn lint:eslint && yarn lint:prettier", - "lint:eslint": "eslint ./{packages,site}/**/*.{js,jsx,ts,tsx}", - "lint:prettier": "prettier --list-different **/*.{css,md,js,jsx,json,ts,tsx}", + "lint:eslint": "eslint \"./{packages,site}/**/*.{js,jsx,ts,tsx}\"", + "lint:prettier": "prettier --list-different \"**/*.{css,md,js,jsx,json,ts,tsx}\"", "open": "open http://localhost:3000", "release": "NODE_ENV=production yarn build:rollup && yarn test && lerna publish", "serve": "cd ./site && next", diff --git a/packages/slate-history/package.json b/packages/slate-history/package.json index b1bc6a5ff..959eb700f 100644 --- a/packages/slate-history/package.json +++ b/packages/slate-history/package.json @@ -1,6 +1,5 @@ { "name": "slate-history", - "type": "module", "description": "An operation-based history implementation for Slate editors.", "version": "0.50.0", "license": "MIT", diff --git a/packages/slate-hyperscript/package.json b/packages/slate-hyperscript/package.json index bf0a3c709..554dfed59 100644 --- a/packages/slate-hyperscript/package.json +++ b/packages/slate-hyperscript/package.json @@ -1,6 +1,5 @@ { "name": "slate-hyperscript", - "type": "module", "description": "A hyperscript helper for creating Slate documents.", "version": "0.50.0", "license": "MIT", diff --git a/packages/slate-react/package.json b/packages/slate-react/package.json index 50173b758..f5972bd4c 100644 --- a/packages/slate-react/package.json +++ b/packages/slate-react/package.json @@ -1,6 +1,5 @@ { "name": "slate-react", - "type": "module", "description": "Tools for building completely customizable rich-text editors with React.", "version": "0.50.1", "license": "MIT", diff --git a/packages/slate-schema/package.json b/packages/slate-schema/package.json index 49e913df0..1606dc881 100644 --- a/packages/slate-schema/package.json +++ b/packages/slate-schema/package.json @@ -1,6 +1,5 @@ { "name": "slate-schema", - "type": "module", "description": "A mixin for ensuring your Slate content conforms to a set of rules.", "version": "0.50.0", "license": "MIT", diff --git a/packages/slate/package.json b/packages/slate/package.json index 3b7f722cc..bb34aa1cb 100644 --- a/packages/slate/package.json +++ b/packages/slate/package.json @@ -1,6 +1,5 @@ { "name": "slate", - "type": "module", "description": "A completely customizable framework for building rich text editors.", "version": "0.50.0", "license": "MIT", diff --git a/site/next.config.cjs b/site/next.config.js similarity index 100% rename from site/next.config.cjs rename to site/next.config.js