@enormora/eslint-config-browser

0.0.9 • Public • Published

@enormora/eslint-config-browser

Config preset for browser environments, enabling specific rules and configures global variables.

Install & Setup

Install the @enormora/eslint-config-browser and the base preset package via npm:

npm install --save-dev @enormora/eslint-config-base @enormora/eslint-config-browser

Create an ESLint configuration file (e.g., eslint.config.js) in your project and add the base and browser config to the configuration array:

import { baseConfig } from '@enormora/eslint-config-base';
import { browserConfig } from '@enormora/eslint-config-browser';

export default [
    {
        ignores: ['dist/**/*']
    },
    baseConfig,
    {
        ...browserConfig,
        files: ['src/browser/**/*.js']
    }
];

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @enormora/eslint-config-browser

    Weekly Downloads

    1

    Version

    0.0.9

    License

    MIT

    Unpacked Size

    2.62 kB

    Total Files

    4

    Last publish

    Collaborators

    • screendriver
    • lo1tuma