Skip to content

Commit

Permalink
added rule for styled components
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie committed Jan 2, 2018
1 parent f17ff15 commit d8f4032
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 6 deletions.
11 changes: 11 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[ignore]

[include]

[libs]

[lints]

[options]

[strict]
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all"
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
"eslint": "^4.13.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-prettier": "^2.6.0",
"eslint-config-wizeline":
"github:wizeline/javascript-style-guide#extend-airbnb",
"eslint-config-wizeline": "github:wizeline/javascript-style-guide#extend-airbnb",
"eslint-plugin-flowtype": "^2.39.1",
"eslint-plugin-flowtype-errors": "^3.3.6",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-prettier": "^2.4.0",
"eslint-plugin-react": "^7.4.0"
"eslint-plugin-react": "^7.4.0",
"flow-bin": "^0.62.0",
"prettier": "^1.9.2"
}
}
3 changes: 0 additions & 3 deletions src/a.js

This file was deleted.

4 changes: 4 additions & 0 deletions src/base.styled.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// @flow

/* eslint flowtype-errors/enforce-min-coverage: 0 */

import { injectGlobal } from 'styled-components';
import reset from 'styled-reset';

Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,10 @@ flat-cache@^1.2.1:
graceful-fs "^4.1.2"
write "^0.2.1"

flow-bin@^0.62.0:
version "0.62.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.62.0.tgz#14bca669a6e3f95c0bc0c2d1eb55ec4e98cb1d83"

foreach@^2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99"
Expand Down Expand Up @@ -1102,6 +1106,10 @@ prelude-ls@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"

prettier@^1.9.2:
version "1.9.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.9.2.tgz#96bc2132f7a32338e6078aeb29727178c6335827"

process-nextick-args@~1.0.6:
version "1.0.7"
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3"
Expand Down

0 comments on commit d8f4032

Please sign in to comment.