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

Change eslint to be airbnb #1

Open
badnorseman opened this issue Oct 31, 2016 · 0 comments
Open

Change eslint to be airbnb #1

badnorseman opened this issue Oct 31, 2016 · 0 comments

Comments

@badnorseman
Copy link
Owner

badnorseman commented Oct 31, 2016

.eslintrc.json

{
  "extends": [
    "airbnb",
    "plugin:flowtype/recommended"
  ],
  "parser": "babel-eslint",
  "plugins": [
    "flowtype",
    "react-native"
  ],
  "env": {
    "browser": true,
    "mocha": true,
    "node": true
  },
  "globals": {
    "__DEV__": true
  },
  "settings": {
    "import/resolver": {
      "node": {
        "extensions": [".js", ".android.js", ".ios.js"]
      }
    }
  },
  "rules": {
    "block-scoped-var": 0,
    "comma-dangle": [2, "always"],
    "no-console": 0,
    "no-use-before-define": 0,
    "padded-blocks": 0,
    "react/jsx-filename-extension": [2, { "extensions": [".js"] }],
    "react/jsx-uses-react": 2,
    "react/jsx-uses-vars": 2,
    "react/prefer-stateless-function": 2,
    "react/react-in-jsx-scope": 2,
    "react-native/no-unused-styles": 2
  },
  "settings": {
    "flowtype": {
      "onlyFilesWithFlowAnnotation": true
    }
  }
}

.eslintignore

node_modules
ios
android
.git
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