Socket
Book a DemoInstallSign in
Socket

@borgar/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@borgar/eslint-config

I have opinions on how my code should look.

latest
npmnpm
Version
4.0.0
Version published
Maintainers
1
Created
Source

@borgar/eslint-config

I have opinions on how my code should look. This is a capture of those.

Look at the example.js to get a feel for what the code looks like.

Installing it

Pull it into your package like this:

npm install --save-dev eslint @eslint/js globals typescript-eslint @borgar/eslint-config

Then add an eslint.config.js file:

import borgarLint from '@borgar/eslint-config';
import eslint from '@eslint/js';
import globals from 'globals';
import tseslint from 'typescript-eslint';

export default tseslint.config(
  {
    files: [
      '**/*.js',
      '**/*.ts',
      '**/*.mjs'
    ],
    ignores: [
      'dist/*'
    ],
    languageOptions: {
      globals: { ...globals.browser },
      parserOptions: { projectService: { allowDefaultProject: [] } }
    }
  },
  eslint.configs.recommended,
  tseslint.configs.recommendedTypeChecked,
  tseslint.configs.stylisticTypeChecked,
  borgarLint.config.recommended,
  borgarLint.config.stylistic({
    commaDangle: true,
    singleBlocks: true,
    lineLength: 120
  }),
);

FAQs

Package last updated on 15 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts