mirror of
https://github.com/garraflavatra/rolens.git
synced 2024-11-22 10:25:48 +01:00
Configure ESlint properly
This commit is contained in:
parent
15d30e67c3
commit
6cc329982a
9
.vscode/settings.json
vendored
9
.vscode/settings.json
vendored
@ -14,5 +14,12 @@
|
||||
"[css]": {
|
||||
"editor.suggest.insertMode": "replace",
|
||||
"editor.tabSize": 2
|
||||
}
|
||||
},
|
||||
|
||||
"eslint.format.enable": true,
|
||||
"eslint.lintTask.enable": true,
|
||||
"eslint.lintTask.options": "frontend",
|
||||
"eslint.workingDirectories": [
|
||||
"frontend"
|
||||
]
|
||||
}
|
||||
|
@ -1,195 +0,0 @@
|
||||
{
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2020,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"env": {
|
||||
"browser": true,
|
||||
"node": true,
|
||||
"es6": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:svelte/recommended"
|
||||
],
|
||||
"plugins": [
|
||||
"svelte",
|
||||
"import"
|
||||
],
|
||||
"overrides": [{
|
||||
"files": "*.svelte",
|
||||
"rules": {
|
||||
"no-inner-declarations": 0,
|
||||
"svelte/no-inner-declarations": [
|
||||
"error",
|
||||
"functions"
|
||||
]
|
||||
}
|
||||
}],
|
||||
"rules": {
|
||||
"no-undef": [
|
||||
"error",
|
||||
{ "typeof": true }
|
||||
],
|
||||
"require-atomic-updates": 0,
|
||||
"indent": [
|
||||
"error",
|
||||
2,
|
||||
{ "SwitchCase": 1 }
|
||||
],
|
||||
"strict": 0,
|
||||
"quotes": [ "error", "single" ],
|
||||
"semi": [ "warn", "always" ],
|
||||
"accessor-pairs": "error",
|
||||
"array-bracket-spacing": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"arrow-body-style": [
|
||||
"error",
|
||||
"as-needed",
|
||||
{ "requireReturnForObjectLiteral": true }
|
||||
],
|
||||
"arrow-parens": [ "error", "as-needed" ],
|
||||
"arrow-spacing": "error",
|
||||
"block-spacing": [ "error", "always" ],
|
||||
"comma-dangle": [
|
||||
"warn",
|
||||
{
|
||||
"arrays": "always-multiline",
|
||||
"objects": "always-multiline",
|
||||
"imports": "never",
|
||||
"exports": "never",
|
||||
"functions": "never"
|
||||
}
|
||||
],
|
||||
"comma-spacing": "error",
|
||||
"computed-property-spacing": [
|
||||
"error",
|
||||
"never"
|
||||
],
|
||||
"generator-star-spacing": "error",
|
||||
"id-blacklist": "error",
|
||||
"id-match": "error",
|
||||
"jsx-quotes": "error",
|
||||
"keyword-spacing": "error",
|
||||
"key-spacing": [
|
||||
"warn",
|
||||
{ "beforeColon": false }
|
||||
],
|
||||
"linebreak-style": [
|
||||
"error",
|
||||
"unix"
|
||||
],
|
||||
"no-unused-vars": "warn",
|
||||
"no-alert": "error",
|
||||
"no-caller": "error",
|
||||
"no-confusing-arrow": [
|
||||
"error",
|
||||
{ "allowParens": true }
|
||||
],
|
||||
"no-console": "off",
|
||||
"no-div-regex": "error",
|
||||
"no-duplicate-imports": "error",
|
||||
"no-extend-native": "error",
|
||||
"no-extra-label": "error",
|
||||
"no-fallthrough": "off",
|
||||
"no-floating-decimal": "error",
|
||||
"no-implicit-coercion": [
|
||||
"error",
|
||||
{
|
||||
"boolean": false,
|
||||
"number": false,
|
||||
"string": false
|
||||
}
|
||||
],
|
||||
"no-inner-declarations": [
|
||||
"error",
|
||||
"functions"
|
||||
],
|
||||
"no-iterator": "error",
|
||||
"no-label-var": "error",
|
||||
"no-lone-blocks": "error",
|
||||
"no-new-object": "error",
|
||||
"no-new-require": "error",
|
||||
"no-new-wrappers": "error",
|
||||
"no-restricted-globals": [
|
||||
"error",
|
||||
"event",
|
||||
"name"
|
||||
],
|
||||
"no-restricted-imports": "error",
|
||||
"no-restricted-modules": "error",
|
||||
"no-restricted-syntax": "error",
|
||||
"no-script-url": "error",
|
||||
"no-self-compare": "error",
|
||||
"no-sequences": "error",
|
||||
"no-shadow-restricted-names": "error",
|
||||
"no-spaced-func": "error",
|
||||
"no-trailing-spaces": "error",
|
||||
"no-unmodified-loop-condition": "error",
|
||||
"no-useless-constructor": "error",
|
||||
"no-whitespace-before-property": "error",
|
||||
"no-with": "error",
|
||||
"object-curly-spacing": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"prefer-const": "error",
|
||||
"require-yield": "error",
|
||||
"semi-spacing": [
|
||||
"error"
|
||||
],
|
||||
"space-before-blocks": "error",
|
||||
"space-before-function-paren": [
|
||||
"error",
|
||||
"never"
|
||||
],
|
||||
"space-in-parens": [
|
||||
"error",
|
||||
"never"
|
||||
],
|
||||
"space-infix-ops": "error",
|
||||
"space-unary-ops": "error",
|
||||
"template-curly-spacing": "error",
|
||||
"curly": 2,
|
||||
"brace-style": [
|
||||
"error",
|
||||
"stroustrup"
|
||||
],
|
||||
"wrap-iife": [
|
||||
"error",
|
||||
"any"
|
||||
],
|
||||
"yield-star-spacing": "error",
|
||||
"multiline-ternary": [
|
||||
"warn",
|
||||
"never"
|
||||
],
|
||||
"no-nested-ternary": "error",
|
||||
"svelte/html-quotes": [
|
||||
"warn",
|
||||
{
|
||||
"prefer": "double",
|
||||
"dynamic": { "quoted": false }
|
||||
}
|
||||
],
|
||||
"svelte/no-useless-mustaches": "warn",
|
||||
"svelte/require-store-reactive-access": "warn",
|
||||
"svelte/no-reactive-literals": "error",
|
||||
"svelte/html-closing-bracket-spacing": "warn",
|
||||
"svelte/indent": "warn",
|
||||
"svelte/max-attributes-per-line": [
|
||||
"warn",
|
||||
{ "multiline": 1, "singleline": 5 }
|
||||
],
|
||||
"svelte/mustache-spacing": "warn",
|
||||
"svelte/no-extra-reactive-curlies": "error",
|
||||
"svelte/no-spaces-around-equal-signs-in-attribute": "warn",
|
||||
"svelte/prefer-class-directive": "warn",
|
||||
"svelte/shorthand-attribute": "warn",
|
||||
"svelte/shorthand-directive": "warn",
|
||||
"svelte/spaced-html-comment": "warn",
|
||||
"svelte/no-at-html-tags": 0
|
||||
}
|
||||
}
|
1793
frontend/package-lock.json
generated
1793
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -19,7 +19,23 @@
|
||||
"devDependencies": {
|
||||
"@sveltejs/vite-plugin-svelte": "^1.0.1",
|
||||
"eslint": "^8.42.0",
|
||||
"eslint-config-svelte3": "github:johbog/eslint-config-svelte3",
|
||||
"svelte": "^3.59.1",
|
||||
"vite": "^3.2.7"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "svelte3",
|
||||
"ignorePatterns": ["dist", "wailsjs"],
|
||||
"rules": {
|
||||
"svelte/html-quotes": [
|
||||
"warn",
|
||||
{
|
||||
"prefer": "double",
|
||||
"dynamic": { "quoted": false }
|
||||
}
|
||||
],
|
||||
"svelte/no-useless-mustaches": "off",
|
||||
"svelte/no-extra-reactive-curlies": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
21089cd8ec83c35046acb2c9ab02da9e
|
||||
679b6f6f86f66d3499bdecbee288c567
|
@ -1,10 +1,10 @@
|
||||
import { Hosts } from "$wails/go/app/App";
|
||||
import { writable } from "svelte/store";
|
||||
import applicationInited from "./inited";
|
||||
import { Hosts } from '$wails/go/app/App';
|
||||
import { writable } from 'svelte/store';
|
||||
import applicationInited from './inited';
|
||||
|
||||
const { set, subscribe } = writable();
|
||||
|
||||
const update = async () => set(await Hosts());
|
||||
const update = async() => set(await Hosts());
|
||||
applicationInited.defer(update);
|
||||
|
||||
const hosts = { update, subscribe };
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { WindowSetTitle } from "$wails/runtime/runtime";
|
||||
import { writable } from "svelte/store";
|
||||
import { WindowSetTitle } from '$wails/runtime/runtime';
|
||||
import { writable } from 'svelte/store';
|
||||
|
||||
const { set, subscribe } = writable('Rolens');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user