Merge pull request #1 from BRAVO68WEB/BRAVO68WEB-patch-1

Update to Pretteir 3 config
This commit is contained in:
Jyotirmoy Bandyopadhayaya 2023-08-14 10:26:36 +05:30 committed by GitHub
commit 7cd157a17c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 594 additions and 339 deletions

View File

@ -1,13 +1,16 @@
{
"name": "@bravo68web/eslint-config",
"version": "1.1.2",
"version": "1.1.3",
"description": "The official ESLint configuration for bravo68web projects",
"license": "MIT",
"author": "Bravo68web <hi@b68.dev> (https://github.com/bravo68web/)",
"homepage": "https://github.com/bravo68web/nodejs-config#readme",
"repository": "git+https://github.com/bravo68web/nodejs-config",
"homepage": "https://github.com/bravo68web/node-config#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/bravo68web/node-config.git"
},
"bugs": {
"url": "https://github.com/bravo68web/nodejs-config/issues"
"url": "https://github.com/bravo68web/node-config/issues"
},
"files": [
"dist"
@ -25,7 +28,6 @@
"eslint-plugin-autofix": "1.1.0",
"eslint-plugin-deprecation": "1.4.1",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-regexp": "1.15.0",
@ -41,19 +43,20 @@
},
"devDependencies": {
"@bravo68web/tsconfig": "*",
"@rollup/plugin-commonjs": "25.0.1",
"@rollup/plugin-commonjs": "25.0.3",
"@rollup/plugin-node-resolve": "15.1.0",
"@rollup/plugin-typescript": "11.1.1",
"@rollup/plugin-typescript": "11.1.2",
"@types/deepmerge": "2.2.0",
"@types/eslint": "8.40.1",
"@types/node": "18.16.17",
"@types/eslint": "8.44.1",
"@types/node": "20.4.5",
"@types/rollup-plugin-auto-external": "2.0.2",
"eslint": "8.42.0",
"rollup": "3.24.1",
"eslint": "8.45.0",
"eslint-plugin-prettier": "5.0.0",
"rollup": "3.26.3",
"rollup-plugin-auto-external": "2.0.0",
"tsec": "0.2.7",
"typescript": "5.1.3",
"vitest": "0.32.0"
"typescript": "5.1.6",
"vitest": "0.33.0"
},
"keywords": [
"bravo68web",
@ -85,4 +88,4 @@
"require": "./dist/backend.cjs"
}
}
}
}

View File

@ -33,7 +33,7 @@ const config: Linter.Config = {
],
rules: {
quotes: [
2,
1,
"double",
{
avoidEscape: true,

View File

@ -36,7 +36,7 @@ const config: Linter.Config = {
],
rules: {
quotes: [
2,
1,
"double",
{
avoidEscape: true,

View File

@ -7,7 +7,6 @@
"plugins": [
"prettier-plugin-prisma",
"prettier-plugin-sort-json",
"prettier-plugin-tailwindcss",
"prettier-plugin-package-perfection"
],
"printWidth": 100,

View File

@ -1,12 +1,15 @@
{
"name": "@bravo68web/prettier-config",
"version": "1.1.2",
"version": "1.1.3",
"description": "The official Prettier configuration for bravo68web projects",
"author": "Bravo68web <hi@b68.dev> (https://github.com/bravo68web/)",
"homepage": "https://github.com/bravo68web/nodejs-config#readme",
"repository": "git+https://github.com/bravo68web/nodejs-config",
"homepage": "https://github.com/bravo68web/node-config#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/bravo68web/node-config.git"
},
"bugs": {
"url": "https://github.com/bravo68web/nodejs-config/issues"
"url": "https://github.com/bravo68web/node-config/issues"
},
"main": "index.json",
"files": [
@ -20,13 +23,16 @@
},
"dependencies": {
"prettier-plugin-package-perfection": "1.1.0",
"prettier-plugin-prisma": "4.13.0",
"prettier-plugin-prisma": "5.0.0",
"prettier-plugin-sort-json": "1.0.0",
"prettier-plugin-tailwindcss": "0.3.0",
"vitest": "0.32.0"
"prettier-plugin-tailwindcss": "0.4.1",
"vitest": "0.33.0"
},
"peerDependencies": {
"prettier": "2.x"
"prettier": "2.x || 3.x"
},
"devDependencies": {
"eslint-plugin-prettier": "5"
},
"keywords": [
"bravo68web",
@ -34,6 +40,7 @@
"prettier-config"
],
"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
}
}
}

View File

@ -4,9 +4,9 @@ import { describe, expect, it } from "vitest";
import config from "../index.json";
describe("Prettier Config", () => {
it("is valid configuration", () => {
it("is valid configuration", async () => {
// Format the code with Prettier
const code = prettier.format(
const code = await prettier.format(
"const foo=1",
Object.assign(config as prettier.Options, {
parser: "typescript",

View File

@ -1,13 +1,16 @@
{
"name": "@bravo68web/tsconfig",
"version": "1.1.2",
"version": "1.1.3",
"description": "Typescript config for bravo68web, ensure the consistency of code quality.",
"license": "MIT",
"author": "Bravo68web <hi@b68.dev> (https://github.com/bravo68web/)",
"homepage": "https://github.com/bravo68web/nodejs-config#readme",
"repository": "git+https://github.com/bravo68web/nodejs-config",
"homepage": "https://github.com/bravo68web/node-config#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/bravo68web/node-config.git"
},
"bugs": {
"url": "https://github.com/bravo68web/nodejs-config/issues"
"url": "https://github.com/bravo68web/node-config/issues"
},
"files": [
"base.json",
@ -20,7 +23,7 @@
"typescript": "5.x"
},
"devDependencies": {
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"keywords": [
"bravo68web",
@ -30,4 +33,4 @@
"publishConfig": {
"access": "public"
}
}
}

View File

@ -27,9 +27,9 @@
"@types/node": "18.16.17",
"husky": "8.0.3",
"is-ci": "3.0.1",
"prettier": "2.8.8",
"prettier": "3.0.0",
"turbo": "1.10.3"
},
"packageManager": "pnpm@8.6.2",
"prettier": "@bravo68web/prettier-config"
}
}

File diff suppressed because it is too large Load Diff