Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Remove unused ESLint configurations and clean up build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
thevuong committed Jan 8, 2024
1 parent 5e25702 commit ab5ca4e
Show file tree
Hide file tree
Showing 32 changed files with 141 additions and 62 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Update `package.json`
"build": "next build",
"start": "next start",
"lint": "next lint",
+ "clean": "rm -rf .next",
+ "clean": "rm -rf .next && rm -rf node_modules",
+ "db:generate": "prisma generate",
+ "db:push": "prisma db push",
+ "db:studio": "prisma studio",
Expand Down
4 changes: 4 additions & 0 deletions apps/docs/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: ['eslint-config-codefixlabs/storybook'],
};
3 changes: 0 additions & 3 deletions apps/docs/.eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "next build",
"build-storybook": "storybook build",
"clean": "rm -rf .next .turbo node_modules",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next",
"dev": "next dev",
"lint": "next lint",
"start": "next start",
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
{
"name": "codefix",
"private": true,
"workspaces": [
"apps/*",
"packages/*"
],
"scripts": {
"build": "turbo run build",
"build:packages": "turbo run build --force --filter='./packages/*'",
"changeset": "changeset",
"clean": "turbo run clean && rm -rf .turbo node_modules",
"clean": "turbo run clean && rm -rf .turbo && rm -rf node_modules",
"dev": "turbo run dev",
"dev:packages": "turbo run dev --filter='./packages/*'",
"force:build": "turbo run clean && turbo run build --force",
Expand Down
4 changes: 4 additions & 0 deletions packages/eslint-config-codefixlabs/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: ['./library'],
};
3 changes: 0 additions & 3 deletions packages/eslint-config-codefixlabs/.eslintrc.json

This file was deleted.

6 changes: 6 additions & 0 deletions packages/eslint-config-codefixlabs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# eslint-config-codefixlabs

## 0.1.21

### Patch Changes

- Remove unused ESLint configurations and clean up build scripts

## 0.1.20

### Patch Changes
Expand Down
7 changes: 4 additions & 3 deletions packages/eslint-config-codefixlabs/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const project = resolve(process.cwd(), 'tsconfig.json');

module.exports = {
extends: [
'@vercel/style-guide/eslint/node',
'@vercel/style-guide/eslint/typescript',
].map(require.resolve),
require.resolve('@vercel/style-guide/eslint/node'),
require.resolve('@vercel/style-guide/eslint/typescript'),
],
globals: {
JSX: true,
React: true,
Expand All @@ -15,6 +15,7 @@ module.exports = {
parserOptions: {
project,
},
plugins: ['only-warn'],
rules: {
curly: ['error', 'all'],
'import/no-default-export': 'off',
Expand Down
13 changes: 7 additions & 6 deletions packages/eslint-config-codefixlabs/next.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ const project = resolve(process.cwd(), 'tsconfig.json');

module.exports = {
extends: [
'@vercel/style-guide/eslint/node',
'@vercel/style-guide/eslint/typescript',
'@vercel/style-guide/eslint/browser',
'@vercel/style-guide/eslint/react',
'@vercel/style-guide/eslint/next',
].map(require.resolve),
require.resolve('@vercel/style-guide/eslint/node'),
require.resolve('@vercel/style-guide/eslint/typescript'),
require.resolve('@vercel/style-guide/eslint/browser'),
require.resolve('@vercel/style-guide/eslint/react'),
require.resolve('@vercel/style-guide/eslint/next'),
],
globals: {
JSX: true,
React: true,
Expand All @@ -18,6 +18,7 @@ module.exports = {
parserOptions: {
project,
},
plugins: ['only-warn'],
rules: {
curly: ['error', 'all'],
'import/no-default-export': 'off',
Expand Down
10 changes: 9 additions & 1 deletion packages/eslint-config-codefixlabs/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
{
"name": "eslint-config-codefixlabs",
"version": "0.1.20",
"version": "0.1.21",
"license": "MIT",
"sideEffects": false,
"main": "index.js",
"files": [
"library.js",
"next.js",
"react.js",
"storybook.js"
],
"scripts": {
"clean": "rm -rf node_modules"
},
"dependencies": {
"@vercel/style-guide": "^5.1.0",
"eslint-config-turbo": "^1.11.3",
"eslint-plugin-mdx": "^3.1.1",
"eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-storybook": "^0.6.15"
},
"publishConfig": {
Expand Down
11 changes: 6 additions & 5 deletions packages/eslint-config-codefixlabs/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ const project = resolve(process.cwd(), 'tsconfig.json');

module.exports = {
extends: [
'@vercel/style-guide/eslint/node',
'@vercel/style-guide/eslint/typescript',
'@vercel/style-guide/eslint/browser',
'@vercel/style-guide/eslint/react',
].map(require.resolve),
require.resolve('@vercel/style-guide/eslint/node'),
require.resolve('@vercel/style-guide/eslint/typescript'),
require.resolve('@vercel/style-guide/eslint/browser'),
require.resolve('@vercel/style-guide/eslint/react'),
],
globals: {
JSX: true,
},
ignorePatterns: ['node_modules/', 'dist/'],
parserOptions: {
project,
},
plugins: ['only-warn'],
rules: {
curly: ['error', 'all'],
'import/no-default-export': 'off',
Expand Down
13 changes: 6 additions & 7 deletions packages/eslint-config-codefixlabs/storybook.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ module.exports = {
extends: [
'plugin:storybook/recommended',
'plugin:mdx/recommended',
...[
'@vercel/style-guide/eslint/node',
'@vercel/style-guide/eslint/typescript',
'@vercel/style-guide/eslint/browser',
'@vercel/style-guide/eslint/react',
'@vercel/style-guide/eslint/next',
].map(require.resolve),
require.resolve('@vercel/style-guide/eslint/node'),
require.resolve('@vercel/style-guide/eslint/typescript'),
require.resolve('@vercel/style-guide/eslint/browser'),
require.resolve('@vercel/style-guide/eslint/react'),
require.resolve('@vercel/style-guide/eslint/next'),
],
globals: {
JSX: true,
Expand All @@ -22,6 +20,7 @@ module.exports = {
parserOptions: {
project,
},
plugins: ['only-warn'],
rules: {
curly: ['error', 'all'],
'import/no-default-export': 'off',
Expand Down
4 changes: 4 additions & 0 deletions packages/hooks/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: ['eslint-config-codefixlabs/react'],
};
3 changes: 0 additions & 3 deletions packages/hooks/.eslintrc.json

This file was deleted.

6 changes: 6 additions & 0 deletions packages/hooks/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @codefixlabs/hooks

## 0.1.32

### Patch Changes

- Remove unused ESLint configurations and clean up build scripts

## 0.1.31

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/hooks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codefixlabs/hooks",
"version": "0.1.31",
"version": "0.1.32",
"license": "MIT",
"sideEffects": false,
"exports": {
Expand All @@ -24,7 +24,7 @@
"scripts": {
"build": "tsup",
"check-types": "tsc --noEmit",
"clean": "rm -rf dist .turbo node_modules",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"dev": "tsup --watch",
"lint": "eslint src/"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/lib/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: ['eslint-config-codefixlabs/library'],
};
3 changes: 0 additions & 3 deletions packages/lib/.eslintrc.json

This file was deleted.

6 changes: 6 additions & 0 deletions packages/lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @codefixlabs/lib

## 0.1.35

### Patch Changes

- Remove unused ESLint configurations and clean up build scripts

## 0.1.34

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codefixlabs/lib",
"version": "0.1.34",
"version": "0.1.35",
"license": "MIT",
"sideEffects": false,
"exports": {
Expand All @@ -24,7 +24,7 @@
"scripts": {
"build": "tsup",
"check-types": "tsc --noEmit",
"clean": "rm -rf dist .turbo node_modules",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"dev": "tsup --watch",
"lint": "eslint src/"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/tailwindcss/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: ['eslint-config-codefixlabs/library'],
};
3 changes: 0 additions & 3 deletions packages/tailwindcss/.eslintrc.json

This file was deleted.

6 changes: 6 additions & 0 deletions packages/tailwindcss/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @codefixlabs/tailwindcss

## 0.1.45

### Patch Changes

- Remove unused ESLint configurations and clean up build scripts

## 0.1.44

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/tailwindcss/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codefixlabs/tailwindcss",
"version": "0.1.44",
"version": "0.1.45",
"license": "MIT",
"sideEffects": false,
"exports": {
Expand All @@ -24,7 +24,7 @@
"scripts": {
"build": "tsup",
"check-types": "tsc --noEmit",
"clean": "rm -rf dist .turbo node_modules",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"dev": "tsup --watch",
"lint": "eslint src/"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/ui/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: ['eslint-config-codefixlabs/react'],
};
3 changes: 0 additions & 3 deletions packages/ui/.eslintrc.json

This file was deleted.

9 changes: 9 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @codefixlabs/ui

## 0.1.88

### Patch Changes

- Remove unused ESLint configurations and clean up build scripts
- Updated dependencies
- @codefixlabs/hooks@0.1.32
- @codefixlabs/lib@0.1.35

## 0.1.87

### Patch Changes
Expand Down
14 changes: 7 additions & 7 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"name": "@codefixlabs/ui",
"version": "0.1.87",
"version": "0.1.88",
"license": "MIT",
"sideEffects": false,
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
"default": "./dist/index.mjs",
"types": "./dist/index.d.mts"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"default": "./dist/index.js",
"types": "./dist/index.d.ts"
}
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"types": "./dist/index.d.mts",
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"check-types": "tsc --noEmit",
"clean": "rm -rf dist .turbo node_modules",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"dev": "tsup --watch",
"lint": "eslint src/"
},
Expand Down
Loading

0 comments on commit ab5ca4e

Please sign in to comment.