-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eslint-config): fully add the Prettier options and reformat (#21)
Signed-off-by: Dirk de Visser <[email protected]>
- Loading branch information
Showing
16 changed files
with
369 additions
and
246 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Automatically assign pull requests | ||
|
||
* @lightbasenl/core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
{ | ||
"name": "@workspace/backend", | ||
"type": "module", | ||
"private": true, | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "tsc -p ./tsconfig.json", | ||
"lint": "eslint . --fix --cache --cache-strategy content --cache-location .cache/eslint/ --color", | ||
"lint:ci": "eslint .", | ||
"pretest": "npm run build", | ||
"test": "node --test" | ||
}, | ||
"dependencies": { | ||
"@fastify/helmet": "^11.1.1", | ||
"@fastify/multipart": "^8.1.0", | ||
"close-with-grace": "^1.2.0", | ||
"dotenv": "^16.4.4", | ||
"fastify": "^4.26.0", | ||
"fastify-custom-healthcheck": "^3.1.0", | ||
"fastify-plugin": "^4.5.1", | ||
"fastify-type-provider-zod": "^1.1.9", | ||
"zod": "^3.22.4" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.11.17", | ||
"@lightbase/tsconfig": "0.1.0", | ||
"@lightbase/eslint-config": "0.1.0", | ||
"pino-pretty": "^10.3.1", | ||
"typescript": "5.3.3" | ||
}, | ||
"engines": { | ||
"node": ">=20" | ||
} | ||
"name": "@workspace/backend", | ||
"type": "module", | ||
"private": true, | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "tsc -p ./tsconfig.json", | ||
"lint": "eslint . --fix --cache --cache-strategy content --cache-location .cache/eslint/ --color", | ||
"lint:ci": "eslint .", | ||
"pretest": "npm run build", | ||
"test": "node --test" | ||
}, | ||
"dependencies": { | ||
"@fastify/helmet": "^11.1.1", | ||
"@fastify/multipart": "^8.1.0", | ||
"close-with-grace": "^1.2.0", | ||
"dotenv": "^16.4.4", | ||
"fastify": "^4.26.0", | ||
"fastify-custom-healthcheck": "^3.1.0", | ||
"fastify-plugin": "^4.5.1", | ||
"fastify-type-provider-zod": "^1.1.9", | ||
"zod": "^3.22.4" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.11.17", | ||
"@lightbase/tsconfig": "0.1.0", | ||
"@lightbase/eslint-config": "0.1.0", | ||
"pino-pretty": "^10.3.1", | ||
"typescript": "5.3.3" | ||
}, | ||
"engines": { | ||
"node": ">=20" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"extends": "@lightbase/tsconfig/node-package.json", | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
} | ||
"extends": "@lightbase/tsconfig/node-package.json", | ||
"compilerOptions": { | ||
"outDir": "dist" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
{ | ||
"name": "@lightbase/platforms", | ||
"type": "module", | ||
"private": true, | ||
"license": "MIT", | ||
"scripts": { | ||
"lint:ws": "npm run lint --workspaces --if-present --include-workspace-root", | ||
"lint:ci:ws": "npm run lint:ci --workspaces --if-present --include-workspace-root", | ||
"build:ws": "npm run build && npm run build --workspaces --if-present", | ||
"test:ws": "npm run test --workspaces --if-present --include-workspace-root", | ||
"build": "tsc --build", | ||
"lint": "eslint . --fix --cache --cache-strategy content --cache-location .cache/eslint/ --color", | ||
"lint:ci": "eslint ." | ||
}, | ||
"devDependencies": { | ||
"@lightbase/tsconfig": "0.1.0", | ||
"@lightbase/eslint-config": "0.1.0", | ||
"typescript": "5.3.3" | ||
}, | ||
"engines": { | ||
"node": ">=20" | ||
}, | ||
"workspaces": ["packages/*", "apps/*"] | ||
"name": "@lightbase/platforms", | ||
"type": "module", | ||
"private": true, | ||
"license": "MIT", | ||
"scripts": { | ||
"lint:ws": "npm run lint --workspaces --if-present --include-workspace-root", | ||
"lint:ci:ws": "npm run lint:ci --workspaces --if-present --include-workspace-root", | ||
"build:ws": "npm run build && npm run build --workspaces --if-present", | ||
"test:ws": "npm run test --workspaces --if-present --include-workspace-root", | ||
"build": "tsc --build", | ||
"lint": "eslint . --fix --cache --cache-strategy content --cache-location .cache/eslint/ --color", | ||
"lint:ci": "eslint ." | ||
}, | ||
"devDependencies": { | ||
"@lightbase/eslint-config": "0.1.0", | ||
"@lightbase/tsconfig": "0.1.0", | ||
"typescript": "5.3.3" | ||
}, | ||
"engines": { | ||
"node": ">=20" | ||
}, | ||
"workspaces": ["packages/*", "apps/*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
{ | ||
"name": "@lightbase/eslint-config", | ||
"version": "0.1.0", | ||
"type": "module", | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"exports": { | ||
".": { | ||
"import": "./dist/src/index.js" | ||
} | ||
}, | ||
"main": "./dist/src/index.js", | ||
"types": "./dist/src/index.d.ts", | ||
"files": ["README.md", "LICENSE", "dist/"], | ||
"engines": { | ||
"node": ">=20" | ||
}, | ||
"scripts": { | ||
"lint": "eslint . --fix --cache --cache-strategy content --cache-location .cache/eslint/ --color", | ||
"lint:ci": "eslint ." | ||
}, | ||
"dependencies": { | ||
"eslint-plugin-format": "^0.1.0", | ||
"eslint-plugin-markdown": "^3.0.1" | ||
}, | ||
"peerDependencies": { | ||
"eslint": ">=8.56.0" | ||
}, | ||
"devDependencies": { | ||
"@types/eslint": "^8.56.2", | ||
"@types/eslint-plugin-markdown": "^2.0.2" | ||
} | ||
"name": "@lightbase/eslint-config", | ||
"version": "0.1.0", | ||
"type": "module", | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"exports": { | ||
".": { | ||
"import": "./dist/src/index.js" | ||
} | ||
}, | ||
"main": "./dist/src/index.js", | ||
"types": "./dist/src/index.d.ts", | ||
"files": ["README.md", "LICENSE", "dist/"], | ||
"engines": { | ||
"node": ">=20" | ||
}, | ||
"scripts": { | ||
"lint": "eslint . --fix --cache --cache-strategy content --cache-location .cache/eslint/ --color", | ||
"lint:ci": "eslint ." | ||
}, | ||
"dependencies": { | ||
"eslint-plugin-format": "^0.1.0", | ||
"eslint-plugin-markdown": "^3.0.1" | ||
}, | ||
"peerDependencies": { | ||
"eslint": ">=8.56.0" | ||
}, | ||
"devDependencies": { | ||
"@types/eslint": "^8.56.2", | ||
"@types/eslint-plugin-markdown": "^2.0.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Linter } from "eslint"; | ||
import markdown from "eslint-plugin-markdown"; | ||
|
||
/** | ||
* Allows parsing of markdown files, adding code blocks as virtual files. | ||
*/ | ||
export function markdownConfig(): Linter.FlatConfig[] { | ||
return [ | ||
{ | ||
plugins: { | ||
markdown, | ||
}, | ||
}, | ||
]; | ||
} |
Oops, something went wrong.