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

eslint #17

Closed
0x80 opened this issue Jun 8, 2015 · 1 comment
Closed

eslint #17

0x80 opened this issue Jun 8, 2015 · 1 comment

Comments

@0x80
Copy link

0x80 commented Jun 8, 2015

There is a problem with eslintrc because line 11 misses a comma. Therefor the linter can't parse the file.

Besides eslint I'm using babel-eslint and eslint-plugin-react. With these you get clean and detailed and linting for react, jsx and es6.

My .eslintrc file looks like this

{
  "parser": "babel-eslint",
  "plugins": [
    "react"
  ],
  "ecmaFeatures": {
    "jsx": true,
    "modules": true
  },
  "env": {
    "node": true,
    "mocha": true,
    "es6": true,
    "browser": true
  },
  "globals": {

  },
  "rules": {
    "quotes": [2, "single"],
    "semi": [2, "never"],
    "curly": [2, "multi-line"],
    "no-underscore-dangle": 0,

    "react/display-name": 0,
    "react/jsx-boolean-value": 1,
    "react/jsx-quotes": 1,
    "react/jsx-no-undef": 1,
    "react/jsx-sort-props": 1,
    "react/jsx-sort-prop-types": 1,
    "react/jsx-uses-react": 1,
    "react/jsx-uses-vars": 1,
    "react/no-did-mount-set-state": 1,
    "react/no-did-update-set-state": 1,
    "react/no-multi-comp": 1,
    "react/no-unknown-property": 1,
    "react/prop-types": 1,
    "react/react-in-jsx-scope": 1,
    "react/self-closing-comp": 1,
    "react/sort-comp": 0,
    "react/wrap-multilines": 1
  }
}
@chentsulin
Copy link
Member

Sure. Let's improve .eslintrc

yeongbin-jo pushed a commit to PyLabCo/pylab-electron-boilerplate that referenced this issue Oct 29, 2021
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

2 participants