Skip to content

Commit

Permalink
fix: use 4 tabs for prettier in shared
Browse files Browse the repository at this point in the history
  • Loading branch information
nicobao committed Nov 18, 2022
1 parent bbd45ba commit 5ee234b
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 77 deletions.
6 changes: 6 additions & 0 deletions shared/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": false,
"singleQuote": true
}
70 changes: 35 additions & 35 deletions shared/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 28 additions & 28 deletions shared/package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"name": "@cidgravity/shared-locales",
"version": "1.0.0",
"description": "i18next JSON localization files for all the CIDgravity projects",
"main": "index.js",
"scripts": {
"format:check": "prettier --check .",
"format:write": "prettier --write .",
"check-json-validity": "node ../build/checkJSONValidity.js ./unpackaged ; node ../build/checkJSONValidity.js ./packaged",
"check-dev-en-US-match": "node ../build/checkDevEnUSMatch.js ./unpackaged/locales ; node ../build/checkDevEnUSMatch.js ./packaged/locales",
"create-en-US-from-dev": "node ../build/createEnUsFromDev.js ./locales/",
"test": "npm run format:check && npm run check-json-validity && npm run check-dev-en-US-match"
},
"repository": {
"type": "git",
"url": "git+https://github.com/CIDgravity/CIDgravity-localization.git"
},
"keywords": [
"localization"
],
"author": "CIDgravity",
"license": "MIT AND Apache-2.0",
"bugs": {
"url": "https://github.com/CIDgravity/CIDgravity-localization/issues"
},
"homepage": "https://github.com/CIDgravity/CIDgravity-localization#readme",
"devDependencies": {
"prettier": "2.7.1"
}
"name": "@cidgravity/shared-locales",
"version": "1.0.0",
"description": "i18next JSON localization files for all the CIDgravity projects",
"main": "index.js",
"scripts": {
"format:check": "prettier --check .",
"format:write": "prettier --write .",
"check-json-validity": "node ../build/checkJSONValidity.js ./unpackaged ; node ../build/checkJSONValidity.js ./packaged",
"check-dev-en-US-match": "node ../build/checkDevEnUSMatch.js ./unpackaged/locales ; node ../build/checkDevEnUSMatch.js ./packaged/locales",
"create-en-US-from-dev": "node ../build/createEnUsFromDev.js ./locales/",
"test": "npm run format:check && npm run check-json-validity && npm run check-dev-en-US-match"
},
"repository": {
"type": "git",
"url": "git+https://github.com/CIDgravity/CIDgravity-localization.git"
},
"keywords": [
"localization"
],
"author": "CIDgravity",
"license": "MIT AND Apache-2.0",
"bugs": {
"url": "https://github.com/CIDgravity/CIDgravity-localization/issues"
},
"homepage": "https://github.com/CIDgravity/CIDgravity-localization#readme",
"devDependencies": {
"prettier": "2.7.1"
}
}
6 changes: 3 additions & 3 deletions shared/unpackaged/locales/dev/glossary.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"glossary": {
"cidgravity-name": "CIDgravity"
}
"glossary": {
"cidgravity-name": "CIDgravity"
}
}
22 changes: 11 additions & 11 deletions shared/unpackaged/locales/en-US/glossary.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"Protocol Labs": "Protocol Labs",
"Filecoin": "Filecoin",
"previous": "previous",
"glossary": {
"filecoin": "Filecoin",
"protocol-labs": "Protocol Labs",
"bidbot": "bidbot",
"textile": "Textile",
"fil": "FIL",
"estuary": "Estuary"
}
"Protocol Labs": "Protocol Labs",
"Filecoin": "Filecoin",
"previous": "previous",
"glossary": {
"filecoin": "Filecoin",
"protocol-labs": "Protocol Labs",
"bidbot": "bidbot",
"textile": "Textile",
"fil": "FIL",
"estuary": "Estuary"
}
}

0 comments on commit 5ee234b

Please sign in to comment.