From 3b3a79ab2ddc19c7f0aa2b283ea47a228e844d9c Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Wed, 5 Jan 2022 02:11:33 -0500 Subject: [PATCH] Prettier and published. --- package.json | 2 +- src/rules/no-unknown-namespaces.ts | 2 +- test/rules/jsx-no-undef.test.ts | 1 - test/rules/no-destructure.test.ts | 4 ++-- test/rules/no-innerhtml.test.ts | 2 +- test/rules/prefer-classlist.test.ts | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 37d7973..0607f73 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-solid", - "version": "0.3.0", + "version": "0.3.1", "description": "Solid-specific linting rules for ESLint.", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/rules/no-unknown-namespaces.ts b/src/rules/no-unknown-namespaces.ts index c0cc530..5e9d846 100644 --- a/src/rules/no-unknown-namespaces.ts +++ b/src/rules/no-unknown-namespaces.ts @@ -1,4 +1,4 @@ -import type { TSESLint, TSESTree as T } from '@typescript-eslint/experimental-utils' +import type { TSESLint, TSESTree as T } from "@typescript-eslint/experimental-utils"; const knownNamespaces = ["on", "oncapture", "use", "prop", "attr"]; const styleNamespaces = ["style", "class"]; diff --git a/test/rules/jsx-no-undef.test.ts b/test/rules/jsx-no-undef.test.ts index 59e165f..3f449e4 100644 --- a/test/rules/jsx-no-undef.test.ts +++ b/test/rules/jsx-no-undef.test.ts @@ -166,4 +166,3 @@ let el = {item => item.name}`, }, ], }); - diff --git a/test/rules/no-destructure.test.ts b/test/rules/no-destructure.test.ts index 315353b..1e48f91 100644 --- a/test/rules/no-destructure.test.ts +++ b/test/rules/no-destructure.test.ts @@ -1,7 +1,7 @@ import { run } from "../ruleTester"; import rule from "../../src/rules/no-destructure"; -export const cases = run('no-destructure', rule, { +export const cases = run("no-destructure", rule, { valid: [ `let Component = props =>
`, `let Component = (props) =>
`, @@ -241,4 +241,4 @@ various(); }`, }, ], -}) +}); diff --git a/test/rules/no-innerhtml.test.ts b/test/rules/no-innerhtml.test.ts index 7fdf5a3..a8d0856 100644 --- a/test/rules/no-innerhtml.test.ts +++ b/test/rules/no-innerhtml.test.ts @@ -2,7 +2,7 @@ import { AST_NODE_TYPES as T } from "@typescript-eslint/experimental-utils"; import { run } from "../ruleTester"; import rule from "../../src/rules/no-innerhtml"; -export const cases = run('no-innerhtml', rule, { +export const cases = run("no-innerhtml", rule, { valid: [ `let el =
Hello world!
`, `let el = Hello world!`, diff --git a/test/rules/prefer-classlist.test.ts b/test/rules/prefer-classlist.test.ts index a584703..1d93bef 100644 --- a/test/rules/prefer-classlist.test.ts +++ b/test/rules/prefer-classlist.test.ts @@ -1,7 +1,7 @@ import { run } from "../ruleTester"; import rule from "../../src/rules/prefer-classlist"; -export const cases = run('prefer-classlist', rule, { +export const cases = run("prefer-classlist", rule, { valid: [ `let el =
Hello, world!
`, `let el =
Hello, world!
`,