From 6af74e955e0d5206e2c3388a43941fa3bebee6f6 Mon Sep 17 00:00:00 2001 From: Eihab Khan <143792300+eihabkhan1@users.noreply.github.com> Date: Thu, 5 Dec 2024 09:53:50 +0100 Subject: [PATCH] remove ESLint and Prettier from Aura --- pnpm-lock.yaml | 6 --- themes/aura/.eslintrc.json | 7 --- themes/aura/.prettierignore | 95 ------------------------------------- themes/aura/.prettierrc | 11 ----- themes/aura/.prettierrc.js | 12 ----- themes/aura/package.json | 6 +-- 6 files changed, 2 insertions(+), 135 deletions(-) delete mode 100644 themes/aura/.eslintrc.json delete mode 100644 themes/aura/.prettierignore delete mode 100644 themes/aura/.prettierrc delete mode 100644 themes/aura/.prettierrc.js diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1466cdc5..fc158bf3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -33,9 +33,6 @@ importers: themes/aura: devDependencies: - '@shopify/prettier-plugin-liquid': - specifier: ^0.4.2 - version: 0.4.3(prettier@1.12.1) child_process: specifier: ^1.0.2 version: 1.0.2 @@ -57,9 +54,6 @@ importers: onchange: specifier: ^7.1.0 version: 7.1.0 - prettier: - specifier: 1.12.1 - version: 1.12.1 sass: specifier: ^1.56.1 version: 1.77.8 diff --git a/themes/aura/.eslintrc.json b/themes/aura/.eslintrc.json deleted file mode 100644 index 2dfb942b..00000000 --- a/themes/aura/.eslintrc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "plugins": ["prettier"], - "rules": { - "prettier/prettier": "error" - }, - "extends": ["plugin:prettier/recommended"] -} diff --git a/themes/aura/.prettierignore b/themes/aura/.prettierignore deleted file mode 100644 index 2d863cae..00000000 --- a/themes/aura/.prettierignore +++ /dev/null @@ -1,95 +0,0 @@ -### -# Place your Prettier ignore content here - -### -# .gitignore content is duplicated here due to https://github.com/prettier/prettier/issues/8506 - -# Created by .ignore support plugin (hsz.mobi) -### Node template -# Logs -/logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-lock.yaml - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# Nuxt generate -dist - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless - -# IDE / Editor -.idea - -# Service worker -sw.* - -# macOS -.DS_Store - -# Vim swap files -*.swp - -# Assets -assets/*.css -assets/*.min.js diff --git a/themes/aura/.prettierrc b/themes/aura/.prettierrc deleted file mode 100644 index b2f472bb..00000000 --- a/themes/aura/.prettierrc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "semi": true, - "trailingComma": "all", - "singleQuote": true, - "printWidth": 120, - "useTabs": false, - "tabWidth": 2, - "bracketSpacing": true, - "vueIndentScriptAndStyle": true, - "singleAttributePerLine": true -} diff --git a/themes/aura/.prettierrc.js b/themes/aura/.prettierrc.js deleted file mode 100644 index 19f1e977..00000000 --- a/themes/aura/.prettierrc.js +++ /dev/null @@ -1,12 +0,0 @@ -// module.exports = require("@shopify/prettier-plugin-liquid"); -module.exports = { - ...require('@shopify/prettier-plugin-liquid'), - overrides: [ - { - files: './**/*.liquid', - options: { - parser: 'liquid', - }, - }, - ] -} diff --git a/themes/aura/package.json b/themes/aura/package.json index 384d264c..444cadd9 100644 --- a/themes/aura/package.json +++ b/themes/aura/package.json @@ -5,8 +5,8 @@ "type": "module", "scripts": { "sass": "sass ./styles:./.temp --no-source-map --watch", - "postcss": "postcss ./.temp/*.css --dir ./assets", - "watch:postcss": "onchange './.temp/*.css' -- pnpm run postcss", + "postcss": "postcss ./.temp/*.css --dir ./assets", + "watch:postcss": "onchange './.temp/*.css' -- pnpm run postcss", "fix": "onchange \"**/*.*\" -- prettier --write --ignore-unknown ./**/*.* --plugin-search-dir=. --ignore-path=.prettierignore", "lint": "onchange \"**/*.*\" -- prettier --check .", "wind": "npx tailwindcss build -i ./styles/_utils.css -o ./styles/utils.scss", @@ -16,7 +16,6 @@ "utilise": "clear && pnpm wind && node eyeliner && pnpm clean && pnpm dev" }, "devDependencies": { - "@shopify/prettier-plugin-liquid": "^0.4.2", "child_process": "^1.0.2", "clean-css-cli": "^5.6.1", "concurrently": "^7.6.0", @@ -24,7 +23,6 @@ "node-watch": "^0.7.3", "npm-run-all": "^4.1.5", "onchange": "^7.1.0", - "prettier": "1.12.1", "sass": "^1.56.1", "strip-css-comments-cli": "^3.0.0", "tailwindcss": "^3.2.4"