feat: add prettier to repo root

This commit is contained in:
David Wheatley 2021-12-24 14:03:11 +01:00
parent dc661bf144
commit 9d4790c053
No known key found for this signature in database
GPG Key ID: DCC0FCE349280DFF
8 changed files with 221 additions and 161 deletions

19
.gitignore vendored
View File

@ -9,3 +9,22 @@ tests/.phpunit.result.cache
.idea/*
.vscode
js/coverage-ts
# Yarn
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
js/.pnp.*
js/.yarn/*
!js/.yarn/patches
!js/.yarn/plugins
!js/.yarn/releases
!js/.yarn/sdks
!js/.yarn/versions
node_modules

File diff suppressed because one or more lines are too long

2
.yarnrc.yml Normal file
View File

@ -0,0 +1,2 @@
yarnPath: .yarn/releases/yarn-3.1.1.cjs
nodeLinker: node-modules

9
js/.gitignore vendored
View File

@ -1,9 +0,0 @@
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
node_modules

View File

@ -1,2 +1,2 @@
yarnPath: .yarn/releases/yarn-3.1.0.cjs
yarnPath: ../.yarn/releases/yarn-3.1.1.cjs
nodeLinker: node-modules

View File

@ -47,5 +47,5 @@
"check-typings": "tsc --noEmit --emitDeclarationOnly false",
"check-typings-coverage": "typescript-coverage-report"
},
"packageManager": "yarn@3.1.0"
"packageManager": "yarn@3.1.1"
}

17
package.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "flarum",
"prettier": "@flarum/prettier-config",
"repository": "git@github.com:flarum/core.git",
"author": "Flarum Team",
"license": "MIT",
"private": true,
"packageManager": "yarn@3.1.1",
"devDependencies": {
"@flarum/prettier-config": "^1.0.0",
"prettier": "^2.5.1"
},
"scripts": {
"format": "prettier --write less",
"format-check": "prettier --check less"
}
}

31
yarn.lock Normal file
View File

@ -0,0 +1,31 @@
# This file is generated by running "yarn install" inside your project.
# Manual changes might be lost - proceed with caution!
__metadata:
version: 5
cacheKey: 8
"@flarum/prettier-config@npm:^1.0.0":
version: 1.0.0
resolution: "@flarum/prettier-config@npm:1.0.0"
checksum: 2035b97dcd02f2ebcb9f0f88111adbf176fbb31132c4e0a2a5387cec14619ef0f8ac3418c14a0730de1d14765b2bc7c53aa3eea6b28949da93ceb3c1c229195a
languageName: node
linkType: hard
"flarum@workspace:.":
version: 0.0.0-use.local
resolution: "flarum@workspace:."
dependencies:
"@flarum/prettier-config": ^1.0.0
prettier: ^2.5.1
languageName: unknown
linkType: soft
"prettier@npm:^2.5.1":
version: 2.5.1
resolution: "prettier@npm:2.5.1"
bin:
prettier: bin-prettier.js
checksum: 21b9408476ea1c544b0e45d51ceb94a84789ff92095abb710942d780c862d0daebdb29972d47f6b4d0f7ebbfb0ffbf56cc2cfa3e3e9d1cca54864af185b15b66
languageName: node
linkType: hard