Add eslint and fix linting errors
Additional changes: * Use .data() instead of .attr() when setting data on elements * Call checkSiteLink() from init() and not constructor * Remove duplicate br elements from HTML literals. CSS should be used for styling. * Remove apparent lingering test code from init() * Add GitLab pipeline * Add README, remove docs/ directory as the README can be used instead * Add LICENSE
.eslintrc.json
0 → 100644
.gitignore
0 → 100644
.gitlab-ci.yml
0 → 100644
.nvmrc
0 → 100644
This diff is collapsed.
LICENSE
0 → 100644
This diff is collapsed.
docs/en/index.md
deleted
100644 → 0
package-lock.json
0 → 100644
This diff is collapsed.
package.json
0 → 100644
{ | ||
"name": "autosuggest-linking-wikidata", | ||
"version": "0.1.0", | ||
"description": "A tool to suggest sitelinks between wiki pages and Wikidata items", | ||
"main": "AutosuggestSitelink.js", | ||
"directories": { | ||
"doc": "docs" | ||
}, | ||
"scripts": { | ||
"test": "eslint AutosuggestSitelink.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@gitlab.wikimedia.org:repos/commtech/autosuggest-linking-wikidata.git" | ||
}, | ||
"author": "HMonroy", | ||
"license": "GPL-3.0-or-later", | ||
"devDependencies": { | ||
"eslint": "^8.29.0", | ||
"eslint-config-wikimedia": "^0.23.0" | ||
} | ||
} |
Please register or sign in to comment