Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*": ["prettier --ignore-unknown --write"]
}
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
engine-strict=true
hoist=false
# strict-peer-dependencies=true
strict-peer-dependencies=true
side-effects-cache=true
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions apps/www.giuem.com/.lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.{js,jsx,ts,tsx}": ["eslint --fix"],
"*": ["prettier --ignore-unknown --write"]
}
33 changes: 25 additions & 8 deletions apps/www.giuem.com/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"start": "gatsby develop",
"build": "gatsby build",
"serve": "gatsby serve",
"clean": "gatsby clean"
"clean": "gatsby clean",
"lint": "TIMING=1 eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix"
},
"dependencies": {
"@fec/remark-a11y-emoji": "3.1.0",
Expand All @@ -16,7 +18,6 @@
"@mdx-js/react": "1.6.22",
"@tailwindcss/line-clamp": "0.4.0",
"@tailwindcss/typography": "0.5.2",
"autoprefixer": "10.4.7",
"disqusjs": "1.3.0",
"gatsby": "4.13.1",
"gatsby-plugin-feed": "4.13.0",
Expand All @@ -39,20 +40,20 @@
"gatsby-source-filesystem": "4.13.0",
"gatsby-transformer-sharp": "4.13.0",
"lodash-es": "4.17.21",
"postcss": "8.4.13",
"prism-react-renderer": "1.3.1",
"react": "18.1.0",
"react-dom": "18.1.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-helmet": "6.1.0",
"react-icons": "4.3.1",
"react-medium-image-zoom": "^4.3.7",
"react-schemaorg": "2.0.0",
"react-use": "17.3.2",
"schema-dts": "1.1.0",
"tailwindcss": "3.0.24",
"typescript": "4.6.4"
"tailwindcss": "3.0.24"
},
"devDependencies": {
"@babel/core": "^7.17.10",
"@infra/eslint-config": "workspace:^1.0.0",
"@infra/tsconfig": "workspace:^0.0.0",
"@types/loadable__component": "5.13.4",
"@types/lodash-es": "4.17.6",
Expand All @@ -61,6 +62,22 @@
"@types/react": "18.0.9",
"@types/react-dom": "18.0.3",
"@types/react-helmet": "6.1.5",
"@types/tailwindcss": "3.0.10"
"@types/tailwindcss": "3.0.10",
"@typescript-eslint/eslint-plugin": "5.22.0",
"@typescript-eslint/parser": "5.22.0",
"autoprefixer": "10.4.7",
"babel-eslint": "^10.0.0",
"eslint": "8.15.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.29.4",
"eslint-plugin-react-hooks": "4.5.0",
"graphql": "^16.4.0",
"postcss": "8.4.13",
"prettier": "2.6.2",
"typescript": "4.6.4",
"webpack": "^5.72.0"
}
}
16 changes: 2 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,13 @@
},
"scripts": {
"prepare": "husky install",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
"lint": "turbo run lint",
"bootstrap": "npm i -g pnpm@^6 && pnpm install"
},
"devDependencies": {
"@infra/eslint-config": "workspace:*",
"eslint": "8.15.0",
"husky": "7.0.4",
"lint-staged": "12.4.1",
"prettier": "2.6.2",
"turbo": "1.2.8",
"typescript": "4.6.4"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix"
],
"*": [
"prettier --ignore-unknown --write"
]
"turbo": "1.2.8"
}
}
4 changes: 2 additions & 2 deletions packages/gatsby-plugin-dark-mode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "src/index.ts",
"devDependencies": {
"@infra/tsconfig": "workspace:^0.0.0",
"react": "18.1.0"
"react": "17.0.2"
},
"peerDependencies": {
"react": "18.1.0"
"react": "17.0.2"
}
}
22 changes: 9 additions & 13 deletions packages/shared-eslint-config/base.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: [
'tsconfig.lint.json',
'./apps/*/tsconfig.json',
'./packages/*/tsconfig.json',
],
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
env: {
es6: true,
node: true,
Expand All @@ -39,6 +26,15 @@ module.exports = {
},
},
{
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['tsconfig.json'],
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
files: ['*.ts', '*.tsx'],
rules: {
'no-dupe-class-members': 'off',
Expand Down
2 changes: 1 addition & 1 deletion packages/shared-eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"main": "index.js",
"dependencies": {
"peerDependencies": {
"@typescript-eslint/eslint-plugin": "5.22.0",
"@typescript-eslint/parser": "5.22.0",
"eslint-config-prettier": "8.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared-eslint-config/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
},
settings: {
react: {
version: 'latest',
version: 'detect',
},
},
extends: [
Expand Down
Loading