How to use the eslint-config-airbnb-base.extends function in eslint-config-airbnb-base

To help you get started, we’ve selected a few eslint-config-airbnb-base examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tunnckoCore / opensource / configs / eslint-config / index.js View on Github external
'use strict';

const { createAliases, tsconfigResolver } = require('@tunnckocore/utils');
const airbnbBase = require('eslint-config-airbnb-base');

const { alias, workspaces } = createAliases();

// eslint-disable-next-line import/no-dynamic-require
const bestPractices = require(airbnbBase.extends[0]);

const ignoredProps = bestPractices.rules[
  'no-param-reassign'
][1].ignorePropertyModificationsFor.concat(
  'err',
  'x',
  '_',
  'opts',
  'options',
  'settings',
  'config',
  'cfg',
);

const unicornRules = {
  // It is too much annoyance for me. It's a good thing, but generally