These are settings for ESLint.
This setup lints your JavaScript code based on practices. Check the [.eslintrc.js] file to see what is included. Feel free to override the rules that make sense for you.
- In your project folder, run:
npm i -D pminds-eslint-preset # or yarn install --dev pminds-eslint-preset
npx install-peerdeps --dev pminds-eslint-preset
- You will see several dependencies were installed. Now, create (or update) a
eslint.config.mjs
file with the following content:
/** @type {import("eslint").Linter.Config} */
import config from '@productminds/eslint-config'
import tseslint from 'typescript-eslint'
export default tseslint.config(
{ ignores: ['dist', 'node_modules'] },
config,
)