Skip to content

Commit

Permalink
chore: installed eslint plugins & fixed dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mimitorres committed Jun 11, 2024
1 parent 7c944f2 commit 0cbd037
Show file tree
Hide file tree
Showing 4 changed files with 2,082 additions and 346 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ extends:
- airbnb
- airbnb-typescript
- prettier
- "plugin:deprecation/recommended"
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: 2018
Expand All @@ -17,6 +18,7 @@ env:
plugins:
- testing-library
- "@typescript-eslint"
- "check-file"
ignorePatterns:
- build/**/*
rules:
Expand Down Expand Up @@ -52,6 +54,22 @@ rules:
react/jsx-props-no-spreading: "off"
react/button-has-type: "off"
"@typescript-eslint/type-annotation-spacing": error
check-file/filename-naming-convention:
- error
- "**/*.{jsx,tsx,ts,js}": "KEBAB_CASE"
- ignoreMiddleExtensions: true
check-file/folder-naming-convention:
- error
- "src/**/": "KEBAB_CASE"
import/no-extraneous-dependencies:
- error
- devDependencies:
- "{vite,vitest}.config.*"
- "teardown.js"
- "**/vite-env.d.ts"
- "**/tests/**"
- "**/*.stories.tsx"
- "**/*.test.{ts,tsx}"
# Allows for absolute imports
settings:
import/resolver:
Expand Down
Loading

0 comments on commit 0cbd037

Please sign in to comment.