build: refactor linting

This commit is contained in:
iCrawl
2023-08-22 09:40:11 +02:00
parent 2e40a05adf
commit d37632da05
72 changed files with 427 additions and 530 deletions

View File

@@ -5,9 +5,9 @@
"private": true,
"type": "module",
"scripts": {
"lint": "prettier --check . && eslint ./src --ext .[REPLACE_IMPORT_EXT] --format=pretty",
"lint": "prettier --check . && eslint --ext .[REPLACE_IMPORT_EXT] --format=pretty src",
"deploy": "bun run src/util/deploy.[REPLACE_IMPORT_EXT]",
"format": "prettier --write . && eslint ./src --ext .[REPLACE_IMPORT_EXT] --fix --format=pretty",
"format": "prettier --write . && eslint --ext .[REPLACE_IMPORT_EXT] --fix --format=pretty src",
"start": "bun run src/index.[REPLACE_IMPORT_EXT]"
},
"dependencies": {

View File

@@ -5,9 +5,9 @@
"private": true,
"type": "module",
"scripts": {
"lint": "tsc && prettier --check . && eslint ./src --ext .[REPLACE_IMPORT_EXT] --format=pretty",
"lint": "tsc && prettier --check . && eslint --ext .[REPLACE_IMPORT_EXT] --format=pretty src",
"deploy": "bun run src/util/deploy.[REPLACE_IMPORT_EXT]",
"format": "prettier --write . && eslint ./src --ext .[REPLACE_IMPORT_EXT] --fix --format=pretty",
"format": "prettier --write . && eslint --ext .[REPLACE_IMPORT_EXT] --fix --format=pretty src",
"start": "bun run src/index.[REPLACE_IMPORT_EXT]"
},
"dependencies": {

View File

@@ -5,8 +5,8 @@
"private": true,
"type": "module",
"scripts": {
"lint": "prettier --check . && eslint src --ext .js,.cjs --format=pretty",
"format": "prettier --write . && eslint src --ext .js,.cjs --fix --format=pretty",
"lint": "prettier --check . && eslint --ext .js,.mjs,.cjs --format=pretty src",
"format": "prettier --write . && eslint --ext .js,.mjs,.cjs --fix --format=pretty src",
"start": "node --require dotenv/config src/index.js",
"deploy": "node --require dotenv/config src/util/deploy.js"
},

View File

@@ -5,5 +5,5 @@
"parserOptions": {
"project": ["./tsconfig.eslint.json"]
},
"ignorePatterns": ["dist/*"]
"ignorePatterns": ["**/dist/*"]
}

View File

@@ -6,9 +6,9 @@
"type": "module",
"scripts": {
"build": "tsc",
"lint": "prettier --check . && eslint ./src --ext .ts --format=pretty",
"lint": "prettier --check . && eslint --ext .ts --format=pretty src",
"deploy": "node --require dotenv/config dist/util/deploy.js",
"format": "prettier --write . && eslint ./src --ext .ts --fix --format=pretty",
"format": "prettier --write . && eslint --ext .ts --fix --format=pretty src",
"start": "node --require dotenv/config dist/index.js"
},
"dependencies": {