Skip to content

Commit

Permalink
don't do flow through eslint
Browse files Browse the repository at this point in the history
it makes configuring IDEs a pain
  • Loading branch information
quantizor committed Nov 10, 2018
1 parent d649169 commit 49441ee
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 32 deletions.
16 changes: 2 additions & 14 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"parser": "babel-eslint",
"extends": ["airbnb", "prettier", "prettier/flowtype"],
"extends": ["airbnb", "prettier"],
"globals": {
"__SERVER__": true,
"__VERSION__": true
},
"plugins": ["flowtype", "flowtype-errors", "prettier"],
"plugins": ["prettier"],
"rules": {
"class-methods-use-this": 0,
"curly": [2, "multi-line"],
"flowtype-errors/show-errors": 2,
"import/no-extraneous-dependencies": 0,
"no-confusing-arrow": 0,
"no-continue": 0,
Expand All @@ -25,17 +24,6 @@
"react/require-default-props": 0,
"react/sort-comp": 0,
"symbol-description": 0,
"flowtype/require-valid-file-annotation": [
2,
"always",
{
"annotationStyle": "line"
}
],
"flowtype/boolean-style": [2, "boolean"],
"flowtype/no-dupe-keys": 2,
"flowtype/union-intersection-spacing": [2, "always"],
"flowtype/object-type-delimiter": 2,
"no-restricted-syntax": ["error", "ForOfStatement", "LabeledStatement", "WithStatement"],
"no-return-assign": 0
},
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@
"eslint": "^5.6.1",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^3.1.0",
"eslint-plugin-flowtype": "^2.50.3",
"eslint-plugin-flowtype-errors": "^3.6.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-prettier": "^3.0.0",
Expand Down Expand Up @@ -157,6 +155,7 @@
"lint-staged": {
"*.js": [
"eslint --fix",
"flow check",
"git add"
]
},
Expand Down
1 change: 0 additions & 1 deletion src/models/StyledComponent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// @flow

import validAttr from '@emotion/is-prop-valid';
import React, { createElement, Component } from 'react';
import ComponentStyle from './ComponentStyle';
Expand Down
15 changes: 0 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3133,21 +3133,6 @@ eslint-module-utils@^2.2.0:
debug "^2.6.8"
pkg-dir "^1.0.0"

eslint-plugin-flowtype-errors@^3.6.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype-errors/-/eslint-plugin-flowtype-errors-3.6.0.tgz#5782994261e925aed1320630146636e88e4ad553"
integrity sha1-V4KZQmHpJa7RMgYwFGY26I5K1VM=
dependencies:
babel-runtime "^6.26.0"
slash "^2.0.0"

eslint-plugin-flowtype@^2.50.3:
version "2.50.3"
resolved "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.50.3.tgz#61379d6dce1d010370acd6681740fd913d68175f"
integrity sha512-X+AoKVOr7Re0ko/yEXyM5SSZ0tazc6ffdIOocp2fFUlWoDt7DV0Bz99mngOkAFLOAWjqRA5jPwqUCbrx13XoxQ==
dependencies:
lodash "^4.17.10"

eslint-plugin-import@^2.14.0:
version "2.14.0"
resolved "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.14.0.tgz#6b17626d2e3e6ad52cfce8807a845d15e22111a8"
Expand Down

0 comments on commit 49441ee

Please sign in to comment.