Last active
February 20, 2018 05:29
-
-
Save janzenz/e36194a9083c3ea0edfd698e65d46610 to your computer and use it in GitHub Desktop.
ESLint Config for Meteor + React with Comments
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
Show hidden characters
{ | |
"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