Add eslint.
Showing
- package.json 19 additions, 1 deletionpackage.json
- src/components/ui/Button.tsx 1 addition, 1 deletionsrc/components/ui/Button.tsx
- src/components/ui/ColourSwatches.tsx 4 additions, 4 deletionssrc/components/ui/ColourSwatches.tsx
- src/components/ui/InputBox.tsx 1 addition, 1 deletionsrc/components/ui/InputBox.tsx
- src/context/Theme.tsx 2 additions, 1 deletionsrc/context/Theme.tsx
- src/main.tsx 1 addition, 0 deletionssrc/main.tsx
- src/preact.d.ts 1 addition, 0 deletionssrc/preact.d.ts
- yarn.lock 1260 additions, 16 deletionsyarn.lock
... | @@ -3,7 +3,21 @@ | ... | @@ -3,7 +3,21 @@ |
"scripts": { | "scripts": { | ||
"dev": "vite", | "dev": "vite", | ||
"build": "rimraf build && tsc && vite build", | "build": "rimraf build && tsc && vite build", | ||
"serve": "vite preview" | "serve": "vite preview", | ||
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'" | |||
}, | |||
"eslintConfig": { | |||
"parser": "@typescript-eslint/parser", | |||
"extends": [ | |||
"preact", | |||
"plugin:@typescript-eslint/recommended" | |||
], | |||
"ignorePatterns": [ | |||
"build/" | |||
], | |||
"rules": { | |||
"@typescript-eslint/explicit-module-boundary-types": "off" | |||
} | |||
}, | }, | ||
"dependencies": { | "dependencies": { | ||
"preact": "^10.5.13" | "preact": "^10.5.13" | ||
... | @@ -16,6 +30,10 @@ | ... | @@ -16,6 +30,10 @@ |
"@types/node": "^15.12.3", | "@types/node": "^15.12.3", | ||
"@types/preact-i18n": "^2.3.0", | "@types/preact-i18n": "^2.3.0", | ||
"@types/styled-components": "^5.1.10", | "@types/styled-components": "^5.1.10", | ||
"@typescript-eslint/eslint-plugin": "^4.27.0", | |||
"@typescript-eslint/parser": "^4.27.0", | |||
"eslint": "^7.28.0", | |||
"eslint-config-preact": "^1.1.4", | |||
"preact-i18n": "^2.4.0-preactx", | "preact-i18n": "^2.4.0-preactx", | ||
"react-overlapping-panels": "1.1.2-patch.0", | "react-overlapping-panels": "1.1.2-patch.0", | ||
"rimraf": "^3.0.2", | "rimraf": "^3.0.2", | ||
... | ... |
This diff is collapsed.
Please register or sign in to comment