This is default ESlint configurations for projects in SOCIFI.
First install the package:
npm install @socifi/eslint-config --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.
- unicorn - Various lints.
- filenames - Lint file names.
- sonar - various piggy code detection
- typescript
- array-func
There are more extendable configurations for tests or different envs:
module.exports = {
extends: [
'@socifi',
'@socifi/eslint-config/react',
'@socifi/eslint-config/jasmine',
'@socifi/eslint-config/jest',
'@socifi/eslint-config/babel-resolver',
],
};