Skip to content

vidavidorra/eslint-config

ESLint configuration

ESLint configuration based on XO.

  • Configuration based on XO.
  • Indentation using spaces.
  • Support for Prettier as a separate tool for formatting.

npm version npm downloads Node.js version support Renovate semantic-release Code coverage License

Install

npm install --save-dev @vidavidorra/eslint-config eslint

Usage

Use this configuration in your project's ESLint configuration by re-exporting this configuration in the ESLint configuration file. The following example show the configuration in an eslint.config.js file.

export {default} from '@vidavidorra/eslint-config';

As documented in the the ESLint Share Configuration documentation, configurations can also be extended and overridden. The following example shows such an example, again in the eslint.config.js file.

import vidavidorraConfig from '@vidavidorra/eslint-config';

const config = [
  ...vidavidorraConfig,
  {
    ignores: ['modules/'],
    rules: {
      // Override the "unicorn/no-new-array" rule from the shared configuration.
      'unicorn/no-new-array': 'off',
    },
  },
];

export default config;

Contributing

Please create an issue if you have a bug report or feature proposal, or create a discussion if you have a question. If you like this project, please consider giving it a star ⭐ to support my work.

Refer to the contributing guide for detailed information about other contributions, like pull requests.

Conventional Commits: 1.0.0 Linter XO code style Prettier code style

Security policy

Please refer to the Security Policy on GitHub for the security policy.

License

This project is licensed under the GPLv3 license.

Copyright © 2025-2026 Jeroen de Bruijn

License notice

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

The full text of the license is available in the LICENSE file in this repository and online

About

ESLint configuration based on XO

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors