@jpapini/eslint-config
v1.21.5
Published
Custom ESLint configuration for JavaScript and TypeScript projects.
Maintainers
Readme
ESLint configuration
Custom ESLint configuration for JavaScript and TypeScript projects.
Additional configurations are available for:
- Node.js projects:
createBaseEslintConfig - React projects:
createReactEslintConfig
How to use
- Install the package and its required peer dependencies:
pnpm add -D @jpapini/eslint-config eslint- Edit your
package.jsonfile to include the following:
{
"scripts": {
"lint:eslint": "eslint --flag unstable_config_lookup_from_file --cache --cache-location node_modules/.cache/eslint/.eslintcache .",
"format:eslint": "eslint --flag unstable_config_lookup_from_file --cache --cache-location node_modules/.cache/eslint/.eslintcache --fix ."
}
}- Create a
eslint.config.jsfile with the following content:
import url from 'node:url';
import { createBaseEslintConfig } from '@jpapini/eslint-config';
export default createBaseEslintConfig(url.fileURLToPath(new URL('.', import.meta.url)));Author
- Julien Papini [email protected]
