chore: Use ESLint overrides for config (#348)

This commit is contained in:
Nick Schonning 2020-12-08 00:17:14 -05:00 committed by GitHub
parent a9d25b04ac
commit 0c309c63c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 6 deletions

View file

@ -180,5 +180,36 @@
"unicorn/prevent-abbreviations": "off",
"unicorn/string-content": "error",
"unicorn/throw-new-error": "error"
}
},
"overrides": [
{
"files": [
"demo/*.js"
],
"env": {
"browser": true
},
"rules": {
"jsdoc/require-jsdoc": "off",
"unicorn/prefer-query-selector": "off",
"unicorn/prefer-add-event-listener": "off",
"no-console": "off",
"no-shadow": "off",
"no-var": "off"
}
},
{
"files": [
"example/*.js"
],
"rules": {
"node/no-missing-require": "off",
"node/no-extraneous-require": "off",
"no-console": "off",
"no-invalid-this": "off",
"no-shadow": "off",
"object-property-newline": "off"
}
}
]
}