Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neo9/n9-coding-style
ESLint coding style inspired from ESLint Airbnb Coding style
https://github.com/neo9/n9-coding-style
coding-style tslint typescript
Last synced: 1 day ago
JSON representation
ESLint coding style inspired from ESLint Airbnb Coding style
- Host: GitHub
- URL: https://github.com/neo9/n9-coding-style
- Owner: neo9
- Created: 2019-02-11T13:35:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-13T13:11:51.000Z (about 1 year ago)
- Last Synced: 2024-12-12T07:18:53.441Z (15 days ago)
- Topics: coding-style, tslint, typescript
- Language: JavaScript
- Homepage:
- Size: 645 KB
- Stars: 1
- Watchers: 4
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Neo9 coding style
ESLint coding style inspired from [Airbnb coding style](https://github.com/airbnb/javascript).
:warning: Drop NodeJS 14 support stating with version 5
## Usage
```bash
yarn add @neo9/n9-coding-style --dev
```Add a `.eslintrc.yaml` file in the root directory.
```yaml
extends:
- './node_modules/@neo9/n9-coding-style/.eslintrc.yaml'
```Add a `lint` script to your `package.json` :
```json
{
...
"lint": "eslint --config .eslintrc.yaml '{src,test}/**/*.ts'",
...
}
```Example of usage :
- https://github.com/neo9/n9-node-routing
- https://github.com/neo9/n9-mongo-client## Auto fix errors
EsLint can sometimes auto fix errors.
You can use the local binary.```bash
npx eslint --fix '{src,test}/**/*.ts'
```