Skip to content

Commit

Permalink
fix(style): inline animation interpolation; readd lint:css to lint sc…
Browse files Browse the repository at this point in the history
…ript
  • Loading branch information
jwinn authored and gretzky committed Nov 20, 2018
1 parent 66fcdc5 commit fb6d51a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 29 deletions.
8 changes: 2 additions & 6 deletions app/components/LoadingIndicator/Circle.js
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import styled, { css, keyframes } from 'styled-components';
import styled, { keyframes } from 'styled-components';

const circleFadeDelay = keyframes`
0%,
Expand All @@ -14,10 +14,6 @@ const circleFadeDelay = keyframes`
}
`;

const circleFadeDelayRule = css`
${circleFadeDelay} 1.2s infinite ease-in-out both;
`;

const Circle = props => {
const CirclePrimitive = styled.div`
width: 100%;
Expand All @@ -38,7 +34,7 @@ const Circle = props => {
height: 15%;
background-color: #999;
border-radius: 100%;
animation: ${circleFadeDelayRule};
animation: ${circleFadeDelay} 1.2s infinite ease-in-out both;
${props.delay &&
`
-webkit-animation-delay: ${props.delay}s;
Expand Down
30 changes: 8 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -31,7 +31,7 @@
"clean": "shjs ./internals/scripts/clean.js",
"clean:all": "npm run analyze:clean && npm run test:clean && npm run build:clean",
"generate": "plop --plopfile internals/generators/index.js",
"lint": "npm run lint:js",
"lint": "npm run lint:js && npm run lint:css",
"lint:css": "stylelint './app/**/*.js'",
"lint:eslint": "eslint --ignore-path .gitignore --ignore-pattern internals/scripts",
"lint:eslint:fix": "eslint --ignore-path .gitignore --ignore-pattern internals/scripts --fix",
Expand Down

0 comments on commit fb6d51a

Please sign in to comment.