Created
January 17, 2019 13:50
-
-
Save miguelitoVargas/2dfc9d0d9bcaf5f52b0a064135fcd3b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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