Skip to content

Instantly share code, notes, and snippets.

@remy
Last active January 21, 2021 17:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remy/9f87cf4a07f48cde16db4fe19827297d to your computer and use it in GitHub Desktop.
Save remy/9f87cf4a07f48cde16db4fe19827297d to your computer and use it in GitHub Desktop.
eslint config for browser and module support
{
"env": {
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:jsdoc/recommended"],
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["jsdoc"],
"rules": {
"no-console": 0,
"jsdoc/require-param-description": 0,
"jsdoc/require-returns-description": 0,
"jsdoc/require-property-description": 0,
"jsdoc/valid-types": 0,
"no-restricted-globals": [
"error", {
"name": "name",
"message": "Use local parameter instead."
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment