Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adonisjs-community/eslint-plugin-adonis
Eslint plugin for AdonisJS applications and packages.
https://github.com/adonisjs-community/eslint-plugin-adonis
Last synced: 3 months ago
JSON representation
Eslint plugin for AdonisJS applications and packages.
- Host: GitHub
- URL: https://github.com/adonisjs-community/eslint-plugin-adonis
- Owner: adonisjs-community
- License: mit
- Created: 2019-11-29T16:25:39.000Z (about 5 years ago)
- Default Branch: develop
- Last Pushed: 2022-10-18T05:38:47.000Z (over 2 years ago)
- Last Synced: 2024-10-29T01:05:00.399Z (3 months ago)
- Language: JavaScript
- Size: 159 KB
- Stars: 21
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![npm-image]][npm-url] ![][typescript-image] [![license-image]][license-url] [![synk-image]][synk-url]
# Eslint plugin AdonisJS
> Eslint plugin for AdonisJS applications and packages.This repo contains the config for eslint used by the core packages of AdonisJS and recommended for AdonisJS applications as well.
## Installation
You'll first need to install [ESLint](http://eslint.org):
```sh
$ npm i eslint --save-dev
```Next, install `eslint-plugin-adonis`:
```sh
$ npm install eslint-plugin-adonis --save-dev
```> **Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-adonis` globally.
## Usage
Add `adonis` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:### For core or community packages
`adonis/typescriptPackage` must be extended when creating packages for AdonisJS.```json
{
"extends": [
"plugin:adonis/typescriptPackage"
]
}
```### For applications
`adonis/typescriptApp` must be extended when creating AdonisJS application written in Typescript.```json
{
"extends": [
"plugin:adonis/typescriptApp"
]
}
```[npm-image]: https://img.shields.io/npm/v/eslint-plugin-adonis/latest.svg?style=for-the-badge&logo=npm
[npm-url]: https://www.npmjs.com/package/eslint-plugin-adonis/v/alpha "npm"[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
[license-url]: LICENSE.md
[license-image]: https://img.shields.io/github/license/adonisjs-community/eslint-plugin-adonis?style=for-the-badge[synk-image]: https://img.shields.io/snyk/vulnerabilities/github/adonisjs-community/eslint-plugin-adonis?label=Synk%20Vulnerabilities&style=for-the-badge
[synk-url]: https://snyk.io/test/github/adonisjs-community/eslint-plugin-adonis?targetFile=package.json "synk"