diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..39101d1 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,4 @@ +{ + "useTabs": true, + "plugins": ["prettier-plugin-css-order"] +} diff --git a/index.html b/index.html index 83598b5..aef77f0 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + diff --git a/package.json b/package.json index 63fbae6..0e35af0 100644 --- a/package.json +++ b/package.json @@ -9,11 +9,13 @@ }, "dependencies": { "@simonwep/pickr": "1.9.1", - "browser-image-compression": "^2.0.2", + "browser-image-compression": "2.0.2", "sortablejs": "1.15.6" }, "devDependencies": { "@types/sortablejs": "1.15.8", + "prettier": "3.4.2", + "prettier-plugin-css-order": "2.1.2", "vite": "6.0.6" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 11b0ba8..b5d1964 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,7 +12,7 @@ importers: specifier: 1.9.1 version: 1.9.1 browser-image-compression: - specifier: ^2.0.2 + specifier: 2.0.2 version: 2.0.2 sortablejs: specifier: 1.15.6 @@ -21,6 +21,12 @@ importers: '@types/sortablejs': specifier: 1.15.8 version: 1.15.8 + prettier: + specifier: 3.4.2 + version: 3.4.2 + prettier-plugin-css-order: + specifier: 2.1.2 + version: 2.1.2(postcss@8.4.49)(prettier@3.4.2) vite: specifier: 6.0.6 version: 6.0.6 @@ -287,6 +293,12 @@ packages: core-js@3.37.0: resolution: {integrity: sha512-fu5vHevQ8ZG4og+LXug8ulUtVxjOcEYvifJr7L5Bfq9GOztVqsKd9/59hUk2ZSbCrS3BqUr3EpaYGIYzq7g3Ug==} + css-declaration-sorter@7.2.0: + resolution: {integrity: sha512-h70rUM+3PNFuaBDTLe8wF/cdWu+dOZmb7pJt8Z2sedYbAcQVQV/tEchueg3GWxwqS0cxtbxmaHEdkNACqcvsow==} + engines: {node: ^14 || ^16 || >=18} + peerDependencies: + postcss: ^8.0.9 + esbuild@0.24.2: resolution: {integrity: sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==} engines: {node: '>=18'} @@ -308,10 +320,33 @@ packages: picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + postcss-less@6.0.0: + resolution: {integrity: sha512-FPX16mQLyEjLzEuuJtxA8X3ejDLNGGEG503d2YGZR5Ask1SpDN8KmZUMpzCvyalWRywAn1n1VOA5dcqfCLo5rg==} + engines: {node: '>=12'} + peerDependencies: + postcss: ^8.3.5 + + postcss-scss@4.0.9: + resolution: {integrity: sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A==} + engines: {node: '>=12.0'} + peerDependencies: + postcss: ^8.4.29 + postcss@8.4.49: resolution: {integrity: sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==} engines: {node: ^10 || ^12 || >=14} + prettier-plugin-css-order@2.1.2: + resolution: {integrity: sha512-vomxPjHI6pOMYcBuouSJHxxQClJXaUpU9rsV9IAO2wrSTZILRRlrxAAR8t9UF6wtczLkLfNRFUwM+ZbGXOONUA==} + engines: {node: '>=16'} + peerDependencies: + prettier: 3.x + + prettier@3.4.2: + resolution: {integrity: sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==} + engines: {node: '>=14'} + hasBin: true + rollup@4.29.1: resolution: {integrity: sha512-RaJ45M/kmJUzSWDs1Nnd5DdV4eerC98idtUOVr6FfKcgxqvjwHmxc5upLF9qZU9EpsVzzhleFahrT3shLuJzIw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} @@ -516,6 +551,10 @@ snapshots: core-js@3.37.0: {} + css-declaration-sorter@7.2.0(postcss@8.4.49): + dependencies: + postcss: 8.4.49 + esbuild@0.24.2: optionalDependencies: '@esbuild/aix-ppc64': 0.24.2 @@ -553,12 +592,31 @@ snapshots: picocolors@1.1.1: {} + postcss-less@6.0.0(postcss@8.4.49): + dependencies: + postcss: 8.4.49 + + postcss-scss@4.0.9(postcss@8.4.49): + dependencies: + postcss: 8.4.49 + postcss@8.4.49: dependencies: nanoid: 3.3.8 picocolors: 1.1.1 source-map-js: 1.2.1 + prettier-plugin-css-order@2.1.2(postcss@8.4.49)(prettier@3.4.2): + dependencies: + css-declaration-sorter: 7.2.0(postcss@8.4.49) + postcss-less: 6.0.0(postcss@8.4.49) + postcss-scss: 4.0.9(postcss@8.4.49) + prettier: 3.4.2 + transitivePeerDependencies: + - postcss + + prettier@3.4.2: {} + rollup@4.29.1: dependencies: '@types/estree': 1.0.6