1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-21 13:51:59 +02:00

lint & example fixes ()

* fix import extensions of eslint

* revert next.config.cjs

* fix eslint globbing

* add migrating to docs’ sidebar

* fix prettier error on Contributing.md

* put quotes for glob matching for windows user

* remove type: module from  package.json
This commit is contained in:
Irwan Fario Subastian 2019-11-29 16:16:39 +11:00 committed by Ian Storm Taylor
parent ac21510597
commit cedc7dc2a5
11 changed files with 8 additions and 11 deletions

@ -6,4 +6,5 @@ dist/
lib/
node_modules/
site/out/
tmp/
tmp/
next.config.js

@ -15,7 +15,7 @@
}
},
"settings": {
"import/extensions": [".js", ".ts"],
"import/extensions": [".js", ".ts", ".jsx", ".tsx"],
"react": {
"version": "detect"
}

@ -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

@ -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

@ -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",

@ -1,6 +1,5 @@
{
"name": "slate-history",
"type": "module",
"description": "An operation-based history implementation for Slate editors.",
"version": "0.50.0",
"license": "MIT",

@ -1,6 +1,5 @@
{
"name": "slate-hyperscript",
"type": "module",
"description": "A hyperscript helper for creating Slate documents.",
"version": "0.50.0",
"license": "MIT",

@ -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",

@ -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",

@ -1,6 +1,5 @@
{
"name": "slate",
"type": "module",
"description": "A completely customizable framework for building rich text editors.",
"version": "0.50.0",
"license": "MIT",