Skip to content

Commit

Permalink
refactor: eslint command
Browse files Browse the repository at this point in the history
  • Loading branch information
tonai committed Oct 2, 2023
1 parent 46432d3 commit 1e862fc
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 48 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Packages
packages/react-front-kit*
apps/

# Storybook
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
]
},
"lint-staged": {
"*": "prettier --write --ignore-unknown --ignore-path <(cat .gitignore .prettierignore)"
"*": "prettier --write --ignore-unknown --ignore-path <(cat .gitignore .prettierignore)",
"*.{js,jsx,ts,tsx}": "eslint --max-warnings=0 --ignore-path ../../.gitignore"
}
}
8 changes: 0 additions & 8 deletions packages/react-front-kit-shared/.eslintrc.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/react-front-kit-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc --project tsconfig.build.json",
"lint": "eslint --max-warnings=0 --ignore-path ../../.gitignore . && tsc --noEmit",
"lint:fix": "eslint --fix --max-warnings=0 --ignore-path ../../.gitignore . && tsc --noEmit",
"test": "jest",
"generate": "turbo gen react-component",
"prepublishOnly": "npm run build && node ./scripts/prepublish.mjs"
Expand All @@ -52,8 +50,6 @@
"@testing-library/react": "^14.0.0",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"eslint": "^8.49.0",
"eslint-config-custom": "*",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"test": "*",
Expand All @@ -68,8 +64,5 @@
"@phosphor-icons/react": ">=2",
"react": ">=18.0",
"react-dom": ">=18.0"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "eslint --max-warnings=0 --ignore-path ../../.gitignore"
}
}
8 changes: 0 additions & 8 deletions packages/react-front-kit-table/.eslintrc.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/react-front-kit-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc --project tsconfig.build.json",
"lint": "eslint --max-warnings=0 --ignore-path ../../.gitignore . && tsc --noEmit",
"lint:fix": "eslint --fix --max-warnings=0 --ignore-path ../../.gitignore . && tsc --noEmit",
"test": "jest",
"generate": "turbo gen react-component",
"prepublishOnly": "npm run build && node ./scripts/prepublish.mjs"
Expand All @@ -57,8 +55,6 @@
"@testing-library/react": "^14.0.0",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"eslint": "^8.49.0",
"eslint-config-custom": "*",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"test": "*",
Expand All @@ -77,8 +73,5 @@
"mantine-react-table": ">=1",
"react": ">=18.0",
"react-dom": ">=18.0"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "eslint --max-warnings=0 --ignore-path ../../.gitignore"
}
}
8 changes: 0 additions & 8 deletions packages/react-front-kit/.eslintrc.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/react-front-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc --project tsconfig.build.json",
"lint": "eslint --max-warnings=0 --ignore-path ../../.gitignore . && tsc --noEmit",
"lint:fix": "eslint --fix --max-warnings=0 --ignore-path ../../.gitignore . && tsc --noEmit",
"test": "jest",
"generate": "turbo gen react-component",
"prepublishOnly": "npm run build && node ./scripts/prepublish.mjs"
Expand All @@ -55,8 +53,6 @@
"@testing-library/react": "^14.0.0",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"eslint": "^8.49.0",
"eslint-config-custom": "*",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"test": "*",
Expand All @@ -71,8 +67,5 @@
"@phosphor-icons/react": ">=2",
"react": ">=18.0",
"react-dom": ">=18.0"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "eslint --max-warnings=0 --ignore-path ../../.gitignore"
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "tsconfig/react-library.json",
"include": [".", ".storybook/*"],
"exclude": ["apps", "packages/react-front-kit*"]
"exclude": ["apps"]
}

0 comments on commit 1e862fc

Please sign in to comment.