feat(package.json): Add lint yarn script + make it a precondition to build all packages.

fmt(tiptap-commands): Fix all ESLint violations with `--fix`

fmt(tiptap-commands): Ignore some ESLint rules on code copied from prosemirror.

fmt(tiptap): Apply ESLint autofix to `tiptap` package sources.

fmt(tiptap-extensions): Fix ESlint violations from `marks`

refactor(tiptap-extensions): Fix ESLint violations for `plugins/Suggestions.js`.

Some of the violations required a bit of restructuring of the code/logic

fmt(tiptap-utils): Fix ESLint violations.

feat(package.json): Add yarn script to lint source code before compiling the examples.
This commit is contained in:
Erick Wilder
2018-10-13 16:45:22 +02:00
parent 3c650cf35f
commit 54550b2386
8 changed files with 80 additions and 69 deletions

View File

@@ -6,7 +6,7 @@ export default function (state, type) {
marks = [...marks, ...node.marks]
})
const mark = marks.find(mark => mark.type.name === type.name)
const mark = marks.find(markItem => markItem.type.name === type.name)
if (mark) {
return mark.attrs