Skip to content

Instantly share code, notes, and snippets.

@janzenz
Last active February 20, 2018 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janzenz/e36194a9083c3ea0edfd698e65d46610 to your computer and use it in GitHub Desktop.
Save janzenz/e36194a9083c3ea0edfd698e65d46610 to your computer and use it in GitHub Desktop.
ESLint Config for Meteor + React with Comments
{
"env": {
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:meteor/recommended"
],
"parserOptions": {
"allowImportExportEverywhere": true
},
"plugins": [
"meteor"
],
"settings": {
"import/resolver": "meteor"
},
"rules": {
"indent": [
"error",
2
],
"quotes": [
"error",
"single",
// To allow Template Literals inside Component props.
// ex. <Component width={`50%`}/>
//
{ "allowTemplateLiterals": true }
],
"react/jsx-filename-extension": ["error", { "extensions": [".js"] }],
/* To allow absolute path imports in Meteor
*/
"import/no-absolute-path": [
"off"
],
/* To resolve https://github.com/clayne11/eslint-import-resolver-meteor/issues/17
*/
"import/extensions": [
"off",
"never"
],
/* Work around until https://github.com/benmosher/eslint-plugin-import/issues/479 is resolved
*/
"import/no-extraneous-dependencies": [
"off"
],
/* To allow `_id` access when retrieving Mongo documents
*/
"no-underscore-dangle": [
"off"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment