@espcom/eslint-config
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

Private ESLint config

npm license

Usage

  1. Add @espcom/eslint-config to devDependencies in package.json
  2. Create eslint.config.cjs with content:
const path = require('path');

const { getEslintConfig } = require('@espcom/eslint-config');

const eslintConfig = getEslintConfig({
  tsConfigPath: path.resolve(__dirname, './tsconfig.json'),
});

module.exports = eslintConfig;
  1. Add scripts to package.json (example for formatting only pointed files but analyze all files):
{
  "scripts": {
    "analyze:js": "eslint ./src",
    "format:js": "eslint --fix"
  }
}

Attach ESLint to your IDE, don't forget to enable auto-formatting on save.

Dependencies (15)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @espcom/eslint-config

    Weekly Downloads

    1

    Version

    0.0.8

    License

    MIT

    Unpacked Size

    15.4 kB

    Total Files

    14

    Last publish

    Collaborators

    • ninjakuro
    • dkazakov8