Last active
January 15, 2019 02:29
-
-
Save aadityamaheshwari/40a0f3ba7c5aba9430d9a52e87ef23cb to your computer and use it in GitHub Desktop.
My .eslintrc.js for Visual Studio Code.
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
"use strict"; | |
module.exports = { | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true, | |
"node": true, | |
"jquery": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"ecmaVersion": 8, | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"impliedStrict": true | |
} | |
}, | |
"globals": { | |
"angular": true | |
}, | |
"rules": { | |
"no-extra-parens": [2, "all"], | |
"no-template-curly-in-string": 2, | |
"valid-jsdoc": 2, | |
"accessor-pairs": [2, { | |
"getWithoutSet": false, | |
"setWithoutGet": true | |
}], | |
"default-case": 2, | |
"eqeqeq": [2, "smart"], | |
"no-alert": 2, | |
"strict": [2, "global"], | |
"camelcase": [2, { "properties": "always" }], | |
"comma-spacing": [2, { "after": true }], | |
"func-names": 2, | |
"indent": [2, "tab"], | |
"linebreak-style": [2, "windows"], | |
"quotes": [2, "double"], | |
"semi": [2, "never"], | |
"arrow-parens": [2, "always"], | |
"arrow-spacing": [2, { "before": true, "after": true }], | |
"no-const-assign": 2, | |
"no-this-before-super": 2, | |
"no-var": 2 | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment