ESLint: AI
eslint-ai is an cli tools that help us to lint and view suggestion from ai if we had a code error with eslint support.
Setup
Get your OPENAI_KEY from OpenAi
You'll have to create a account and get your api key
Set your configuration:
eslint-ai config set OPENAI_KEY=<your key>
eslint-ai config set OPENAI_MODEL=<your model>
eslint-ai config set OPENAI_API_ENDPOINT=<your api endpoint>
eslint-ai config ui
Usage
Recommended
npx eslint-ai
npx eslint-ai <file>
Using global installation
npm install -g eslint-ai
yarn add global eslint-ai
eslint-ai
eslint-ai <file>
Update
To update to the latest version, use:
eslint-ai update
Support
eslint-ai is an MIT-licensed open source project. It can grow thanks to the sponsors and support.
License
eslint-ai is MIT licensed.