1.0.3 • Published 12 months ago

@ventsislavnikolov/eslint-config v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@ventsislavnikolov/eslint-config

ESLint shareable config flat config for nodejs, typescript, react, next, tailwind, storybook, jest, jest-dom, testing-library, playwright, vitest, sort-keys, lodash, compat, prettier...

Installation

npm i -D @ventsislavnikolov/eslint-config

Usage

// eslint.config.js
export {all as default} from '@ventsislavnikolov/eslint-config';

Custom Config

import {vneslint} from '@ventsislavnikolov/eslint-config';

export default vneslint(
	[
		/* your custom configs */
	],
	{
		compat: false, // true if compat is installed
		jest: false, // true if jest is installed
		jestDom: false, // true if jest-dom is installed
		lodash: true, // true if lodash is installed
		next: true, // true if next is installed
		playwright: true, // true if playwright is installed
		prettier: true, // true
		react: true, // true if react is installed
		sortKeys: true, // true
		storybook: false, // true if storybook is installed
		tailwind: true, // true if tailwind is installed
		testingLibrary: false, // true if testing-library is installed
		typescript: true, // true if typescript is installed
		typescriptTypecheck: true, // true
		vitest: false, // true if vitest is installed
	},
);

CommonJS

const {vneslint} = require('@ventsislavnikolov/eslint-config');

module.exports = vneslint(
	[
		/* your custom configs */
	],
	{
		compat: false, // true if compat is installed
		jest: false, // true if jest is installed
		jestDom: false, // true if jest-dom is installed
		lodash: true, // true if lodash is installed
		next: true, // true if next is installed
		playwright: true, // true if playwright is installed
		prettier: true, // true
		react: true, // true if react is installed
		sortKeys: true, // true
		storybook: false, // true if storybook is installed
		tailwind: true, // true if tailwind is installed
		testingLibrary: false, // true if testing-library is installed
		typescript: true, // true if typescript is installed
		typescriptTypecheck: true, // true
		vitest: false, // true if vitest is installed
	},
);

VSCode

{
  "eslint.experimental.useFlatConfig": true
}