npm: use shared prettier config
Summary: Shared config testbed, yeah. Signed-off-by: Yongmin Hong <revi@omglol.email> Test Plan: `npm run p:c .` should run as it is. Reviewers: O1 revi & automations, revi Reviewed By: O1 revi & automations, revi Differential Revision: https://issuetracker.revi.xyz/D305
This commit is contained in:
parent
8865e172f9
commit
01e6487932
5 changed files with 9 additions and 31 deletions
27
.arclint
27
.arclint
|
@ -1,8 +1,5 @@
|
|||
{
|
||||
"exclude": [
|
||||
"(^node_modules/)",
|
||||
"(^package-lock.json$)"
|
||||
],
|
||||
"exclude": ["(^node_modules/)", "(^package-lock.json$)"],
|
||||
"linters": {
|
||||
"chmod": {
|
||||
"type": "chmod"
|
||||
|
@ -16,20 +13,12 @@
|
|||
},
|
||||
"jshint": {
|
||||
"type": "jshint",
|
||||
"include": [
|
||||
"(\\.cjs$)",
|
||||
"(\\.js$)",
|
||||
"(\\.mjs$)"
|
||||
],
|
||||
"include": ["(\\.cjs$)", "(\\.js$)", "(\\.mjs$)"],
|
||||
"jshint.jshintrc": ".jshint.json"
|
||||
},
|
||||
"json": {
|
||||
"type": "json",
|
||||
"include": [
|
||||
"(^\\.arcconfig$)",
|
||||
"(^\\.arclint$)",
|
||||
"(\\.json$)"
|
||||
]
|
||||
"include": ["(^\\.arcconfig$)", "(^\\.arclint$)", "(\\.json$)"]
|
||||
},
|
||||
"merge-conflict": {
|
||||
"type": "merge-conflict"
|
||||
|
@ -46,10 +35,7 @@
|
|||
},
|
||||
"text": {
|
||||
"type": "text",
|
||||
"exclude": [
|
||||
"(^.gitignore$)",
|
||||
"(\\.md)"
|
||||
],
|
||||
"exclude": ["(^.gitignore$)", "(\\.md)"],
|
||||
"text.max-line-length": 80,
|
||||
"severity": {
|
||||
"1": "autofix",
|
||||
|
@ -60,10 +46,7 @@
|
|||
},
|
||||
"text-no-linelength": {
|
||||
"type": "text",
|
||||
"include": [
|
||||
"(^.gitignore$)",
|
||||
"(\\.md)"
|
||||
],
|
||||
"include": ["(^.gitignore$)", "(\\.md)"],
|
||||
"severity": {
|
||||
"1": "autofix",
|
||||
"2": "advice",
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
# https://prettier.io/docs/en/configuration
|
||||
|
||||
# Prettier configuration
|
||||
bracketSpacing: false
|
||||
bracketSameLine: true
|
||||
proseWrap: preserve
|
||||
singleQuote: true
|
||||
trailingComma: all
|
|
@ -1,5 +1,4 @@
|
|||
---
|
||||
|
||||
yaml-files:
|
||||
- '*.yaml'
|
||||
- '*.yml'
|
||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -9,6 +9,7 @@
|
|||
"npm/prettier-config"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@revi/prettier-config": "^0.0.1",
|
||||
"csslint": "^1.0.5",
|
||||
"jshint": "^2.13.6",
|
||||
"prettier": "^3.3.1"
|
||||
|
@ -384,6 +385,7 @@
|
|||
"license": "ISC"
|
||||
},
|
||||
"npm/prettier-config": {
|
||||
"name": "@revi/prettier-config",
|
||||
"version": "0.0.1",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"name": "@revi/scripts",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@revi/prettier-config": "^0.0.1",
|
||||
"csslint": "^1.0.5",
|
||||
"jshint": "^2.13.6",
|
||||
"prettier": "^3.3.1"
|
||||
|
@ -11,6 +12,7 @@
|
|||
"p:c": "prettier --check",
|
||||
"p:w": "prettier --write"
|
||||
},
|
||||
"prettier": "@revi/prettier-config",
|
||||
"workspaces": [
|
||||
"npm/prettier-config"
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue