2.0.0 • Published 5 years ago

eslint-to-editorconfig v2.0.0

Weekly downloads
1,354
License
ISC
Repository
github
Last release
5 years ago

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.

2.0.0

5 years ago

1.2.0

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago