Skip to content

Instantly share code, notes, and snippets.

@miguelitoVargas
Created January 17, 2019 13:50
Show Gist options
  • Save miguelitoVargas/2dfc9d0d9bcaf5f52b0a064135fcd3b7 to your computer and use it in GitHub Desktop.
Save miguelitoVargas/2dfc9d0d9bcaf5f52b0a064135fcd3b7 to your computer and use it in GitHub Desktop.
/* eslint working config for react with vim
// https://eslint.org/docs/user-guide/configuring
// very good for tuning | checking
// https://jslint.com
// https://jslint.com/help.html
*/
module.exports = {
"extends": ["airbnb", "plugin:react/recommended"],
"env": {
"node": true,
"es6": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
},
"plugins": [
"import",
"react"
]
},
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"object-curly-newline": ["error", {
"ObjectExpression": "always",
"ObjectPattern": { "multiline": true },
"ImportDeclaration": "never",
"ExportDeclaration": { "multiline": true, "minProperties": 3 }
}],
"semi": 0
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment