core(eslint): added Makefile rule to run eslint
Added makefile rule to run eslint (npm@eslint) using an npm script
This commit is contained in:
parent
812959b16f
commit
7d0f5c11d6
2 changed files with 18 additions and 10 deletions
15
Makefile
15
Makefile
|
|
@ -6,7 +6,7 @@
|
||||||
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
|
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2023/11/12 11:05:05 by rparodi #+# #+# #
|
# Created: 2023/11/12 11:05:05 by rparodi #+# #+# #
|
||||||
# Updated: 2025/09/28 18:44:10 by rparodi ### ########.fr #
|
# Updated: 2025/10/06 16:55:58 by maiboyer ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
|
|
@ -101,12 +101,17 @@ re:
|
||||||
tokei:
|
tokei:
|
||||||
@/bin/sh -c 'tokei'
|
@/bin/sh -c 'tokei'
|
||||||
|
|
||||||
|
npm@: npm;
|
||||||
npm:
|
npm:
|
||||||
@$(ECHO) "commands: "
|
@$(ECHO) "commands: "
|
||||||
@$(ECHO) "\tnpm@install: install all dependencies"
|
@$(ECHO) " npm@install: install all dependencies"
|
||||||
@$(ECHO) "\tnpm@fclean: clean every \`dist\` directory"
|
@$(ECHO) " npm@fclean: clean every \`dist\` directory"
|
||||||
@$(ECHO) "\tnpm@clean: clean \`node_modules\` directory"
|
@$(ECHO) " npm@clean: clean \`node_modules\` directory"
|
||||||
@$(ECHO) "\tnpm@build: build subprojects"
|
@$(ECHO) " npm@build: build subprojects"
|
||||||
|
@$(ECHO) " npm@eslint: run eslint"
|
||||||
|
|
||||||
|
npm@eslint:
|
||||||
|
npm --prefix=./src/ run eslint
|
||||||
|
|
||||||
npm@install:
|
npm@install:
|
||||||
npm --prefix=./src/ run install-all
|
npm --prefix=./src/ run install-all
|
||||||
|
|
|
||||||
|
|
@ -16,18 +16,21 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run build --workspaces --if-present",
|
"build": "npm run build --workspaces --if-present",
|
||||||
"distclean": "rimraf -v -g \"*/dist\"",
|
"distclean": "rimraf -v -g \"*/dist\"",
|
||||||
|
"fclean": "rimraf \"**/dist\"",
|
||||||
|
"clean": "rimraf \"**/node_modules\"",
|
||||||
|
"eslint": "eslint",
|
||||||
"install-all": "npm install",
|
"install-all": "npm install",
|
||||||
"dev:prepare": "husky"
|
"dev:prepare": "husky"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"rimraf": "^5.0.1",
|
"rimraf": "^5.0.1",
|
||||||
"@eslint/js": "^9.36.0",
|
"@eslint/js": "^9.36.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
||||||
"@typescript-eslint/parser": "^8.44.1",
|
"@typescript-eslint/parser": "^8.44.1",
|
||||||
"eslint": "^9.36.0",
|
"eslint": "^9.36.0",
|
||||||
"lint-staged": "^16.1.5",
|
"lint-staged": "^16.1.5",
|
||||||
"husky": "^9.1.7",
|
"husky": "^9.1.7",
|
||||||
"typescript-eslint": "^8.44.1"
|
"typescript-eslint": "^8.44.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bindings": "^1.5.0"
|
"bindings": "^1.5.0"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue