Skip to content

Commit

Permalink
chore: 🔧 update monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
AruSeito committed Aug 11, 2023
1 parent 82bd799 commit 0109fe9
Show file tree
Hide file tree
Showing 13 changed files with 294 additions and 344 deletions.
38 changes: 2 additions & 36 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,4 @@
module.exports = {
parser: "@typescript-eslint/parser",
env: {
es6: true,
browser: true,
node: true,
},
settings: {
react: {
version: "detect",
},
},
extends: [
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"prettier",
],
plugins: ["@typescript-eslint/eslint-plugin", "unused-imports"],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2020,
},
ignorePatterns: ["ILLA_PROTO.ts"],
rules: {
"react/react-in-jsx-scope": "off",
"import/default": "off",
"react/no-unknown-property": ["error", { ignore: ["css"] }],
"react-hooks/exhaustive-deps": ['error'],
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{ "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" }
]
},
root: true,
extends: ["illa"]
}
3 changes: 1 addition & 2 deletions apps/builder/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ module.exports = {
}
},
},
extends: ["../../.eslintrc.js"],
plugins: ["import"],
extends: ["illa"],
}
4 changes: 3 additions & 1 deletion apps/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@
"protoc": "1.0.4",
"rollup-plugin-visualizer": "^5.9.0",
"vite-plugin-checker": "^0.6.1",
"vite-plugin-svgr": "^2.1.0"
"vite-plugin-svgr": "^2.1.0",
"eslint-config-illa": "workspace:*",
"tsconfig": "workspace:*"
},
"engines": {
"pnpm": "^8"
Expand Down
17 changes: 1 addition & 16 deletions apps/builder/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
{
"extends": "tsconfig/react.json",
"compilerOptions": {
"target": "ESNext",
"noEmit": true,
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"jsxImportSource": "@emotion/react",
"baseUrl": "./src",
"paths": {
"@/*": ["./*"],
Expand Down
13 changes: 2 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,13 @@
"@trivago/prettier-plugin-sort-imports": "^4.0.0",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"eslint-config-react": "^1.1.7",
"eslint-import-resolver-typescript": "^3.5.3",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-unused-imports": "^2.0.0",
"husky": "^8.0.3",
"lint-staged": "^13.1.1",
"prettier": "^2.8.4",
"typescript": "^5.0.4",
"vite": "^4.4.2"
"vite": "^4.4.2",
"eslint-config-illa": "workspace:*"
},
"engines": {
"pnpm": "^8"
Expand Down
37 changes: 37 additions & 0 deletions packages/eslint-config-illa/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
module.exports = {
parser: "@typescript-eslint/parser",
env: {
es6: true,
browser: true,
node: true,
},
settings: {
react: {
version: "detect",
},
},
extends: [
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"prettier",
],
plugins: ["@typescript-eslint/eslint-plugin", "unused-imports", "import"],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2020,
},
rules: {
"react/react-in-jsx-scope": "off",
"import/default": "off",
"react/no-unknown-property": ["error", { ignore: ["css"] }],
"react-hooks/exhaustive-deps": ['error'],
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{ "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" }
]
},
}
21 changes: 21 additions & 0 deletions packages/eslint-config-illa/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "eslint-config-illa",
"version": "0.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint-config-prettier": "^8.6.0",
"eslint-config-react": "^1.1.7",
"eslint-import-resolver-typescript": "^3.5.3",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-unused-imports": "^2.0.0"
},
"publishConfig": {
"access": "public"
}
}
22 changes: 22 additions & 0 deletions packages/tsconfig/base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Default",
"compilerOptions": {
"target": "ESNext",
"noEmit": true,
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx"
},
"exclude": ["node_modules"]
}
9 changes: 9 additions & 0 deletions packages/tsconfig/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "tsconfig",
"version": "0.0.0",
"private": true,
"license": "MIT",
"publishConfig": {
"access": "public"
}
}
8 changes: 8 additions & 0 deletions packages/tsconfig/react.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "EmotionReact",
"extends": "./base.json",
"compilerOptions": {
"jsxImportSource": "@emotion/react"
}
}
Loading

0 comments on commit 0109fe9

Please sign in to comment.