Skip to content

Commit

Permalink
Update dependencies and rules, add storybook and query configs (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
nirtamir2 authored Feb 28, 2025
1 parent 1f38b71 commit 5b406b0
Show file tree
Hide file tree
Showing 80 changed files with 443 additions and 2,030 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ For example:
```json
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
"lint": "eslint",
"lint:fix": "eslint --fix"
}
}
```
Expand Down Expand Up @@ -301,7 +301,7 @@ const foo = async (msg: string): void => {
};
```

Will be transformed to this when you hit save with your editor or run `eslint . --fix`:
Will be transformed to this when you hit save with your editor or run `eslint --fix`:

```ts
async function foo(msg: string): void {
Expand Down
25 changes: 24 additions & 1 deletion eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,36 @@ export default nirtamir2(
solid: true,
svelte: true,
astro: true,
typescript: true,
storybook: true,
query: true,
typescript: {
tsconfigPath: "tsconfig.json",
},
formatters: false,
stylistic: false,
},
[
{ ignores: [".prettierrc.mjs", "README.md"] },
{
rules: {
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"sonarjs/deprecation": "off",
"@typescript-eslint/no-deprecated": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-redundant-type-constituents": "off",
"sonarjs/no-redundant-optional": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-unnecessary-type-parameters": "off",
//
"@typescript-eslint/init-declarations": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
Expand Down
2 changes: 1 addition & 1 deletion fixtures/input/jsx.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function HelloWorld({

return (
<div
className="HelloWorld"
className="border"
title={`You are visitor number ${num}`}
onMouseOver={onMouseOver}
>
Expand Down
2 changes: 1 addition & 1 deletion fixtures/output/all/jsx.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function HelloWorld({

return (
<div
className="HelloWorld"
className="border"
title={`You are visitor number ${num}`}
onMouseOver={onMouseOver}
>
Expand Down
71 changes: 0 additions & 71 deletions fixtures/output/js/javascript.js

This file was deleted.

34 changes: 0 additions & 34 deletions fixtures/output/js/jsx.jsx

This file was deleted.

35 changes: 0 additions & 35 deletions fixtures/output/js/markdown.md

This file was deleted.

23 changes: 0 additions & 23 deletions fixtures/output/js/toml.toml

This file was deleted.

26 changes: 0 additions & 26 deletions fixtures/output/js/tsx.tsx

This file was deleted.

71 changes: 0 additions & 71 deletions fixtures/output/no-markdown-with-formatters/javascript.js

This file was deleted.

35 changes: 0 additions & 35 deletions fixtures/output/no-markdown-with-formatters/markdown.md

This file was deleted.

Loading

0 comments on commit 5b406b0

Please sign in to comment.