1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-06 15:26:34 +02:00

lint & example fixes (#3160)

* 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

View File

@@ -7,3 +7,4 @@ lib/
node_modules/ node_modules/
site/out/ site/out/
tmp/ tmp/
next.config.js

View File

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

View File

@@ -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. 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 yarn test

View File

@@ -8,6 +8,7 @@
- [Applying Custom Formatting](./walkthroughs/04-applying-custom-formatting.md) - [Applying Custom Formatting](./walkthroughs/04-applying-custom-formatting.md)
- [Executing Commands](./walkthroughs/05-executing-commands.md) - [Executing Commands](./walkthroughs/05-executing-commands.md)
- [Saving to a Database](./walkthroughs/06-saving-to-a-database.md) - [Saving to a Database](./walkthroughs/06-saving-to-a-database.md)
- [Using the bundled Source](./walkthroughs/XX-using-the-bundled-source.md)
## Concepts ## Concepts
@@ -20,6 +21,7 @@
- [Editor](./concepts/07-editor.md) - [Editor](./concepts/07-editor.md)
- [Plugins](./concepts/08-plugins.md) - [Plugins](./concepts/08-plugins.md)
- [Rendering](./concepts/09-rendering.md) - [Rendering](./concepts/09-rendering.md)
- [Migrating](./concepts/XX-migrating.md)
## General ## General

View File

@@ -1,7 +1,6 @@
{ {
"private": true, "private": true,
"name": "slate-packages", "name": "slate-packages",
"type": "module",
"workspaces": [ "workspaces": [
"packages/*" "packages/*"
], ],
@@ -14,8 +13,8 @@
"fix:eslint": "yarn lint:eslint --fix", "fix:eslint": "yarn lint:eslint --fix",
"fix:prettier": "yarn lint:prettier --write", "fix:prettier": "yarn lint:prettier --write",
"lint": "yarn lint:eslint && yarn lint:prettier", "lint": "yarn lint:eslint && yarn lint:prettier",
"lint:eslint": "eslint ./{packages,site}/**/*.{js,jsx,ts,tsx}", "lint:eslint": "eslint \"./{packages,site}/**/*.{js,jsx,ts,tsx}\"",
"lint:prettier": "prettier --list-different **/*.{css,md,js,jsx,json,ts,tsx}", "lint:prettier": "prettier --list-different \"**/*.{css,md,js,jsx,json,ts,tsx}\"",
"open": "open http://localhost:3000", "open": "open http://localhost:3000",
"release": "NODE_ENV=production yarn build:rollup && yarn test && lerna publish", "release": "NODE_ENV=production yarn build:rollup && yarn test && lerna publish",
"serve": "cd ./site && next", "serve": "cd ./site && next",

View File

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

View File

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

View File

@@ -1,6 +1,5 @@
{ {
"name": "slate-react", "name": "slate-react",
"type": "module",
"description": "Tools for building completely customizable rich-text editors with React.", "description": "Tools for building completely customizable rich-text editors with React.",
"version": "0.50.1", "version": "0.50.1",
"license": "MIT", "license": "MIT",

View File

@@ -1,6 +1,5 @@
{ {
"name": "slate-schema", "name": "slate-schema",
"type": "module",
"description": "A mixin for ensuring your Slate content conforms to a set of rules.", "description": "A mixin for ensuring your Slate content conforms to a set of rules.",
"version": "0.50.0", "version": "0.50.0",
"license": "MIT", "license": "MIT",

View File

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