fix: eslint rule

pull/9208/head
artxe2 3 years ago
parent a5cde37bc6
commit 697e73fede

@ -83,7 +83,7 @@
"posttest": "agadoo src/internal/index.js",
"prepublishOnly": "pnpm build",
"types": "node ./scripts/generate-dts.js",
"lint": "prettier . --cache --plugin-search-dir=. --check && eslint \"{src,test}/**/*.{ts,js}\" --cache"
"lint": "prettier . --cache --plugin-search-dir=. --check && eslint \"{scripts,src,test}/**/*.js\" --cache --fix"
},
"repository": {
"type": "git",
@ -129,6 +129,7 @@
"agadoo": "^3.0.0",
"dts-buddy": "^0.1.7",
"esbuild": "^0.18.11",
"eslint-plugin-lube": "^0.1.7",
"happy-dom": "^9.20.3",
"jsdom": "^21.1.2",
"kleur": "^4.1.5",

@ -0,0 +1,6 @@
{
"plugins": ["lube"],
"rules": {
"lube/svelte-naming-convention": ["error", { "fixSameNames": true }]
}
}

@ -0,0 +1,6 @@
{
"plugins": ["lube"],
"rules": {
"lube/svelte-naming-convention": ["error", { "fixSameNames": true }]
}
}

@ -1,6 +1,8 @@
{
"plugins": ["lube"],
"rules": {
"no-console": "off",
"@typescript-eslint/no-var-requires": "off"
"@typescript-eslint/no-var-requires": "off",
"lube/svelte-naming-convention": ["error", { "fixSameNames": true }]
}
}

@ -1,15 +1,10 @@
{
"extends": "../tsconfig.json",
"include": ["."],
"exclude": ["./**/_output/**/*"],
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"noEmit": true,
"paths": {
"svelte": [".."],
"svelte/*": ["../*"]
}
"noEmit": true
}
}
}

@ -111,6 +111,9 @@ importers:
esbuild:
specifier: ^0.18.11
version: 0.18.11
eslint-plugin-lube:
specifier: ^0.1.7
version: 0.1.7
happy-dom:
specifier: ^9.20.3
version: 9.20.3
@ -3932,6 +3935,12 @@ packages:
eslint: 8.47.0
dev: true
/eslint-plugin-lube@0.1.7:
resolution: {integrity: sha512-jqeRZAG3vQWZR6Hue2tSx4bQUfpDYqeSOFf3MlqpUycb5q6av1bhnmfDkxHgsLQoK4Pt7H+puI0cYc/iEvFwfw==}
dependencies:
'@types/estree': 1.0.1
dev: true
/eslint-plugin-svelte@2.32.2(eslint@8.44.0)(svelte@packages+svelte):
resolution: {integrity: sha512-Jgbop2fNZsoxxkklZAIbDNhwAPynvnCtUXLsEC6O2qax7N/pfe2cNqT0ZoBbubXKJitQQDEyVDQ1rZs4ZWcrTA==}
engines: {node: ^14.17.0 || >=16.0.0}

Loading…
Cancel
Save