Skip to content

Instantly share code, notes, and snippets.

@solilin
Created December 8, 2017 12:38
Show Gist options
  • Select an option

  • Save solilin/360a826a303cadbc7b5d5bce9eb48c33 to your computer and use it in GitHub Desktop.

Select an option

Save solilin/360a826a303cadbc7b5d5bce9eb48c33 to your computer and use it in GitHub Desktop.
Eslintrc
{
"extends": "airbnb",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
}
},
"rules": {
"jsx-quotes": 0,
"no-use-before-define": 0,
"max-len": [1, 120, 4],
"jsx-a11y/href-no-hash": 0,
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-filename-extension": ["error", { "extensions": [".jsx"] }],
"react/jsx-first-prop-new-line": 0,
},
"plugins": [
"react",
"import",
"jsx-a11y"
],
globals: {
"I18n": true,
"Routes": true,
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "frontend"]
}
}
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment