@indigo-reemploi/eslint-config-client
v1.0.3
Published
Shared eslint config for Client
Readme
Config Eslint partagé pour les services Client
Comment utiliser :
yarn add @indigo-reemploi/eslint-config-client// eslint.config.mjs
import { eslint } from "@indigo-reemploi/eslint-config-client";
export default [
...eslint,
"settings": {
"better-tailwindcss": {
// tailwindcss 4: the path to the entry file of the css based tailwind config (eg: `src/global.css`)
"entryPoint": "src/core/theme/tailwind.css",
// tailwindcss 3: the path to the tailwind config file (eg: `tailwind.config.js`)
"tailwindConfig": "tailwind.config.js"
}
}
];And for prettier
// prettier.config.mjs
import { prettier } from "@indigo-reemploi/eslint-config-client";
export default {
...prettier,
// tailwindcss 4: the path to the entry file
tailwindStylesheet: 'src/core/theme/tailwind.css',
};Pour développer la config en local
A chaque changement, aller dans le repo dans lequel on veut tester la config (par exemple circular-client) et lancer la commande :
# dans circular-client
yarn add ../eslint-config-client
yarn run lint:fixUpgrade guide
From V0 to V1
This upgrade works with Tailwind V3 and V4.
On client:
// eslint.config.mjs
import { eslint } from "@indigo-reemploi/eslint-config-client";
export default [
...eslint,
{
settings: {
"better-tailwindcss": {
// Tailwind CSS 4: the path to the entry file of the CSS-based Tailwind config (e.g.: `src/global.css`)
entryPoint: "src/core/theme/tailwind.css",
// Tailwind CSS 3: the path to the Tailwind config file (e.g.: `tailwind.config.js`)
tailwindConfig: "tailwind.config.js"
}
}
}
];And:
// prettier.config.mjs
import { prettier } from "@indigo-reemploi/eslint-config-client";
export default {
...prettier,
// Tailwind CSS 4: the path to the entry file
tailwindStylesheet: 'src/core/theme/tailwind.css',
};