JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 163
  • Score
    100M100P100Q86479F
  • License BSD-3-Clause

A shareable ESLint config with Stylistic.

Package Exports

  • @radham/eslint-config
  • @radham/eslint-config/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@radham/eslint-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@radham/eslint-config

A shareable ESLint config with Stylistic.

Install

npm install --save-dev @radham/eslint-config

Usage

import { includeIgnoreFile } from '@eslint/compat';
import radham, { radhamGfm } from '@radham/eslint-config';
import { defineConfig } from 'eslint/config';
import globals from 'globals';
import path from 'node:path';
import { fileURLToPath } from 'node:url';

const filename = fileURLToPath(import.meta.url);
const dirname = path.dirname(filename);
const gitignorePath = path.resolve(dirname, '.gitignore');

export default defineConfig([
  includeIgnoreFile(gitignorePath),
  {
    files: ['**/*.ts'],
    extends: [radham],
    languageOptions: { globals: globals.node /* or `globals.browser` */ }
  },
  {
    files: ['**/*.md'],
    extends: [radhamGfm]
  }
]);

License

The BSD 3-Clause License. See the license file for details.