@quasarwork/eslint-config-gear
v1.5.1
Published
Opinionated ESLint configuration for Quasar.work's Gear projects
Downloads
1,308
Readme
@quasarwork/eslint-config-gear
This package provides an opinionated ESLint configuration for Quasar.work's Gear ⚙️ projects.
Learn more about ESLint configuration.
Learn more about Typescript ESLint configuration.
Installation
yarn add -D eslint typescript typescript-eslint @quasarwork/eslint-config-gear
Usage
Add the following to your estlint.config.mjs
file:
import eslintConfigGearServer from "@quasarwork/eslint-config-gear/eslint.config.server.mjs";
import tseslint from "typescript-eslint";
const config = tseslint.config(...eslintConfigGearServer);
export default config;
Notes
Some rules have been disabled because of some conflicts with Gadget and Effect features.
See source code for more details.
Available configurations
server.mjs
This configuration is the base configuration for all Quasar.work's Gear ⚙️ projects.
In a Gear Shopify app, this will be the configuration used in the eslint.config.mjs
file at the root of the project.
client.mjs
This configuration extends the base.mjs
configuration and adds some features related to a client side usage.
In a Gear Shopify app, this configuration will be used in the eslint.config.mjs
file at the root of your /web
directory (client side).
extensions.mjs
This configuration extends the base.mjs
configuration and adds some features related to a client side usage.
In a Gear Shopify app, this configuration will be used in the eslint.config.mjs
file at the root of your /extensions
directory (client side).