Skip to content

Instantly share code, notes, and snippets.

@amjad-desai
Last active March 12, 2018 14:47
Show Gist options
  • Save amjad-desai/085d6e47297d7abecc7a090151e197d2 to your computer and use it in GitHub Desktop.
Save amjad-desai/085d6e47297d7abecc7a090151e197d2 to your computer and use it in GitHub Desktop.
// $ cat .eslintrc.js
module.exports = {
parser: 'babel-eslint',
env: {
browser: true,
meteor: true,
node: true,
es6: true
},
extends: 'eslint:recommended',
parserOptions: {
ecmaFeatures: {
jsx: true
},
sourceType: 'module'
},
plugins: ['react'],
rules: {
indent: ["error",2, 4],
'linebreak-style': [2, 'unix'],
quotes: [2, 'single'],
semi: [2, 'never'],
'brace-style': [2, '1tbs'],
'array-bracket-spacing': [2, 'never'],
camelcase: [2, { properties: 'always' }],
'keyword-spacing': [2],
'eol-last': [2],
'no-trailing-spaces': [2]
},
globals: {
// Collections
Persons: true,
Modules: true,
// More stuff
// [...]
// Packages
lodash: true,
i18n: true,
moment: true,
Messenger: true
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment