chore: tidy up linters

This commit is contained in:
Kim, Jimin 2023-07-02 13:47:06 +09:00
parent a3ef31f846
commit 4a7ced5550
30 changed files with 1101 additions and 3482 deletions

View file

@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: ["@developomp-site/eslint-config"],
}

View file

@ -0,0 +1,12 @@
{
"tabWidth": 4,
"semi": false,
"overrides": [
{
"files": "*.md",
"options": {
"tabWidth": 2
}
}
]
}

View file

@ -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"
}
}

View file

@ -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",

View file

@ -0,0 +1,12 @@
{
"tabWidth": 4,
"semi": false,
"overrides": [
{
"files": "*.md",
"options": {
"tabWidth": 2
}
}
]
}

View file

@ -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"
}
}

View file

@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: ["@developomp-site/eslint-config"],
}

View file

@ -0,0 +1,4 @@
{
"tabWidth": 4,
"semi": false
}

View file

@ -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"
}
}

View file

@ -0,0 +1,4 @@
{
"tabWidth": 4,
"semi": false
}

View file

@ -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",

View file

@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: ["@developomp-site/eslint-config"],
}

View file

@ -0,0 +1,4 @@
{
"tabWidth": 4,
"semi": false
}

View file

@ -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"
}
}

View file

@ -1,4 +1,4 @@
module.exports = {
root: true,
extends: ["developomp-site"],
extends: ["@developomp-site/eslint-config"],
}

View file

@ -0,0 +1,4 @@
{
"tabWidth": 4,
"semi": false
}

View file

@ -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"