0.1.0 • Published 4 years ago

@samsch/eslint-config-default v0.1.0

Weekly downloads
1
License
0BSD
Repository
github
Last release
4 years ago

@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',
  },