ESLint shareable config for portals maintained by ion2s.
$ npm i -D eslint eslint-config-ion2s
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,
},
};