Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

eslint-to-editorconfig

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-to-editorconfig

Module for transforming configuration from ESLint to EditorConfig format

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
1.8K
13.84%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-to-editorconfig

npm Build Status License

Module for transforming configuration from ESLint to EditorConfig format.

Note that minimum supported version of eslint is 2.0.0.

Usage

You need to install eslint-to-editorconfig globally if you use npm 5.1 or earlier:

npm install -g eslint-to-editorconfig
cd project
eslint-to-editorconfig

Otherwise you can use npx:

cd project
npx eslint-to-editorconfig

For a complete list of available options run:

eslint-to-editorconfig --help

API

const transform = require('eslint-to-editorconfig');

// Take ESLint rules
const eslintRules = {
  indent: 'error',
  'no-trailing-spaces': 'error',
  'eol-last': 'error',
  'max-len': 'error',
};

// Transform them into EditorConfig rules
const editorConfigRules = transform(eslintRules);
console.log(editorConfigRules);

License

This library is released under the ISC license.

Keywords

config

FAQs

Package last updated on 07 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts