https://github.com/eslint/code-explorer
https://github.com/eslint/code-explorer
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eslint/code-explorer
- Owner: eslint
- License: apache-2.0
- Created: 2024-04-02T18:54:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-03T18:27:08.000Z (10 months ago)
- Last Synced: 2025-03-12T06:23:47.053Z (9 months ago)
- Language: TypeScript
- Size: 3.48 MB
- Stars: 23
- Watchers: 9
- Forks: 3
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ESLint Code Explorer
## Overview
This repository contains the source code for the ESLint [Code Explorer](https://explorer.eslint.org). Code Explorer is designed to help developers explore and understand source code to aid in the creation of custom ESLint rules. Each language supported by Code Explorer exposes the same information that ESLint rules have access to.
At a minimum, each language displays the AST for any code that is entered into the editor. You can toggle different parser settings for each language to see how that affects the AST. For JavaScript, you also get to see scope and code path information.
## Installation
To install and set up the project, follow these steps:
1. Ensure you have Node.js v20 installed. You can download it from the [official Node.js website](https://nodejs.org/).
2. Clone the repository to your local machine.
3. Install the project dependencies using npm - `npm install`.
This will install all the necessary packages and dependencies required to run the project.
Once the installation is complete, you can proceed to the next section to get started with running the development server.
## Usage
Run the development server with `npm run start`.
Open [http://localhost:5173](http://localhost:5173) with your browser to see the result.
## Scripts
- `npm run start`: Starts the development server.
- `npm run build`: Builds the app for production.
## Configuration
- The app is configured to use ESLint for linting JavaScript code, with its configuration stored in the `eslint.config.mjs` file.
- The app is also configured to use Prettier for code formatting, with its configuration stored in the `.prettierrc` file.
## License
Apache 2.0
## Credits
- [AST Explorer](https://astexplorer.net) - the original AST visualization tool. We took great inspiration from AST explorer when creating this tool.
- [escope Demo](http://mazurov.github.io/escope-demo/) - the original demo of the [escope](https://github.com/estools/escope) utility that [`eslint-scope`](https://github.com/eslint/js/tree/main/packages/eslint-scope) utility is based on.
## Sponsors
The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate)
to get your logo on our READMEs and [website](https://eslint.org/sponsors).
Platinum Sponsors
Gold Sponsors
Silver Sponsors
Bronze Sponsors
Technology Sponsors
Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work.



