eslint-config-ion2s

4.4.0 • Public • Published

eslint-config-ion2s

ESLint shareable config for portals maintained by ion2s.

Installation

$ npm i -D eslint eslint-config-ion2s

Usage

This module provides a base shareable config and addition shareable configurations.

Specifying ion2s in the extends section of your configuration.

module.exports = {
    extends: 'ion2s',
};

You can also use ESLint configurations for TypeScript and Vue:

module.exports = {
    extends: 'ion2s/typescript',
};
module.exports = {
    extends: 'ion2s/vue',
};

There is also a config for using TypeScript with Vue:

module.exports = {
    extends: 'ion2s/vue-ts',
};

Feel free to add project specific configuration, like env or parserOptions - Example:

module.exports = {
    extends: 'ion2s',
    parserOptions: {
        ecmaVersion: 8,
    },
};

Dependents (0)

Package Sidebar

Install

npm i eslint-config-ion2s

Weekly Downloads

1

Version

4.4.0

License

MIT

Unpacked Size

17.8 kB

Total Files

19

Last publish

Collaborators

  • tstern
  • ooyu