Last active
September 13, 2018 09:26
-
-
Save lifeofcoding/620afc60e62d825330d5178c4f9f564b to your computer and use it in GitHub Desktop.
ESLint Configuration
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
// $ 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