Last active
March 12, 2018 14:47
-
-
Save amjad-desai/085d6e47297d7abecc7a090151e197d2 to your computer and use it in GitHub Desktop.
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 = { | |
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