1.0.23 • Published 7 months ago

@vroskus/eslint-config v1.0.23

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@vroskus/eslint-config

Eslint config to make code proper

Installation

Call:

npm install -D @vroskus/eslint-config

yarn add -D @vroskus/eslint-config

Usage

import eslintConfig from '@vroskus/eslint-config';

/* eslintConfig.browser() for dom, eslintConfig.node() for node */
const config = eslintConfig.<browser | node>({
  configs: /* array of additional configs */
  rules: /* object of additional rules */ 
});

export default [
  ...config,
  {
    /*... */
  },
  // ...
];