Skip to content

Instantly share code, notes, and snippets.

@oksana-c
Forked from jibran/.eslintrc
Created July 19, 2017 12:14
Show Gist options
  • Save oksana-c/c28b17a23ec6cf0870efcfab674a70a4 to your computer and use it in GitHub Desktop.
Save oksana-c/c28b17a23ec6cf0870efcfab674a70a4 to your computer and use it in GitHub Desktop.
Sample eslint file for Drupal 7
{
"env": {
"browser": true
},
"globals": {
"Drupal": true,
"jQuery": true,
"tinyMCE": true
},
"rules": {
"eqeqeq": [2, "smart"],
"guard-for-in": 2,
"no-undef": 2,
//"no-unused-vars": [2, {"vars": "local", "args": "none"}],
"no-unused-vars": 0,
"strict": 0,
"new-cap": 0,
"quotes": 0,
"camelcase": 0,
"no-underscore-dangle": 0,
"no-new": 0,
"no-alert": 0,
"no-use-before-define": 0,
"consistent-return": 0,
"no-constant-condition": 0,
"no-comma-dangle" : 2,
"no-catch-shadow" : 2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment