My personal ESLint configurations.
npm install --save-dev eslint eslint-config-moqada eslint-plugin-jsdoc
Add eslint.config.js
.
- Base
moqada
: Defaultmoqada/es5
: ES5
- Optional
moqada/browser
: Browser envmoqada/cli
: for CLI (Node.js env)moqada/flow
: for Flowmoqada/flow-jsdoc
: for JSDoc and Flowmoqada/node
: for Node.js envmoqada/react
: for Reactmoqada/react-native
: for React Nativemoqada/mocha
: for Testing mocha
import configMoqada from 'eslint-config-moqada';
import configMoqadaNode from 'eslint-config-moqada/node';
export default [
...configMoqada,
...configMoqadaNode,
];
npm install --save-dev eslint-plugin-node
import configMoqadaEs5 from 'eslint-config-moqada/es5';
import configMoqadaBrowser from 'eslint-config-moqada/browser';
export default [
...configMoqadaEs5,
...configMoqadaBrowser,
];
import configMoqada from 'eslint-config-moqada';
import configMoqadaCli from 'eslint-config-moqada/cli';
export default [
...configMoqada,
...configMoqadaCli,
];
npm install --save-dev eslint-plugin-node
import configMoqada from 'eslint-config-moqada';
import configMoqadaBrowser from 'eslint-config-moqada/browser';
import configMoqadaReact from 'eslint-config-moqada/react';
export default [
...configMoqada,
...configMoqadaBrowser,
...configMoqadaReact,
];
npm install --save-dev eslint-plugin-react
import configMoqada from 'eslint-config-moqada';
import configMoqadaReactNative from 'eslint-config-moqada/react-native';
export default [
...configMoqada,
...configMoqadaReactNative,
];
npm install --save-dev eslint-plugin-react eslint-plugin-react-native
import configMoqada from 'eslint-config-moqada';
import configMoqadaReactNative from 'eslint-config-moqada/react-native';
import configMoqadaFlow from 'eslint-config-moqada/flow';
import configMoqadaFlowJsdoc from 'eslint-config-moqada/flow-jsdoc';
export default [
...configMoqada,
...configMoqadaReactNative,
...configMoqadaFlow,
...configMoqadaFlowJsdoc,
];
npm install --save-dev eslint-plugin-flowtype eslint-plugin-jsdoc eslint-plugin-react eslint-plugin-react-native eslint-plugin-import