Merge pull request #85 from ing-bank/chore/lintScripts
Fix linting scripts
This commit is contained in:
commit
0096758b90
5 changed files with 14 additions and 13 deletions
|
|
@ -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 = */
|
||||
|
|
|
|||
1
assets/.editorconfig
Normal file
1
assets/.editorconfig
Normal file
|
|
@ -0,0 +1 @@
|
|||
root = true
|
||||
|
|
@ -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": {
|
||||
"*": [
|
||||
|
|
|
|||
|
|
@ -42,11 +42,11 @@ import '@lion/select/lion-select.js';
|
|||
```
|
||||
|
||||
You can preselect an option by setting the property modelValue.
|
||||
```html
|
||||
```html
|
||||
<lion-select
|
||||
name="favoriteColor"
|
||||
.modelValue="${'<value of option 2>'}"
|
||||
>
|
||||
...
|
||||
</lion-select>
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue