Skip to content

Instantly share code, notes, and snippets.

@guidoschmidt
Created October 5, 2017 19:03
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 guidoschmidt/f64789ca74168f5dd7ff39eeae8db980 to your computer and use it in GitHub Desktop.
Save guidoschmidt/f64789ca74168f5dd7ff39eeae8db980 to your computer and use it in GitHub Desktop.
Example .eslintrc.js
// $ cat .eslintrc.js
module.exports = {
'env': {
'browser': true,
'meteor': true,
'node': true,
'es6': true
},
'extends': 'eslint:recommended',
'parserOptions': {
'ecmaFeatures': {
'jsx': true
},
'sourceType': 'module'
},
'plugins': ['react'],
'rules': {
'indent': [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