This is default eslint configurations for projects in SOCIFI.
First install the package:
npm install eslint-config-socifi --save-dev
and update you ESLint configuration:
module.exports = {
extends: [
'socifi',
],
};
In basic configuration following plugins are included:
- import - We use ECMAScript 6 modules.
- jsdoc - Predefined style for comments of methods.
- promise - Predefined style for promises.
- compat - To check that used features are supported by certain browsers.
- flowtype - We use static analysis tool Flow.
There are two extendable configurations:
module.exports = {
extends: [
'socifi',
'socifi/react',
'socifi/jasmine',
'socifi/jest',
],
};