Skip to content

Instantly share code, notes, and snippets.

@tivac
Created June 24, 2022 22:56
Show Gist options
  • Save tivac/7b0623dfd128d0a60c8ce05069f79e86 to your computer and use it in GitHub Desktop.
Save tivac/7b0623dfd128d0a60c8ce05069f79e86 to your computer and use it in GitHub Desktop.
module.exports = {
overrides : [{
files : [
"*.svelte",
],
extends : [
"plugin:@ota-meshi/svelte/recommended",
],
rules : {
"no-unused-vars" : [ "warn", {
args : "after-used",
ignoreRestSiblings : true,
caughtErrors : "none",
varsIgnorePattern : "_",
}],
},
}],
};
{#each { length : 5 } as _}
<div>thing</div>
{/each}
{
"name": "eslint-plugin-svelte-unused-vars",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"lint": "eslint ."
},
"devDependencies": {
"@ota-meshi/eslint-plugin-svelte": "^0.34.0",
"eslint": "^8.18.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment