mirror of https://github.com/waku-org/js-waku.git
chore: use root .prettierignore (#1285)
* use root .prettierignore for fix and check
This commit is contained in:
parent
7075f10780
commit
6abee4880f
|
@ -0,0 +1,9 @@
|
|||
.github
|
||||
.husky
|
||||
.vscode
|
||||
nwaku
|
||||
*/**/build
|
||||
*/**/bundle
|
||||
*/**/dist
|
||||
*/**/node_modules
|
||||
*/**/CHANGELOG.md
|
|
@ -20,9 +20,12 @@
|
|||
"build": "npm run build --workspaces --if-present",
|
||||
"build:esm": "npm run build:esm --workspaces --if-present",
|
||||
"size": "npm run build && size-limit",
|
||||
"fix": "npm run fix --workspaces --if-present",
|
||||
"fix:lint": "npm run fix:lint --workspaces --if-present",
|
||||
"check": "npm run check --workspaces --if-present",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:workspaces": "npm run fix --workspaces --if-present",
|
||||
"fix:prettier": "prettier ./packages --write",
|
||||
"check": "run-s check:*",
|
||||
"check:workspaces": "npm run check --workspaces --if-present",
|
||||
"check:prettier": "prettier ./packages --list-different",
|
||||
"check:ws": "[ $(ls -1 ./packages|wc -l) -eq $(cat package.json | jq '.workspaces | length') ] || exit 1 # check no packages left behind",
|
||||
"test": "npm run test --workspaces --if-present",
|
||||
"test:browser": "npm run test:browser --workspaces --if-present",
|
||||
|
|
|
@ -9,10 +9,8 @@
|
|||
"scripts": {
|
||||
"fix": "run-s fix:*",
|
||||
"fix:lint": "eslint . --fix",
|
||||
"fix:prettier": "prettier . --write",
|
||||
"check": "run-s check:*",
|
||||
"check:lint": "eslint .",
|
||||
"check:prettier": "prettier . --list-different"
|
||||
"check:lint": "eslint ."
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
build
|
||||
bundle
|
||||
dist
|
||||
node_modules
|
||||
CHANGELOG.md
|
|
@ -56,7 +56,6 @@
|
|||
"build:esm": "tsc",
|
||||
"build:bundle": "rollup --config rollup.config.js",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:prettier": "prettier . --write",
|
||||
"fix:lint": "eslint src *.js --fix",
|
||||
"pretest": "run-s pretest:*",
|
||||
"pretest:1-init-git-submodules": "[ -f '../../nwaku/build/wakunode2' ] || git submodule update --init --recursive",
|
||||
|
@ -66,7 +65,6 @@
|
|||
"check": "run-s check:*",
|
||||
"check:tsc": "tsc -p tsconfig.dev.json",
|
||||
"check:lint": "eslint src *.js",
|
||||
"check:prettier": "prettier . --list-different",
|
||||
"check:spelling": "cspell \"{README.md,src/**/*.ts}\"",
|
||||
"test": "run-s test:*",
|
||||
"test:node": "TS_NODE_PROJECT=./tsconfig.dev.json mocha",
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
build
|
||||
bundle
|
||||
dist
|
||||
node_modules
|
||||
CHANGELOG.md
|
|
@ -36,11 +36,9 @@
|
|||
"build:esm": "tsc",
|
||||
"build:bundle": "rollup --config rollup.config.js",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:prettier": "prettier . --write",
|
||||
"fix:lint": "eslint src *.js --fix",
|
||||
"check": "run-s check:*",
|
||||
"check:lint": "eslint src *.js",
|
||||
"check:prettier": "prettier . --list-different",
|
||||
"check:spelling": "cspell \"{README.md,src/**/*.ts}\"",
|
||||
"check:tsc": "tsc -p tsconfig.dev.json",
|
||||
"prepublish": "npm run build",
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
build
|
||||
bundle
|
||||
dist
|
||||
node_modules
|
||||
CHANGELOG.md
|
|
@ -43,11 +43,9 @@
|
|||
"build:esm": "tsc",
|
||||
"build:bundle": "rollup --config rollup.config.js",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:prettier": "prettier . --write",
|
||||
"fix:lint": "eslint src *.js --fix",
|
||||
"check": "run-s check:*",
|
||||
"check:lint": "eslint src --ext .ts",
|
||||
"check:prettier": "prettier . --list-different",
|
||||
"check:spelling": "cspell \"{README.md,src/**/*.ts}\"",
|
||||
"check:tsc": "tsc -p tsconfig.dev.json",
|
||||
"prepublish": "npm run build",
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
build
|
||||
bundle
|
||||
dist
|
||||
node_modules
|
||||
CHANGELOG.md
|
|
@ -36,11 +36,9 @@
|
|||
"build:esm": "tsc",
|
||||
"build:bundle": "rollup --config rollup.config.js",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:prettier": "prettier . --write",
|
||||
"fix:lint": "eslint src *.js --fix",
|
||||
"check": "run-s check:*",
|
||||
"check:lint": "eslint src --ext .ts",
|
||||
"check:prettier": "prettier . --list-different",
|
||||
"check:spelling": "cspell \"{README.md,src/**/*.ts}\"",
|
||||
"check:tsc": "tsc -p tsconfig.dev.json",
|
||||
"test": "run-s test:*",
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
build
|
||||
bundle
|
||||
dist
|
||||
node_modules
|
||||
CHANGELOG.md
|
|
@ -35,11 +35,9 @@
|
|||
"build": "run-s build:**",
|
||||
"build:esm": "tsc",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:prettier": "prettier . --write",
|
||||
"fix:lint": "eslint src --fix",
|
||||
"check": "run-s check:*",
|
||||
"check:lint": "eslint src",
|
||||
"check:prettier": "prettier . --list-different",
|
||||
"check:spelling": "cspell \"{README.md,src/**/*.ts}\"",
|
||||
"check:tsc": "tsc -p tsconfig.dev.json",
|
||||
"prepublish": "npm run build",
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
build
|
||||
bundle
|
||||
dist
|
||||
node_modules
|
||||
CHANGELOG.md
|
|
@ -53,11 +53,9 @@
|
|||
"build:esm": "tsc",
|
||||
"build:bundle": "rollup --config rollup.config.js",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:prettier": "prettier . --write",
|
||||
"fix:lint": "eslint src *.js --fix",
|
||||
"check": "run-s check:*",
|
||||
"check:lint": "eslint src *.js",
|
||||
"check:prettier": "prettier . --list-different",
|
||||
"check:spelling": "cspell \"{README.md,src/**/*.ts}\"",
|
||||
"check:tsc": "tsc -p tsconfig.dev.json",
|
||||
"test": "run-s test:*",
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
build
|
||||
bundle
|
||||
dist
|
||||
node_modules
|
||||
CHANGELOG.md
|
|
@ -36,11 +36,9 @@
|
|||
"build:esm": "tsc",
|
||||
"build:bundle": "rollup --config rollup.config.js",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:prettier": "prettier . --write",
|
||||
"fix:lint": "eslint src *.js --fix",
|
||||
"check": "run-s check:*",
|
||||
"check:lint": "eslint src *.js",
|
||||
"check:prettier": "prettier . --list-different",
|
||||
"check:spelling": "cspell \"{README.md,src/**/*.ts}\"",
|
||||
"check:tsc": "tsc -p tsconfig.dev.json",
|
||||
"prepublish": "npm run build",
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
build
|
||||
bundle
|
||||
dist
|
||||
node_modules
|
||||
CHANGELOG.md
|
|
@ -38,9 +38,7 @@
|
|||
"proto": "rimraf src/lib/*.ts; protons src/lib/*.proto",
|
||||
"check:tsc": "tsc -p tsconfig.dev.json",
|
||||
"prepublish": "npm run build",
|
||||
"reset-hard": "git clean -dfx -e .idea && git reset --hard && npm i && npm run build",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:prettier": "prettier . --write"
|
||||
"reset-hard": "git clean -dfx -e .idea && git reset --hard && npm i && npm run build"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
build
|
||||
bundle
|
||||
dist
|
||||
node_modules
|
|
@ -36,7 +36,6 @@
|
|||
"build": "run-s build:**",
|
||||
"build:esm": "tsc",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:prettier": "prettier . --write",
|
||||
"fix:lint": "eslint src tests --fix",
|
||||
"pretest": "run-s pretest:*",
|
||||
"pretest:1-init-git-submodules": "[ -f '../../nwaku/build/wakunode2' ] || git submodule update --init --recursive",
|
||||
|
@ -44,7 +43,6 @@
|
|||
"nwaku:build": "(PROC=$(nproc --all 2>/dev/null || echo 2); cd ../../nwaku; make -j$PROC update; NIMFLAGS=\"-d:chronicles_colors=off\" make -j$PROC wakunode2)",
|
||||
"nwaku:force-build": "(cd ../../nwaku && rm -rf ./build/ ./vendor) && run-s nwaku:build",
|
||||
"check": "run-s check:*",
|
||||
"check:prettier": "prettier . --list-different",
|
||||
"check:lint": "eslint src tests",
|
||||
"check:spelling": "cspell \"{README.md,{tests,src}/**/*.ts}\"",
|
||||
"check:tsc": "tsc -p tsconfig.dev.json",
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
build
|
||||
bundle
|
||||
dist
|
||||
node_modules
|
||||
CHANGELOG.md
|
|
@ -53,11 +53,9 @@
|
|||
"build:esm": "tsc",
|
||||
"build:bundle": "rollup --config rollup.config.js",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:prettier": "prettier . --write",
|
||||
"fix:lint": "eslint src *.js --fix",
|
||||
"check": "run-s check:*",
|
||||
"check:lint": "eslint src *.js",
|
||||
"check:prettier": "prettier . --list-different",
|
||||
"check:spelling": "cspell \"{README.md,src/**/*.ts}\"",
|
||||
"check:tsc": "tsc -p tsconfig.dev.json",
|
||||
"prepublish": "npm run build",
|
||||
|
|
Loading…
Reference in New Issue