Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.26 KB

README.md

File metadata and controls

44 lines (31 loc) · 1.26 KB

ESLint Starter File Generator

Extracts rules from ESLint's List of available rules page and outputs fully-functional, starter ESLint config files with all rules set to 0.

Usage

Install Python.

Install the required packages:

pip install requests
pip install BeautifulSoup4

Go to the directory where eslint-starter-generator.py is located.

Run:

python eslint-starter-generator.py [filetype [filename]]

Valid filetypes are: js, json, yaml

Output for 0 arguments:

.eslintrc.js, .eslintrc.json, and .eslintrc.yaml files will be outputted in the same directory where eslint-starter-generator.py is found.

Output for 1 argument:

A .eslintrc file in js, json, or yaml format, according to user input, will be outputted in the same directory where eslint-starter-generator.py is found.

Output for 2 arguments:

A file with a user-provided name, in js, json, or yaml format according to user input, will be outputted in the same directory where eslint-starter-generator.py is found.


WARNING: If you already have files of the same name as the respective output files in this directory, they WILL be overwritten.