Skip to content

Instantly share code, notes, and snippets.

@TeemuKoivisto
Created June 4, 2024 21:14
Show Gist options
  • Save TeemuKoivisto/87c90bcdca5d6736fb99bf53b262457e to your computer and use it in GitHub Desktop.
Save TeemuKoivisto/87c90bcdca5d6736fb99bf53b262457e to your computer and use it in GitHub Desktop.
.eslintrc.json
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["svelte3", "@typescript-eslint", "eslint-plugin-import", "eslint-plugin-prettier"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"env": {
"es6": true,
"browser": true,
"node": true
},
"overrides": [
{
"files": ["*.svelte"],
"processor": "svelte3/svelte3"
}
],
"settings": {
"svelte3/typescript": true
},
"rules": {
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/indent": 0,
"@typescript-eslint/member-delimiter-style": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-unused-vars": [
2,
{
"argsIgnorePattern": "^_"
}
],
"no-console": [
2,
{
"allow": ["warn", "error"]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment