chore: tidy up linters
This commit is contained in:
parent
a3ef31f846
commit
4a7ced5550
30 changed files with 1101 additions and 3482 deletions
4
packages/blog-content/.eslintrc.js
Normal file
4
packages/blog-content/.eslintrc.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
module.exports = {
|
||||
root: true,
|
||||
extends: ["@developomp-site/eslint-config"],
|
||||
}
|
12
packages/blog-content/.prettierrc
Normal file
12
packages/blog-content/.prettierrc
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"tabWidth": 4,
|
||||
"semi": false,
|
||||
"overrides": [
|
||||
{
|
||||
"files": "*.md",
|
||||
"options": {
|
||||
"tabWidth": 2
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -7,6 +7,7 @@
|
|||
],
|
||||
"scripts": {
|
||||
"build": "ts-node --experimental-specifier-resolution=node ./src",
|
||||
"lint": "eslint .",
|
||||
"clean": "rm -rf .turbo node_modules dist"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -37,5 +38,10 @@
|
|||
"svgo": "^3.0.2",
|
||||
"tinycolor2": "^1.4.2",
|
||||
"typescript": "^4.9.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@developomp-site/eslint-config": "workspace:*",
|
||||
"eslint": "^8.44.0",
|
||||
"prettier": "^2.8.8"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
/** @type {import("eslint").Linter.Config} */
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
node: true,
|
||||
},
|
||||
extends: [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"prettier",
|
||||
"plugin:prettier/recommended",
|
||||
"turbo",
|
||||
],
|
||||
parser: "@typescript-eslint/parser",
|
||||
plugins: ["@typescript-eslint", "simple-import-sort"],
|
||||
plugins: ["@typescript-eslint", "import", "simple-import-sort"],
|
||||
rules: {
|
||||
// import related
|
||||
"simple-import-sort/imports": "error",
|
12
packages/eslint-config/.prettierrc
Normal file
12
packages/eslint-config/.prettierrc
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"tabWidth": 4,
|
||||
"semi": false,
|
||||
"overrides": [
|
||||
{
|
||||
"files": "*.md",
|
||||
"options": {
|
||||
"tabWidth": 2
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,8 +1,10 @@
|
|||
{
|
||||
"name": "@developomp-site/eslint-config",
|
||||
"version": "0.0.0",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"main": ".eslintrc.cjs",
|
||||
"scripts": {
|
||||
"lint": "eslint .eslintrc.cjs",
|
||||
"clean": "rm -rf node_modules"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -12,7 +14,10 @@
|
|||
"eslint-config-prettier": "^8.8.0",
|
||||
"eslint-config-turbo": "latest",
|
||||
"eslint-plugin-json": "^3.1.0",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"eslint-plugin-simple-import-sort": "^10.0.0",
|
||||
"eslint-plugin-turbo": "^1.10.7",
|
||||
"prettier": "^2.8.8",
|
||||
"typescript": "^5.1.6"
|
||||
}
|
||||
}
|
||||
|
|
4
packages/tailwind-config/.eslintrc.js
Normal file
4
packages/tailwind-config/.eslintrc.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
module.exports = {
|
||||
root: true,
|
||||
extends: ["@developomp-site/eslint-config"],
|
||||
}
|
4
packages/tailwind-config/.prettierrc
Normal file
4
packages/tailwind-config/.prettierrc
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"tabWidth": 4,
|
||||
"semi": false
|
||||
}
|
|
@ -7,9 +7,13 @@
|
|||
"tailwind.config.js"
|
||||
],
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"clean": "rm -rf node_modules"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@developomp-site/eslint-config": "workspace:*",
|
||||
"eslint": "^8.44.0",
|
||||
"prettier": "^2.8.8",
|
||||
"tailwindcss": "^3.2.4"
|
||||
}
|
||||
}
|
||||
|
|
4
packages/theme/.prettierrc
Normal file
4
packages/theme/.prettierrc
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"tabWidth": 4,
|
||||
"semi": false
|
||||
}
|
|
@ -7,13 +7,17 @@
|
|||
"scripts": {
|
||||
"dev": "nodemon --ignore dist/ --exec pnpm build",
|
||||
"build": "npx ts-node ./build.ts",
|
||||
"lint": "eslint .",
|
||||
"clean": "rm -rf .turbo node_modules dist"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@developomp-site/eslint-config": "workspace:*",
|
||||
"@types/merge-deep": "^3.0.0",
|
||||
"@types/node": "^18.11.11",
|
||||
"eslint": "^8.44.0",
|
||||
"merge-deep": "^3.0.3",
|
||||
"nodemon": "^2.0.20",
|
||||
"prettier": "^2.8.8",
|
||||
"tailwindcss": "^3.2.4",
|
||||
"ts-node": "^10.9.1",
|
||||
"tsup": "^5.12.9",
|
||||
|
|
4
packages/tsconfig/.eslintrc.js
Normal file
4
packages/tsconfig/.eslintrc.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
module.exports = {
|
||||
root: true,
|
||||
extends: ["@developomp-site/eslint-config"],
|
||||
}
|
4
packages/tsconfig/.prettierrc
Normal file
4
packages/tsconfig/.prettierrc
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"tabWidth": 4,
|
||||
"semi": false
|
||||
}
|
|
@ -2,5 +2,14 @@
|
|||
"name": "@developomp-site/tsconfig",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"license": "MIT"
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"clean": "rm -rf node_modules"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@developomp-site/eslint-config": "workspace:*",
|
||||
"eslint": "^8.44.0",
|
||||
"prettier": "^2.8.8"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module.exports = {
|
||||
root: true,
|
||||
extends: ["developomp-site"],
|
||||
extends: ["@developomp-site/eslint-config"],
|
||||
}
|
||||
|
|
4
packages/utils/.prettierrc
Normal file
4
packages/utils/.prettierrc
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"tabWidth": 4,
|
||||
"semi": false
|
||||
}
|
|
@ -12,7 +12,7 @@
|
|||
"scripts": {
|
||||
"build": "tsup src/index.tsx --format esm,cjs --dts --external react",
|
||||
"dev": "tsup src/index.tsx --format esm,cjs --watch --dts --external react",
|
||||
"lint": "TIMING=1 eslint \"src/**/*.ts*\"",
|
||||
"lint": "eslint .",
|
||||
"clean": "rm -rf .turbo node_modules dist"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -21,6 +21,7 @@
|
|||
"@types/react": "^18.0.26",
|
||||
"@types/react-dom": "^18.0.9",
|
||||
"eslint": "^8.29.0",
|
||||
"prettier": "^2.8.8",
|
||||
"react": "^18.2.0",
|
||||
"tsup": "^5.12.9",
|
||||
"typescript": "^4.9.4"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue