A shareable ESLint config for Faros AI.
Install this package as a dev dependency:
npm install --save-dev eslint-config-faros
As recommended by ESLint, this package declares its dependencies on ESLint and ESLint plugins as peer dependencies. You'll also need to install them as dev dependencies if you haven't already (see package.json).
Once installed, extend from it in your .eslintrc.js
file:
{
extends: 'faros'
}
An example of a complete .eslintrc.js
that overrides a rule:
module.exports = {
extends: 'faros',
root: true,
ignorePatterns: ['.eslintrc.js', '/lib/'],
rules: {
'max-len': ['error', {code: 100}],
},
};