Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Build/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ module.exports = {
"plugin:import/recommended",
"plugin:@typescript-eslint/recommended"
],
"ignorePatterns": [
// Generated/bundled files are not linted.
"Resources/Public/JavaScript/DlfMediaPlayer/DlfMediaVendor.js",
// Third-party libraries are not linted.
"Resources/Public/JavaScript/Embedded3dViewer/",
"Resources/Public/JavaScript/Gridstack/",
"Resources/Public/JavaScript/HtmlMidiPlayer/",
"Resources/Public/JavaScript/OpenLayers/",
"Resources/Public/JavaScript/Verovio/",
"Resources/Public/JavaScript/jQuery/",
"Resources/Public/JavaScript/jQueryUI/",
"Resources/Public/JavaScript/Toastify/"
],
"overrides": [
{
"env": {
Expand All @@ -34,6 +47,13 @@ module.exports = {
],
"rules": {
"compat/compat": "error",
// The no-underscore-dangle rule (enforced by Codacy) flags every
// property access with a leading or trailing underscore. jQuery UI
// plugins and several first-party components rely on jQuery UI's
// private-method convention (_method, _super, etc.), so the rule is
// disabled; the remaining private-member style is enforced by code
// review.
"no-underscore-dangle": "off",
// turn on errors for missing imports
"import/no-unresolved": "error",
},
Expand Down
Loading