{
	"name": "mappps",
	"version": "1.7.3",
	"description": "A plugin that display maps",
	"main": "index.js",
	"keywords": [
		"Wordpress plugin",
		"Gutenberg blocks",
		"leaflet",
		"maps",
		"openstreetmap"
	],
	"author": "LaTableRouge",
	"license": "GNU GENERAL PUBLIC LICENSE",
	"repository": {
		"url": "https://github.com/LaTableRouge/Mappps"
	},
	"scripts": {
		"test": "echo \"Error: no test specified\" && exit 1",
		"watch": "wp-scripts start",
		"build": "wp-scripts build",
		"watch:blocks": "wp-scripts start --webpack-src-dir=blocks --output-path=build/blocks",
		"build:blocks": "wp-scripts build --webpack-src-dir=blocks --output-path=build/blocks",
		"lint:scss": "npx stylelint --config linters/stylelint.config.js --ignore-path linters/.stylelintignore --allow-empty-input --fix {src/styles/**,blocks/**/assets/styles/**,src/styles,blocks/**/assets/styles}/*.scss",
		"prettier:scss": "npx prettier --config linters/prettier.config.js --ignore-path linters/.prettierignore --no-error-on-unmatched-pattern --write {src/styles/**,blocks/**/assets/styles/**,src/styles,blocks/**/assets/styles}/*.scss",
		"lint:js": "npx eslint --config linters/eslint.config.js --no-error-on-unmatched-pattern --fix {src/helpers/scripts/**,src/scripts/**,blocks/**/assets/scripts/**,src,src/scripts,blocks/**/assets/scripts}/*.{js,jsx,ts,tsx}",
		"prettier:js": "npx prettier --config linters/prettier.config.js --ignore-path linters/.prettierignore --no-error-on-unmatched-pattern --write {src/helpers/scripts/**,src/scripts/**,blocks/**/assets/scripts/**,src,src/scripts,blocks/**/assets/scripts}/*.{js,jsx,ts,tsx}",
		"prettier:json": "npx prettier --config linters/prettier.config.js --ignore-path linters/.prettierignore --no-error-on-unmatched-pattern --write {composer.json,package.json,blocks/**/*.json,acf-json/**/*.json}",
		"lint:md": "npx markdownlint-cli2 --config linters/.markdownlint.json --fix */**/*.md !**/node_modules/** !**/vendor/**",
		"beautify:all": "npm run prettier:scss && npm run lint:scss && npm run prettier:js && npm run lint:js && npm run prettier:json && npm run lint:md && composer prettier:php && composer lint:php",
		"plugin-zip": "wp-scripts plugin-zip",
		"prepare": "husky install && composer install && npm run build && npm run build:blocks"
	},
	"devDependencies": {
		"@babel/runtime": "^7.29.2",
		"@commitlint/cli": "^20.5.0",
		"@commitlint/config-conventional": "^20.5.0",
		"@wordpress/scripts": "^31.7.0",
		"browserslist": "^4.28.1",
		"copy-webpack-plugin": "^14.0.0",
		"eslint": "^9.39.4",
		"eslint-config-prettier": "^10.1.8",
		"eslint-plugin-import": "^2.32.0",
		"eslint-plugin-n": "^17.24.0",
		"eslint-plugin-node": "^11.1.0",
		"eslint-plugin-prettier": "^5.5.5",
		"eslint-plugin-promise": "^7.2.1",
		"eslint-plugin-react": "^7.37.5",
		"eslint-plugin-simple-import-sort": "^12.1.1",
		"eslint-plugin-sort-destructure-keys": "^3.0.0",
		"eslint-plugin-unused-imports": "^4.4.1",
		"git-precommit-checks": "^3.1.0",
		"globals": "^17.4.0",
		"husky": "^9.1.7",
		"lint-staged": "^16.4.0",
		"markdownlint-cli2": "^0.21.0",
		"prettier": "^3.8.1",
		"sass": "^1.98.0",
		"sass-loader": "^16.0.7",
		"stylelint": "^17.4.0",
		"stylelint-config-property-sort-order-smacss": "^11.2.0",
		"stylelint-config-sass-guidelines": "^13.0.0",
		"stylelint-config-standard": "^40.0.0",
		"stylelint-order": "^8.1.1",
		"validate-branch-name": "^1.3.2"
	},
	"dependencies": {
		"@react-leaflet/core": "^2.1.0",
		"leaflet": "^1.9.4",
		"leaflet-defaulticon-compatibility": "^0.1.2",
		"leaflet-fullscreen": "^1.0.2",
		"leaflet-geosearch": "^4.0.0",
		"leaflet-gesture-handling": "^1.2.2",
		"react-leaflet": "^4.2.1"
	},
	"files": [
		"mappps.php",
		"lang/",
		"build/",
		"includes/",
		"license.txt",
		"readme.txt"
	],
	"lint-staged": {
		"**/*.php": [
			"composer lint-staged:php"
		],
		"{blocks/**/*.scss,src/**/*.scss}": [
			"npx stylelint --config linters/stylelint.config.js --ignore-path linters/.stylelintignore --allow-empty-input --fix",
			"npx prettier --config linters/prettier.config.js --ignore-path linters/.prettierignore --no-error-on-unmatched-pattern --write",
			"npx stylelint --config linters/stylelint.config.js --ignore-path linters/.stylelintignore --allow-empty-input --fix"
		],
		"{src/**/*.{js,jsx,ts,tsx},blocks/**/*.{js,jsx,ts,tsx}}": [
			"npx prettier --config linters/prettier.config.js --ignore-path linters/.prettierignore --no-error-on-unmatched-pattern --write",
			"npx eslint --config linters/eslint.config.js --no-error-on-unmatched-pattern --fix"
		],
		"**/*.json": [
			"npx prettier --config linters/prettier.config.js --ignore-path linters/.prettierignore --no-error-on-unmatched-pattern --write"
		],
		"**/*.md": [
			"npx markdownlint-cli2 --config linters/.markdownlint.json --fix"
		]
	},
	"validate-branch-name": {
		"pattern": "^(main|master|srv/dev|srv/pre)$|^(feature|fix|hotfix|experimental|minor|major|release)/.+$",
		"errorMsg": "🤨 The branch you're trying to push doesn't respect our conventions, you can rename it with `git branch -m <current-name> <new-name>`"
	},
	"commitlint": {
		"extends": [
			"@commitlint/config-conventional"
		],
		"rules": {
			"type-enum": [
				2,
				"always",
				[
					"build",
					"chore",
					"docs",
					"feat",
					"fix",
					"refactor",
					"revert",
					"style",
					"wordpress",
					"wp"
				]
			]
		}
	},
	"git-precommit-checks": {
		"display": {
			"notifications": true,
			"offendingContent": true,
			"rulesSummary": false,
			"shortStats": true,
			"verbose": false
		},
		"rules": [
			{
				"message": "Have you forgotten to finish some tasks?",
				"nonBlocking": true,
				"regex": "/(?:FIXME|TODO)/"
			},
			{
				"message": "You have conflict markers lying around",
				"regex": "/^[<>|=]{4,}/m"
			},
			{
				"message": "Commit stopped: you've entered information that must not be committed!",
				"regex": "/do not commit/i"
			},
			{
				"filter": "/\\.js$/",
				"message": "🤔 Hum! Didn't you forget to remove from \"console.log(...)\"?",
				"nonBlocking": true,
				"regex": "/^\\s*console\\.log/"
			}
		]
	},
	"browserslist": [
		"last 2 version"
	]
}
