add tests
This commit is contained in:
Родитель
10072e289c
Коммит
8fd1960c0d
|
@ -0,0 +1 @@
|
|||
node_modules
|
|
@ -0,0 +1,23 @@
|
|||
const obj = {
|
||||
one: 1,
|
||||
two: 2,
|
||||
three: 3,
|
||||
}
|
||||
|
||||
;('this config avoids semicolons at the end of statements and uses single quotes for strings')
|
||||
|
||||
async function heresAFunctionWhichSpansMulitpleLinesAnd(
|
||||
that,
|
||||
includes,
|
||||
many,
|
||||
args,
|
||||
to,
|
||||
demonstrait,
|
||||
trailing,
|
||||
func,
|
||||
commas
|
||||
) {
|
||||
return obj
|
||||
}
|
||||
|
||||
const arrowFunctions = avoidParens => 1
|
|
@ -7,7 +7,33 @@
|
|||
"": {
|
||||
"name": "@github/prettier-config",
|
||||
"version": "0.0.4",
|
||||
"license": "MIT"
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"prettier": "^2.8.0"
|
||||
}
|
||||
},
|
||||
"node_modules/prettier": {
|
||||
"version": "2.8.0",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.0.tgz",
|
||||
"integrity": "sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"prettier": "bin-prettier.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10.13.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/prettier/prettier?sponsor=1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"prettier": {
|
||||
"version": "2.8.0",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.0.tgz",
|
||||
"integrity": "sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,6 +13,11 @@
|
|||
"author": "GitHub Inc.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test:update": "prettier --config ./index.js --write examples/",
|
||||
"test": "prettier --config ./index.js --check examples/",
|
||||
"postpublish": "npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^2.8.0"
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче