Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jibran
Last active July 19, 2017 12:14
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jibran/4787fbe2feee1ccaa6d5 to your computer and use it in GitHub Desktop.
Save jibran/4787fbe2feee1ccaa6d5 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