Skip to content

Commit

Permalink
Migrate to neostandard eslint
Browse files Browse the repository at this point in the history
See #1143
  • Loading branch information
markdumay committed Sep 5, 2024
1 parent 96b9a3b commit e440386
Show file tree
Hide file tree
Showing 5 changed files with 1,013 additions and 510 deletions.
8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

1 change: 1 addition & 0 deletions assets/js/alert.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-undef */
const alert = document.getElementById('page-alert')
const closeBtn = document.getElementById('page-alert-btn-close')
if (alert !== null && closeBtn !== null) {
Expand Down
14 changes: 14 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'use strict'

module.exports = require('neostandard')({
ignores: [
"assets/js/critical/languageSelector.js",
"assets/js/critical/color.js",
"assets/js/analytics.js",
"assets/js/flexsearch.js",
"assets/js/navbar.js",
"assets/js/sharing.js",
"assets/js/vendor",
"node_modules",
]
})
Loading

0 comments on commit e440386

Please sign in to comment.