Package detail

@shgysk8zer0/eslint-config

shgysk8zer0841MIT1.0.4

A shared ESLint config

eslint, eslint-config

readme

eslint-config

A shared ESLint config

CodeQL Node CI Lint Code Base

GitHub license GitHub last commit GitHub release GitHub Sponsors

npm node-current npm bundle size gzipped npm

GitHub followers GitHub forks GitHub stars Twitter Follow

Donate using Liberapay


Purpose

This package is just to make configuring ESLint easier by providing preset configs for node & browser. It also automatically ignores files listed in .gitignore.

Example

import { node } from '@shgysk8zer0/eslint-config';

export default node();

Advanced example

import { rules } from '@shgyk8zer0/eslint-config/rules.js';
import { ignoreFile } from '@shgysk8zer0/eslint-config/ignoreFile.js';
import { languageOptions } from '@shgysk8zer0/eslint-config/languageOptions.js';

export default [
  ignoreFile,
  { rules, languageOptions }
];