fix: fix all eslint and prettier tasks

This commit is contained in:
Thomas Osmonson
2020-07-08 15:45:31 -05:00
committed by Thomas Osmonson
parent 0e7505454d
commit 217ca35050
7 changed files with 34 additions and 24 deletions

View File

@@ -12,10 +12,10 @@
"build:app": "lerna run prod:web --scope @blockstack/app",
"build:test-app": "lerna run prod:web --scope test-app",
"lint": "yarn lint:eslint && yarn lint:prettier",
"lint:eslint": "eslint packages/**/*.{ts,tsx}",
"lint:fix": "eslint --ext .ts,.tsx . -f unix --fix && prettier --write **/*.{ts,tsx} *.js",
"lint:prettier": "prettier --check **/*.{ts,tsx} *.js",
"lint:prettier:fix": "prettier --write **/*.{ts,tsx} *.js",
"lint:eslint": "eslint \"packages/**/src/**/*.{ts,tsx}\" -f unix",
"lint:fix": "eslint \"packages/**/src/**/*.{ts,tsx}\" -f unix --fix",
"lint:prettier": "prettier --check \"packages/**/src/**/*.{ts,tsx}\" *.js",
"lint:prettier:fix": "prettier --write \"packages/**/src/**/*.{ts,tsx}\" *.js",
"version": "lerna bootstrap"
},
"prettier": "@blockstack/prettier-config",

View File

@@ -8,10 +8,11 @@
"clean:all": "rm -rf ./dist && rm -rf ./coverage && rm -rf ./node_modules",
"dev": "cross-env NODE_ENV=development webpack-dev-server --hot --mode development",
"dev:ext": "cross-env NODE_ENV=development EXT_ENV=watch webpack -d --config webpack-ext.config.js",
"lint": "yarn run lint:eslint && yarn run lint:prettier",
"lint:eslint": "eslint src/**/*.{ts,tsx}",
"lint:fix": "eslint --fix src/**/*.{ts,tsx} && prettier --write src/**/*.{ts,tsx} *.js",
"lint:prettier": "prettier --check src/**/*.{ts,tsx} *.js",
"lint": "yarn lint:eslint && yarn lint:prettier",
"lint:eslint": "eslint \"src/**/*.{ts,tsx}\" -f unix",
"lint:fix": "eslint \"src/**/*.{ts,tsx}\" -f unix --fix",
"lint:prettier": "prettier --check \"src/**/*.{ts,tsx}\" *.js",
"lint:prettier:fix": "prettier --write \"src/**/*.{ts,tsx}\" *.js",
"prod:ext": "cross-env NODE_ENV=production EXT_ENV=prod webpack -p --config webpack-ext.config.js",
"prod:web": "cross-env NODE_ENV=production webpack -p",
"prod:web:analyze": "cross-env NODE_ENV=production ANALYZE=true webpack -p",

View File

@@ -7,8 +7,11 @@
"build:standalone": "NODE_ENV=production webpack --mode=production",
"build:standalone:analyze": "NODE_ENV=production ANALYZE=true webpack --mode=production",
"dev": "cd ../test-app && yarn start",
"lint": "eslint src/**/*.{ts,tsx}",
"lint:fix": "eslint src/**/*.{ts,tsx} --fix",
"lint": "yarn lint:eslint && yarn lint:prettier",
"lint:eslint": "eslint \"src/**/*.{ts,tsx}\" -f unix",
"lint:fix": "eslint \"src/**/*.{ts,tsx}\" -f unix --fix",
"lint:prettier": "prettier --check \"src/**/*.{ts,tsx}\" *.js",
"lint:prettier:fix": "prettier --write \"src/**/*.{ts,tsx}\" *.js",
"prepublishOnly": "yarn build",
"start": "tsdx watch",
"test": "tsdx test",

View File

@@ -18,8 +18,11 @@
"build:esm:watch": "tsc --outDir ./lib-esm -m es6 -t es2017 --watch",
"test": "jest",
"test:watch": "jest --watch --coverage=false",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint --fix src/**/*.ts",
"lint": "yarn lint:eslint && yarn lint:prettier",
"lint:eslint": "eslint \"src/**/*.{ts,tsx}\" -f unix",
"lint:fix": "eslint \"src/**/*.{ts,tsx}\" -f unix --fix",
"lint:prettier": "prettier --check \"src/**/*.{ts,tsx}\" *.js",
"lint:prettier:fix": "prettier --write \"src/**/*.{ts,tsx}\" *.js",
"depcheck": "depcheck --ignores='@types/*,eslint*,safe-buffer,codecov,@typescript-eslint/*,@blockstack/*'",
"typecheck": "tsc --noEmit",
"prepublishOnly": "yarn build"

View File

@@ -7,10 +7,11 @@
"clean": "rm -rf ./dist",
"clean:all": "rm -rf ./dist && rm -rf ./coverage && rm -rf ./node_modules",
"dev": "cross-env NODE_ENV=development webpack-dev-server --hot --mode development",
"lint": "yarn run lint:eslint && yarn run lint:prettier",
"lint:eslint": "eslint --ext .ts,.tsx ./src/ -f unix",
"lint:fix": "eslint --ext .ts,.tsx ./src/ -f unix --fix && prettier --write src/**/*.{ts,tsx} *.js",
"lint:prettier": "prettier --check src/**/*.{ts,tsx} *.js",
"lint": "yarn lint:eslint && yarn lint:prettier",
"lint:eslint": "eslint \"src/**/*.{ts,tsx}\" -f unix",
"lint:fix": "eslint \"src/**/*.{ts,tsx}\" -f unix --fix",
"lint:prettier": "prettier --check \"src/**/*.{ts,tsx}\" *.js",
"lint:prettier:fix": "prettier --write \"src/**/*.{ts,tsx}\" *.js",
"prod:web": "cross-env NODE_ENV=production webpack -p",
"prod:web:analyze": "cross-env NODE_ENV=production ANALYZE=true webpack -p",
"test": "jest --passWithNoTests",

View File

@@ -56,11 +56,11 @@
"start": "next telemetry disable && NODE_ENV=production next start",
"dev": "next dev",
"export": "next export",
"lint": "yarn run lint:eslint && yarn run lint:prettier",
"lint:eslint": "eslint --ext .ts,.tsx ./src",
"lint:fix": "eslint --ext .ts,.tsx ./src/ -f unix --fix && prettier --write src/**/*.{ts,tsx} *.js",
"lint:prettier": "prettier --check \"src/**/*.{ts,tsx,md,mdx}\" *.js *.json",
"lint:prettier:fix": "prettier --write \"src/**/*.{ts,tsx,md,mdx}\" *.js *.json"
"lint": "yarn lint:eslint && yarn lint:prettier",
"lint:eslint": "eslint \"src/**/*.{ts,tsx}\" -f unix",
"lint:fix": "eslint \"src/**/*.{ts,tsx}\" -f unix --fix",
"lint:prettier": "prettier --check \"src/**/*.{ts,tsx,md,mdx}\" *.js",
"lint:prettier:fix": "prettier --write \"src/**/*.{ts,tsx,md,mdx}\" *.js"
},
"resolutions": {
"preact": "^10.4.4"

View File

@@ -107,9 +107,11 @@
"build": "cross-env NODE_ENV=production tsdx build --format=cjs,esm,umd",
"dev": "tsdx watch --format=cjs,esm,umd",
"bundlesize": "bundlesize",
"format": "npm run prettier -- --write",
"lint": "eslint \"src/**/*.+(ts|tsx)\"",
"lint:fix": "eslint \"src/**/*.+(ts|tsx)\" --fix",
"lint": "yarn lint:eslint && yarn lint:prettier",
"lint:eslint": "eslint \"src/**/*.{ts,tsx}\" -f unix",
"lint:fix": "eslint \"src/**/*.{ts,tsx}\" -f unix --fix",
"lint:prettier": "prettier --check \"src/**/*.{ts,tsx}\" *.js",
"lint:prettier:fix": "prettier --write \"src/**/*.{ts,tsx}\" *.js",
"prebuild": "rimraf dist",
"prepublishOnly": "npm run typecheck && npm run build",
"start": "cross-env NODE_ENV=development tsdx watch",