Skip to content

ESLint shareable config for portals maintained by ion2s.

Notifications You must be signed in to change notification settings

ion2s-gmbh/eslint-config-ion2s

Repository files navigation

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,
    },
};