@samsch/eslint-config-default

0.1.0 • Public • Published

@samsch/eslint-config-default

My personal eslint config.

Use by adding a .eslintrc.js file to your project root with this content:

'use strict';

module.exports = {
  extends: '@samsch/eslint-config-default',
};

By default, it's in script (CommonJS) and node env mode.

  env: {
    node: true,
    es6: true,
  },
  parserOptions: {
    sourceType: 'script',
  },

You can change put it in ESM and browser mode by adding this in your .eslintrc.js file

  env: {
    node: false,
    browser: true,
    es6: true,
  },
  parserOptions: {
    sourceType: 'module',
  },

Dependencies (9)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @samsch/eslint-config-default

    Weekly Downloads

    0

    Version

    0.1.0

    License

    0BSD

    Unpacked Size

    4.6 kB

    Total Files

    8

    Last publish

    Collaborators

    • samsch