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": [
|
"exclude": ["(^node_modules/)", "(^package-lock.json$)"],
|
||||||
"(^node_modules/)",
|
|
||||||
"(^package-lock.json$)"
|
|
||||||
],
|
|
||||||
"linters": {
|
"linters": {
|
||||||
"chmod": {
|
"chmod": {
|
||||||
"type": "chmod"
|
"type": "chmod"
|
||||||
|
@ -16,20 +13,12 @@
|
||||||
},
|
},
|
||||||
"jshint": {
|
"jshint": {
|
||||||
"type": "jshint",
|
"type": "jshint",
|
||||||
"include": [
|
"include": ["(\\.cjs$)", "(\\.js$)", "(\\.mjs$)"],
|
||||||
"(\\.cjs$)",
|
|
||||||
"(\\.js$)",
|
|
||||||
"(\\.mjs$)"
|
|
||||||
],
|
|
||||||
"jshint.jshintrc": ".jshint.json"
|
"jshint.jshintrc": ".jshint.json"
|
||||||
},
|
},
|
||||||
"json": {
|
"json": {
|
||||||
"type": "json",
|
"type": "json",
|
||||||
"include": [
|
"include": ["(^\\.arcconfig$)", "(^\\.arclint$)", "(\\.json$)"]
|
||||||
"(^\\.arcconfig$)",
|
|
||||||
"(^\\.arclint$)",
|
|
||||||
"(\\.json$)"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"merge-conflict": {
|
"merge-conflict": {
|
||||||
"type": "merge-conflict"
|
"type": "merge-conflict"
|
||||||
|
@ -46,10 +35,7 @@
|
||||||
},
|
},
|
||||||
"text": {
|
"text": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"exclude": [
|
"exclude": ["(^.gitignore$)", "(\\.md)"],
|
||||||
"(^.gitignore$)",
|
|
||||||
"(\\.md)"
|
|
||||||
],
|
|
||||||
"text.max-line-length": 80,
|
"text.max-line-length": 80,
|
||||||
"severity": {
|
"severity": {
|
||||||
"1": "autofix",
|
"1": "autofix",
|
||||||
|
@ -60,10 +46,7 @@
|
||||||
},
|
},
|
||||||
"text-no-linelength": {
|
"text-no-linelength": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"include": [
|
"include": ["(^.gitignore$)", "(\\.md)"],
|
||||||
"(^.gitignore$)",
|
|
||||||
"(\\.md)"
|
|
||||||
],
|
|
||||||
"severity": {
|
"severity": {
|
||||||
"1": "autofix",
|
"1": "autofix",
|
||||||
"2": "advice",
|
"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-files:
|
||||||
- '*.yaml'
|
- '*.yaml'
|
||||||
- '*.yml'
|
- '*.yml'
|
||||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -9,6 +9,7 @@
|
||||||
"npm/prettier-config"
|
"npm/prettier-config"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@revi/prettier-config": "^0.0.1",
|
||||||
"csslint": "^1.0.5",
|
"csslint": "^1.0.5",
|
||||||
"jshint": "^2.13.6",
|
"jshint": "^2.13.6",
|
||||||
"prettier": "^3.3.1"
|
"prettier": "^3.3.1"
|
||||||
|
@ -384,6 +385,7 @@
|
||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
},
|
},
|
||||||
"npm/prettier-config": {
|
"npm/prettier-config": {
|
||||||
|
"name": "@revi/prettier-config",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
"name": "@revi/scripts",
|
"name": "@revi/scripts",
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@revi/prettier-config": "^0.0.1",
|
||||||
"csslint": "^1.0.5",
|
"csslint": "^1.0.5",
|
||||||
"jshint": "^2.13.6",
|
"jshint": "^2.13.6",
|
||||||
"prettier": "^3.3.1"
|
"prettier": "^3.3.1"
|
||||||
|
@ -11,6 +12,7 @@
|
||||||
"p:c": "prettier --check",
|
"p:c": "prettier --check",
|
||||||
"p:w": "prettier --write"
|
"p:w": "prettier --write"
|
||||||
},
|
},
|
||||||
|
"prettier": "@revi/prettier-config",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"npm/prettier-config"
|
"npm/prettier-config"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue