https://github.com/quickcorp/eslint-config-qcobjects
ESLint Config for QCObjects
https://github.com/quickcorp/eslint-config-qcobjects
Last synced: 10 months ago
JSON representation
ESLint Config for QCObjects
- Host: GitHub
- URL: https://github.com/quickcorp/eslint-config-qcobjects
- Owner: QuickCorp
- Created: 2021-02-14T03:30:52.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-04-25T03:37:31.000Z (about 3 years ago)
- Last Synced: 2025-07-05T10:17:56.325Z (11 months ago)
- Language: JavaScript
- Size: 161 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-config-qcobjects
ESLint Config for QCObjects
## Install
```shell
npm i -D eslint-config-qcobjects
```
**NOTE:** Make sure you have installed QCObjects and ESLint before you use this
To install them
```shell
npm i --save-dev qcobjects eslint
```
## Settings
Create a .eslintrc.json file with this content
```json
{
"extends": [
"qcobjects"
]
}
```
## Extended settings to work with modules
Create a .eslintrc.json file with this content
```json
{
"extends": [
"qcobjects"
],
"ecmaFeatures": {
"modules": true,
"spread" : true,
"restParams" : true
},
"parserOptions": {
"sourceType": "module"
}
}
```
## Include eslint in your test script in package.json
```shell
npx eslint . --fix
```
```json
{
"scripts":{
"test": "npx eslint . --fix"
}
}
```