@flexifin/eslint-config
v1.4.0
Published
Code service level repo for sharing common sources through several FF projects.
Downloads
162
Readme
flexifin/eslint-config
Code service level repo for sharing common sources through several FF projects.
Usage
Update ESlint to version 9:
npm install eslint@^9
Remove these packages from your project:
npm remove prettier \
@typescript-eslint/parser \
@typescript-eslint/eslint-plugin \
eslint-plugin-prefer-arrow-functions \
eslint-plugin-unused-imports \
eslint-config-prettier \
eslint-plugin-prettier \
eslint-plugin-unicorn
Install package:
# npm
npm install -D @flexifin/eslint-config
# yarn
yarn add -D @flexifin/eslint-config
# pnpm
pnpm install -D @flexifin/eslint-config
# bun
bun install -D @flexifin/eslint-config
Migration to FlexiFin code standard
Rename your project root ESLint config file to eslint.config.mjs
and modify content to extend FlexiFin preset:
import flexiFin from '@flexifin/eslint-config';
export default flexiFin({
ignores: [
// ignore paths
],
rules: {
// rule overrides
},
});
Rename your project root Prettier config file to prettier.config.mjs
and modify content to extend FlexiFin preset:
import flexiFin from '@flexifin/eslint-config/prettier';
export default flexiFin();
Contributors
🤖 auto updated with automd