JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q34805F
  • License MIT

My base ESLint, prettier config for JS/TS projects

Package Exports

  • @khanhtran47/config

Readme

@khanhtran47/eslint-config

This is my personal ESLint configuration. It is a shareable configuration that can be used in any JavaScript or TypeScript project.

npm ci changesets

Install

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

Be sure to install the appropriately versioned eslint peer dependency as well.

Usage

Follow the ESLint documentation on shared configurations. See the documentation on ignoring files if you need to ignore anything the config doesn't already ignore by default.

Examples

eslint.config.js

import baseConfig from '@khanhtran47/eslint-config';

/** @type {import("eslint").Linter.Config[]} */
const config = [
    ...baseConfig,
    // overrides here
];

export default config;

package.json

{
  "scripts": {
    ...
    "lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
    ...
  }
}