Skip to content

Instantly share code, notes, and snippets.

@suntong
Created March 7, 2018 06:00
Show Gist options
  • Save suntong/3a2a1c8b10609a9d5080f289355ff09b to your computer and use it in GitHub Desktop.
Save suntong/3a2a1c8b10609a9d5080f289355ff09b to your computer and use it in GitHub Desktop.
// https://gist.github.com/ls42/bc6aebda6c66bebe0c53
module.exports = {
'env': {
'browser': true,
'meteor': true,
'node': true,
'es6': true
},
'extends': 'eslint:recommended',
'parserOptions': {
'ecmaFeatures': {
'jsx': true
},
ecmaVersion: 8,
'sourceType': 'module'
},
// 'plugins': ['react'],
'rules': {
"no-console": "off",
"no-mixed-spaces-and-tabs": "off",
"no-trailing-spaces": "off",
'indent': "off",
//'semi': [2, 'never'],
'semi': "off",
//'quotes': [2, 'single'],
"quotes": "off",
"no-unused-vars": "warn",
'linebreak-style': [2, 'unix'],
'brace-style': [2, '1tbs'],
'array-bracket-spacing': [2, 'never'],
'camelcase': [2, {'properties': 'always'}],
'keyword-spacing': "warn",
'eol-last': [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