Skip to content

Commit

Permalink
chore(deps-dev): bump the eslint group across 1 directory with 3 upda…
Browse files Browse the repository at this point in the history
…tes (#338)

Bumps the eslint group with 3 updates in the / directory: [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin), [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) and [eslint](https://github.com/eslint/eslint).

Updates `@typescript-eslint/eslint-plugin` from 7.7.0 to 7.7.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.7.1/packages/eslint-plugin)

Updates `@typescript-eslint/parser` from 7.7.0 to 7.7.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.7.1/packages/parser)

Updates `eslint` from 9.0.0 to 9.1.1
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v9.0.0...v9.1.1)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: eslint
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: eslint
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: eslint
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] committed Apr 23, 2024
1 parent 0256039 commit 3d1ff50
Show file tree
Hide file tree
Showing 8 changed files with 169 additions and 75 deletions.
24 changes: 0 additions & 24 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
node-version: "lts/*"
cache: npm

- run: make test build prettier-check build-storybook
- run: make test build lint build-storybook
31 changes: 31 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import eslint from "@eslint/js";
import prettier from "eslint-config-prettier";
import pluginImport from "eslint-plugin-import";
import pluginjsxAlly from "eslint-plugin-jsx-a11y";
import pluginReact from "eslint-plugin-react";
import tseslint from "typescript-eslint";

export default tseslint.config({
files: ["src/**/*.ts", "src/**/*.tsx"],
extends: [
eslint.configs.recommended,
pluginImport.recommended,
pluginReact.recommended,
pluginjsxAlly.recommended,
...tseslint.configs.recommended,
prettier,
],
rules: {
"react/react-in-jsx-scope": "off",
"jsx-a11y/no-autofocus": "off",
"@typescript-eslint/consistent-type-imports": ["error"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
},
});
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"preview": "vite preview",
"storybook": "storybook dev",
"build-storybook": "storybook build",
"prettier-check": "prettier --check .",
"eslint": "eslint -c eslint.config.mjs",
"lint": "yarn -s prettier-check && yarn -s eslint",
"prettier-check": "prettier --check --log-level warn --cache .",
"prettier-fix": "prettier --write .",
"test": "vitest run"
},
Expand All @@ -18,6 +20,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@eslint/js": "9.1.1",
"@storybook/addon-essentials": "8.0.9",
"@storybook/addon-interactions": "8.0.9",
"@storybook/addon-links": "8.0.9",
Expand All @@ -28,10 +31,11 @@
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@types/react": "18.2.79",
"@types/react-dom": "18.2.25",
"@typescript-eslint/eslint-plugin": "7.7.0",
"@typescript-eslint/parser": "7.7.0",
"@typescript-eslint/eslint-plugin": "7.7.1",
"@typescript-eslint/parser": "7.7.1",
"@vitejs/plugin-react": "4.2.1",
"eslint": "9.0.0",
"eslint": "9.1.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-react": "7.34.1",
Expand All @@ -40,6 +44,7 @@
"react-dom": "18.2.0",
"storybook": "8.0.9",
"typescript": "5.4.5",
"typescript-eslint": "7.7.0",
"vite": "5.2.10",
"vite-plugin-dts": "3.8.3",
"vitest": "1.5.0"
Expand Down
4 changes: 2 additions & 2 deletions src/components/NumberInput/NumberInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import {
createBlurEventManipulator,
createChangeEventManipulator,
} from "../helpers";
import { InputManipulator } from "../types";
import type { InputManipulator } from "../types";
import { checkDidRemoveDecimalDelimiter, formatNumber } from "./numberHelpers";
import { NumberInputOptions } from "./types";
import type { NumberInputOptions } from "./types";

export interface NumberInputProps
extends React.InputHTMLAttributes<HTMLInputElement> {
Expand Down
4 changes: 2 additions & 2 deletions src/components/NumberInput/numberHelpers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ManipulatorEventType } from "../types";
import { NumberInputOptions } from "./types";
import type { ManipulatorEventType } from "../types";
import type { NumberInputOptions } from "./types";

const DEFAULT_DELIMITER = ".";
const DEFAULT_SEPARATOR = " ";
Expand Down
2 changes: 1 addition & 1 deletion src/components/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { InputManipulator } from "./types";
import type { InputManipulator } from "./types";

export const createChangeEventManipulator = (
ref: React.RefObject<HTMLInputElement>,
Expand Down
Loading

0 comments on commit 3d1ff50

Please sign in to comment.