Skip to content

Commit

Permalink
Stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
x3388638 committed Feb 25, 2020
1 parent bac3c85 commit 15b0f42
Show file tree
Hide file tree
Showing 9 changed files with 1,405 additions and 172 deletions.
4 changes: 2 additions & 2 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { configure } from '@storybook/react';
import { configure } from '@storybook/react'

// automatically import all files ending in *.stories.js
configure(require.context('../stories', true, /\.stories\.js$/), module);
configure(require.context('../stories', true, /\.stories\.js$/), module)
6 changes: 3 additions & 3 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ module.exports = {
module: {
rules: [
// add your custom rules.
],
},
};
]
}
}
10 changes: 10 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"processors": ["stylelint-processor-styled-components"],
"extends": [
"stylelint-config-standard",
"stylelint-config-styled-components"
],
"rules": {
"declaration-colon-newline-after": null
}
}
8 changes: 4 additions & 4 deletions components/Gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ const CloseBtn = styled(ToolBtn)`
`

const pulse = keyframes`
0% { opacity: 0.1 }
50% { opacity: 1 }
60% { opacity: 1 }
100% { opacity: 0.1 }
0% { opacity: 0.1; }
50% { opacity: 1; }
60% { opacity: 1; }
100% { opacity: 0.1; }
`

const Loading = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion components/ImageItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Item = styled.div`
margin: 5px;
&:hover {
box-shadow: 0 0 10px 0px #f3f3f3;
box-shadow: 0 0 10px 0 #f3f3f3;
}
`

Expand Down
4 changes: 2 additions & 2 deletions index.user.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion meta.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name dcard-images
// @namespace https://2yc.tw
// @version 1.0.6
// @version 1.0.7
// @description Dcard gallery to browse all images in both article and comments
// @author Y.Y.
// @match https://www.dcard.tw/*
Expand Down
Loading

0 comments on commit 15b0f42

Please sign in to comment.