Skip to content

Instantly share code, notes, and snippets.

@ramlmn
Last active October 29, 2018 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ramlmn/37afebaad2d6a17e3cdc4928d3521ab1 to your computer and use it in GitHub Desktop.
Save ramlmn/37afebaad2d6a17e3cdc4928d3521ab1 to your computer and use it in GitHub Desktop.
ESLint configuration
{
"env": {
"browser": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"rules": {
"max-len": [2, 100, {
"ignoreComments": true,
"ignoreUrls": true,
"tabWidth": 2
}],
"no-implicit-coercion": [2, {
"boolean": false,
"number": true,
"string": true
}],
"no-unused-expressions": [2, {
"allowShortCircuit": true,
"allowTernary": false
}],
"no-unused-vars": [2, {
"vars": "all",
"args": "after-used",
"argsIgnorePattern": "(^reject$|^_$)",
"varsIgnorePattern": "(^_$)"
}],
"quotes": [2, "single"],
"require-jsdoc": 0,
"valid-jsdoc": 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment