Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem installing #4

Closed
mvolkmann opened this issue Feb 27, 2016 · 1 comment
Closed

problem installing #4

mvolkmann opened this issue Feb 27, 2016 · 1 comment

Comments

@mvolkmann
Copy link

After following the installation steps, when I run eslint on a file I get "error Definition for rule 'flowtype/require-space-after-type-colon' was not found". Is it okay to install babel-eslint and eslint-plugin-flowtype with "npm install -g"?

I also have this in my .eslintrc file:

{
  "env": {
    "browser": true,
    "es6": true,
    "node": true
  },

  "globals": {
    "angular": false,
    "mtzEnv": false,
    "$": false
  },

  "parser": "babel-eslint",

  "parserOptions": {
     "ecmaVersion": 6,
     "sourceType": "module",
     "ecmaFeatures": {
       "jsx": true
     }
  },

  "plugins": [
     "flowtype",
     "react"
   ],

  "rules": {
    ...
  }
}  
@mvolkmann
Copy link
Author

Nevermind. The issue was that I had "require-" in some of the rule names that didn't need it. This works in the rules section:

    "flowtype/require-parameter-type": 0,
    "flowtype/require-return-type": 0,
    "flowtype/space-after-type-colon": [2, "always"],
    "flowtype/space-before-type-colon": [2, "never"],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant