ESlint) config used at Signals Network.
npm install --save-dev eslint-config-signals
Currently, two configs are provided: signals
for general JavaScript and signals/react
for React-specific rules.
In your project's .eslintrc.js
, use the extends
property to specify which config should be used.
module.exports = {
env: { node: true },
extends: "signals"
};
module.exports = {
env: { browser: true, node: true },
extends: ["signals", "signals/react"]
};