Skip to content

Commit

Permalink
feat: ✨ init eslint
Browse files Browse the repository at this point in the history
➕ add eslint, @importantimport/eslint-config
  • Loading branch information
kwaa committed May 22, 2023
1 parent cbe859a commit 43a002c
Show file tree
Hide file tree
Showing 10 changed files with 1,158 additions and 51 deletions.
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.formatOnSave": false,
"eslint.experimental.useFlatConfig": true,
"eslint.validate": ["javascript", "json", "jsonc", "json5"],
"prettier.enable": false
}
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@importantimport/eslint-config'
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,24 @@
"name": "fff-monorepo",
"version": "0.4.0",
"private": true,
"type": "module",
"scripts": {
"preinstall": "npx -y only-allow pnpm",
"dev": "pnpm -rF fff-docs dev",
"build": "turbo run build",
"test": "turbo run test",
"test:watch": "turbo run test:watch",
"coverage": "pnpm -r coverage",
"coverage": "turbo run coverage",
"lint": "turbo run lint",
"lint:fix": "turbo run lint:fix",
"release": "pnpm build && pnpm -rF \"./packages/**\" publish --no-git-checks --access public"
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.1",
"@importantimport/eslint-config": "^0.0.6",
"@vitest/coverage-c8": "^0.31.1",
"eslint": "^8.41.0",
"tsup": "^6.7.0",
"tsx": "^3.12.7",
"turbo": "^1.9.8",
Expand Down
2 changes: 2 additions & 0 deletions packages/create-fff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"build:watch": "tsup --watch",
"test": "vitest run",
"test:watch": "vitest",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"coverage": "vitest run --coverage"
},
"dependencies": {
Expand Down
4 changes: 3 additions & 1 deletion packages/fff-flavored-frontmatter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
],
"scripts": {
"build": "tsup",
"build:watch": "tsup --watch"
"build:watch": "tsup --watch",
"lint": "eslint src",
"lint:fix": "eslint src --fix"
}
}
4 changes: 3 additions & 1 deletion packages/indiekit-preset-fff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
],
"scripts": {
"build": "tsup",
"build:watch": "tsup --watch"
"build:watch": "tsup --watch",
"lint": "eslint src",
"lint:fix": "eslint src --fix"
},
"dependencies": {
"@iarna/toml": "^2.2.5",
Expand Down
4 changes: 3 additions & 1 deletion packages/markdown-it-fff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
"build:watch": "tsup --watch",
"test": "vitest run",
"test:watch": "vitest",
"coverage": "vitest run --coverage"
"coverage": "vitest run --coverage",
"lint": "eslint src",
"lint:fix": "eslint src --fix"
},
"devDependencies": {
"@mdit-vue/plugin-frontmatter": "^0.12.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/remark-fff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
"build:watch": "tsup --watch",
"test": "vitest run",
"test:watch": "vitest",
"coverage": "vitest run --coverage"
"coverage": "vitest run --coverage",
"lint": "eslint src",
"lint:fix": "eslint src --fix"
},
"devDependencies": {
"remark": "^14.0.3",
Expand Down
Loading

0 comments on commit 43a002c

Please sign in to comment.