Use organization Prettier config (#2967)

* Use organization Prettier config

* Bump version to 1.0.0

* Update workflow

* Use npm ci and package.json script
This commit is contained in:
David Wheatley 2021-07-30 12:18:20 +01:00 committed by GitHub
parent 34803f4b43
commit ce824b0ccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 8 deletions

View File

@ -23,6 +23,10 @@ jobs:
with:
node-version: "14"
- name: Check JS formatting
run: npx prettier --check src
- name: Install JS dependencies
run: npm ci
working-directory: ./js
- name: Check JS formatting
run: npm run format-check
working-directory: ./js

View File

@ -1,6 +0,0 @@
{
"printWidth": 150,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5"
}

13
js/package-lock.json generated
View File

@ -22,6 +22,7 @@
},
"devDependencies": {
"@babel/preset-typescript": "^7.13.0",
"@flarum/prettier-config": "^1.0.0",
"@types/jquery": "^3.5.5",
"@types/mithril": "^2.0.7",
"@types/punycode": "^2.1.0",
@ -1477,6 +1478,12 @@
"to-fast-properties": "^2.0.0"
}
},
"node_modules/@flarum/prettier-config": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@flarum/prettier-config/-/prettier-config-1.0.0.tgz",
"integrity": "sha512-3/AcliIi5jPt4i7COb5hsLv6hm4EeXT9yI9I2EuEvhPi2QR+O9Y/8wrqRuO5mDkRzCIhUY+mjIL/f9770Zwfqg==",
"dev": true
},
"node_modules/@polka/url": {
"version": "1.0.0-next.12",
"resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.12.tgz",
@ -8870,6 +8877,12 @@
"to-fast-properties": "^2.0.0"
}
},
"@flarum/prettier-config": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@flarum/prettier-config/-/prettier-config-1.0.0.tgz",
"integrity": "sha512-3/AcliIi5jPt4i7COb5hsLv6hm4EeXT9yI9I2EuEvhPi2QR+O9Y/8wrqRuO5mDkRzCIhUY+mjIL/f9770Zwfqg==",
"dev": true
},
"@polka/url": {
"version": "1.0.0-next.12",
"resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.12.tgz",

View File

@ -1,6 +1,7 @@
{
"private": true,
"name": "@flarum/core",
"prettier": "@flarum/prettier-config",
"dependencies": {
"@askvortsov/rich-icu-message-formatter": "^0.1.0",
"@ultraq/icu-message-formatter": "^0.10.1",
@ -18,6 +19,7 @@
},
"devDependencies": {
"@babel/preset-typescript": "^7.13.0",
"@flarum/prettier-config": "^1.0.0",
"@types/jquery": "^3.5.5",
"@types/mithril": "^2.0.7",
"@types/punycode": "^2.1.0",