From 47514a393a3c9c7c0e7684badddac153fff15981 Mon Sep 17 00:00:00 2001 From: Joren Broekema Date: Tue, 4 Jun 2019 14:04:25 +0200 Subject: [PATCH 1/3] chore: fix linting scripts for windows; eclint use .gitignore --- assets/.editorconfig | 1 + package.json | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 assets/.editorconfig diff --git a/assets/.editorconfig b/assets/.editorconfig new file mode 100644 index 000000000..78b36ca08 --- /dev/null +++ b/assets/.editorconfig @@ -0,0 +1 @@ +root = true diff --git a/package.json b/package.json index bf0a8bf78..d1617d8f4 100644 --- a/package.json +++ b/package.json @@ -43,12 +43,12 @@ "test:prune-snapshots": "karma start --prune-snapshots", "test:bs": "karma start karma.bs.config.js --coverage", "lint": "run-p lint:*", - "lint:eclint": "eclint check $(find . \\( -name '*.html' -o -name '*.js' -o -name '*.css' \\) -type f -not -path '*/\\.*' -not -path '*node_modules/*' -not -path '*assets/*' -not -path '*coverage/*')", + "lint:eclint": "git ls-files | xargs eclint check", "lint:eslint": "eslint --ext .js,.html .", - "lint:prettier": "prettier '**/*.js' --list-different || (echo '↑↑ these files are not prettier formatted ↑↑' && exit 1)", + "lint:prettier": "prettier \"**/*.js\" --list-different || (echo '↑↑ these files are not prettier formatted ↑↑' && exit 1)", "format": "npm run format:eslint && npm run format:prettier", "format:eslint": "eslint --ext .js,.html . --fix", - "format:prettier": "prettier '**/*.js' --write" + "format:prettier": "prettier \"**/*.js\" --write" }, "lint-staged": { "*": [ From 1114500103c065bb8aa87a8523a871cb040730fc Mon Sep 17 00:00:00 2001 From: Joren Broekema Date: Tue, 4 Jun 2019 14:06:54 +0200 Subject: [PATCH 2/3] chore: do not fail on block comments in JS code in Markdown files --- .editorconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 1fcb8188c..b73dd195a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,7 +8,7 @@ end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true -[*.{html,js}] +[*.{html,js,md}] block_comment_start = /** block_comment = * block_comment_end = */ From 0460cebe2784252c64db827d78da7a3422e15022 Mon Sep 17 00:00:00 2001 From: Joren Broekema Date: Tue, 4 Jun 2019 14:07:22 +0200 Subject: [PATCH 3/3] chore: fix issues found in markdown files by linters --- packages/field/docs/CustomFieldsTutorial.md | 14 +++++++------- packages/select/README.md | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/field/docs/CustomFieldsTutorial.md b/packages/field/docs/CustomFieldsTutorial.md index 36e54cad9..c7172d1e2 100644 --- a/packages/field/docs/CustomFieldsTutorial.md +++ b/packages/field/docs/CustomFieldsTutorial.md @@ -1,23 +1,23 @@ # Creating a custom field -Custom fields can be created in just a few steps. All you need is an interaction element +Custom fields can be created in just a few steps. All you need is an interaction element (like for instance a slider, a listbox or a combobox) and connect it to the [Field](../README.md) functionality. ## Prerequisite: an interaction element -An interaction element provides the means for the end user to enter a certain value, just like +An interaction element provides the means for the end user to enter a certain value, just like native elements provide in this (think of ``, `