Skip to content

Commit 1583517

Browse files
author
Micaela Torres
authored
chore: installed eslint plugins & fixed dependencies (#72)
1 parent 7c944f2 commit 1583517

File tree

4 files changed

+2082
-346
lines changed

4 files changed

+2082
-346
lines changed

.eslintrc.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ extends:
44
- airbnb
55
- airbnb-typescript
66
- prettier
7+
- "plugin:deprecation/recommended"
78
parser: "@typescript-eslint/parser"
89
parserOptions:
910
ecmaVersion: 2018
@@ -17,6 +18,7 @@ env:
1718
plugins:
1819
- testing-library
1920
- "@typescript-eslint"
21+
- "check-file"
2022
ignorePatterns:
2123
- build/**/*
2224
rules:
@@ -52,6 +54,22 @@ rules:
5254
react/jsx-props-no-spreading: "off"
5355
react/button-has-type: "off"
5456
"@typescript-eslint/type-annotation-spacing": error
57+
check-file/filename-naming-convention:
58+
- error
59+
- "**/*.{jsx,tsx,ts,js,css,sass,svg,jpg,jpeg,png}": "KEBAB_CASE"
60+
- ignoreMiddleExtensions: true
61+
check-file/folder-naming-convention:
62+
- error
63+
- "src/**/": "KEBAB_CASE"
64+
import/no-extraneous-dependencies:
65+
- error
66+
- devDependencies:
67+
- "{vite,vitest}.config.*"
68+
- "teardown.js"
69+
- "**/vite-env.d.ts"
70+
- "**/tests/**"
71+
- "**/*.stories.tsx"
72+
- "**/*.test.{ts,tsx}"
5573
# Allows for absolute imports
5674
settings:
5775
import/resolver:

0 commit comments

Comments
 (0)