Skip to content

jenssimon/eslint-config-base

Repository files navigation

NPM version Downloads star this repo fork this repo Build Status

eslint-config-base

A shared ESLint configuration

Installation

yarn add --dev @jenssimon/eslint-config-base
npm install @jenssimon/eslint-config-base --save-dev

General

Based on the ESLint AirBnB Extended.

Additionally:

Note

This configuration is flat config only.

If you need eslintrc support please use a version < 9 of this lint configuration.

Configuration

import path from 'node:path'

import { includeIgnoreFile } from '@eslint/compat'

import { configs } from '@jenssimon/eslint-config-base'


const gitignorePath = path.resolve('.', '.gitignore')


export default [
  includeIgnoreFile(gitignorePath),
  {
    ignores: [
      '.yarn/',
    ],
  },

  ...configs.base,

  // for Node.js environments
  ...configs.node,
]

License

MIT © 2019 Jens Simon

About

A collection of shareable ESLint configurations for both client and server side code

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •