Skip to content

Instantly share code, notes, and snippets.

@aadityamaheshwari
Last active January 15, 2019 02:29
Show Gist options
  • Save aadityamaheshwari/40a0f3ba7c5aba9430d9a52e87ef23cb to your computer and use it in GitHub Desktop.
Save aadityamaheshwari/40a0f3ba7c5aba9430d9a52e87ef23cb to your computer and use it in GitHub Desktop.
My .eslintrc.js for Visual Studio Code.
"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