-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3748 from storybooks/try-to-fix-marko-linter-issue
Try to fix linter issues
- Loading branch information
Showing
7 changed files
with
32 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,6 @@ | |
}, | ||
"peerDependencies": { | ||
"marko": "^4", | ||
"marko-widgets": "^7" | ||
"marko-widgets": "^7.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
examples/marko-cli/src/components/marko-widgets/hello/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
module.exports = require('marko-widgets').defineComponent({ | ||
// eslint-disable-next-line global-require | ||
template: require('./template.marko'), | ||
|
||
getTemplateData: function(state, input) { | ||
getTemplateData(state, input) { | ||
return { | ||
name: input.name, | ||
}; | ||
}, | ||
|
||
handleClick: function() { | ||
handleClick() { | ||
this.el.style.backgroundColor = 'yellow'; | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6173,7 +6173,7 @@ eslint-config-airbnb@^16.1.0: | |
dependencies: | ||
eslint-config-airbnb-base "^12.1.0" | ||
|
||
eslint-config-prettier@^2.3.0, eslint-config-prettier@^2.9.0: | ||
eslint-config-prettier@^2.9.0: | ||
version "2.9.0" | ||
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-2.9.0.tgz#5ecd65174d486c22dff389fe036febf502d468a3" | ||
dependencies: | ||
|
@@ -6284,16 +6284,16 @@ eslint-plugin-jsx-a11y@^6.0.3: | |
emoji-regex "^6.1.0" | ||
jsx-ast-utils "^2.0.0" | ||
|
||
eslint-plugin-prettier@^2.1.2, eslint-plugin-prettier@^2.6.0: | ||
version "2.6.0" | ||
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.0.tgz#33e4e228bdb06142d03c560ce04ec23f6c767dd7" | ||
eslint-plugin-prettier@^2.2.0: | ||
version "2.4.0" | ||
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.4.0.tgz#85cab0775c6d5e3344ef01e78d960f166fb93aae" | ||
dependencies: | ||
fast-diff "^1.1.1" | ||
jest-docblock "^21.0.0" | ||
|
||
eslint-plugin-prettier@^2.2.0: | ||
version "2.4.0" | ||
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.4.0.tgz#85cab0775c6d5e3344ef01e78d960f166fb93aae" | ||
eslint-plugin-prettier@^2.6.0: | ||
version "2.6.0" | ||
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.0.tgz#33e4e228bdb06142d03c560ce04ec23f6c767dd7" | ||
dependencies: | ||
fast-diff "^1.1.1" | ||
jest-docblock "^21.0.0" | ||
|
@@ -6379,7 +6379,7 @@ [email protected]: | |
table "^4.0.1" | ||
text-table "~0.2.0" | ||
|
||
eslint@^4.19.1, eslint@^4.2.0: | ||
eslint@^4.19.1: | ||
version "4.19.1" | ||
resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.19.1.tgz#32d1d653e1d90408854bfb296f076ec7e186a300" | ||
dependencies: | ||
|
@@ -11391,7 +11391,7 @@ marko-starter@^1.0.0: | |
routes-table "^1.2.1" | ||
try-require "^1.2.1" | ||
|
||
marko-widgets@^7: | ||
marko-widgets@^7.0.1: | ||
version "7.0.1" | ||
resolved "https://registry.yarnpkg.com/marko-widgets/-/marko-widgets-7.0.1.tgz#0e0df2b5609f462f6e93f52f8628535f2f4bc03f" | ||
dependencies: | ||
|