Files
bridget/package.json
Sped0n f3b5642f16 chore(eslint): update eslint configuration to include recommended rules and plugins
- Add "eslint:recommended" and "plugin:prettier/recommended" to the "extends" array to include recommended rules and prettier plugin.
- Add "plugin:@typescript-eslint/recommended" to the "extends" array to include recommended rules for TypeScript.
- Add "@typescript-eslint" and "prettier" to the "plugins" array to enable TypeScript and prettier linting.
- Update "parserOptions" to use the latest ECMAScript version and specify the project path.
- Add "sort-imports" rule to sort imports in a specific order and ignore case.
- Add "import/no-unresolved" rule to enforce resolving of imports.
- Add "import/order" rule to enforce a specific order for imports.
- Update "settings" to specify the TypeScript project path for import resolver.

chore(prettier): update prettier configuration to include additional plugins

- Add "prettier-plugin-organize-imports" to the "plugins" array to enable organizing imports.
- Update "overrides" to include "*.html" files for prettier formatting.

feat(package.json): add "swiper" dependency

- Add "swiper" dependency with version "^11.0.3" to the "dependencies" section.
2023-10-29 22:08:26 +08:00

50 lines
1.6 KiB
JSON

{
"name": "bridget-src",
"version": "0.0.1",
"description": "bridget theme source file",
"private": true,
"scripts": {
"lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx --fix",
"build": "hugo -v --source=exampleSite --themesDir ../.. --gc",
"build:preview": "hugo -v --source=exampleSite --themesDir ../.. -D --gc",
"server": "hugo server --source=exampleSite --gc -D --disableFastRender --watch --verbose",
"server:production": "hugo server --source=exampleSite --gc --disableFastRender -e production --watch --verbose"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Sped0n/bridget.git"
},
"keywords": [
"hugo",
"theme",
"photography"
],
"author": "spedon",
"license": "MIT",
"bugs": {
"url": "https://github.com/Sped0n/bridget/issues"
},
"homepage": "https://github.com/Sped0n/bridget#readme",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-standard": "^17.1.0",
"eslint-config-standard-with-typescript": "^39.1.1",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.2.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-promise": "^6.1.1",
"prettier": "3.0.3",
"prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-organize-imports": "^3.2.3",
"typescript": "^5.2.2"
},
"dependencies": {
"gsap": "^3.12.2",
"swiper": "^11.0.3"
}
}