This repository contains the source code for the ESLint website (https://eslint.org).
In order to run the website, you must have Node.js installed.
- Create a fork of the repository
- Run
npm install
To start a local copy of the website, run:
npm start
To start a local copy of a foreign language website, specify the ESLINT_SITE_NAME
environment variable equal to the name of the site, such as:
ESLINT_SITE_NAME=es npm start
If you'd like to add a new translation of this website, please open an issue first.
In order to create a new translation:
- Copy the
src/_data/sites/en.yml
file to a new site file in the same directory. The filename should be the language code of the language you want to translate into. For example, if you want to translate into Spanish, you should create the filesrc/_data/sites/es.yml
because "es" in the Spanish language code. - Translate the text in the new site file to your chosen language.
- Test it locally to ensure that it works properly using the instructions in the previous section.
- Submit your pull request
The ESLint team will create a new domain name, set up analytics and ads, and otherwise prepare the website for deployment.
Apache 2.0