Skip to content

Commit

Permalink
chore(repo): ESLint auto-fix (#1978)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilewski authored Oct 30, 2023
1 parent 1e0886b commit 8050de6
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# ESLint via Turborepo
# npm run lint -- -- --fix
# Build changed packages
npx turbo build

# Prettier Standalone
npx lint-staged
3 changes: 2 additions & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"*.{js,jsx,ts,tsx,json,md,mdx}": ["npx prettier --write"]
"*.{js,jsx,ts,tsx}": ["npx eslint --fix", "npx prettier --write"],
"*.{json,md,mdx}": ["npx prettier --write"]
}
21 changes: 20 additions & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,26 @@
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"files": [
"dist"
"dist",
"browser",
"callWithRetry",
"color",
"cookie",
"date",
"deprecated",
"error",
"file",
"globs",
"handleValueOrFn",
"isomorphicAtob",
"keys",
"loadScript",
"localStorageBroadcastChannel",
"poller",
"proxy",
"underscore",
"url",
"react"
],
"scripts": {
"build": "tsup",
Expand Down
20 changes: 0 additions & 20 deletions tsconfig.eslint.json

This file was deleted.

0 comments on commit 8050de6

Please sign in to comment.