Skip to content

Commit

Permalink
Upgrade to Svelte 4 (#3543)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpgreen2 authored and mindspank committed Dec 18, 2023
1 parent 951dc31 commit f6bbf3c
Show file tree
Hide file tree
Showing 136 changed files with 5,170 additions and 9,352 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
web-admin/build
web-local/build
22 changes: 15 additions & 7 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,29 +1,37 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
'plugin:svelte/recommended',
"prettier",
],
plugins: ["svelte3", "@typescript-eslint"],
ignorePatterns: ["*.cjs"],
overrides: [{ files: ["*.svelte"], processor: "svelte3/svelte3" }],
settings: {
"svelte3/typescript": () => require("typescript"),
},
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
parserOptions: {
sourceType: "module",
ecmaVersion: 2019,
extraFileExtensions: [".svelte"],
},
env: {
browser: true,
es2017: true,
node: true,
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
],
ignorePatterns: ["*.cjs"],
rules: {
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"@typescript-eslint/ban-ts-comment": "warn",
"svelte/no-at-html-tags": "warn",
},
};
Loading

0 comments on commit f6bbf3c

Please sign in to comment.