Skip to content

Commit

Permalink
Add and configure prettier with toml plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
noisekit committed Sep 8, 2023
1 parent 4ac58ff commit f07896d
Show file tree
Hide file tree
Showing 8 changed files with 2,851 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
.DS_Store
.DS_Store
.vscode
.idea
*.log

# Yarn v3
.yarn/*
.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
.yarn/versions
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.yarn/
.idea/
26 changes: 26 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"printWidth": 100,
"useTabs": false,
"overrides": [
{
"files": "*.toml",
"options": {
"plugins": ["prettier-plugin-toml"],
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": true
}
},
{
"files": ["*.js", "*.ts", "*.md"],
"options": {
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"bracketSpacing": true,
"trailingComma": "es5"
}
}
]
}
541 changes: 541 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

874 changes: 874 additions & 0 deletions .yarn/releases/yarn-3.6.3.cjs

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
nodeLinker: node-modules

npmRegistryServer: "https://registry.npmjs.org"

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

supportedArchitectures:
cpu:
- x64
- arm64
libc:
- glibc
- musl
os:
- darwin
- linux

yarnPath: .yarn/releases/yarn-3.6.3.cjs
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "synthetix-deployments",
"version": "0.0.0",
"main": "index.js",
"repository": "synthetixio/synthetix-deployments",
"author": "Synthetix",
"license": "MIT",
"private": true,
"scripts": {
"pretty": "prettier . '**/*.toml' --write",
"pretty:check": "prettier . '**/*.toml' --check"
},
"devDependencies": {
"@usecannon/cli": "^2.5.4",
"prettier": "^3.0.3",
"prettier-plugin-toml": "^1.0.0"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit f07896d

Please sign in to comment.