feat: 🚀 initial commit

This commit is contained in:
Walid 2022-08-26 17:31:31 +01:00
commit 934e5477fe
No known key found for this signature in database
GPG Key ID: 7DF9215FC4E48853
9 changed files with 3659 additions and 0 deletions

3
.eslintignore Normal file
View File

@ -0,0 +1,3 @@
.DS_Store
node_modules
*.log

4
.eslintrc Normal file
View File

@ -0,0 +1,4 @@
{
"extends": ["plugin:prettier/recommended", "prettier"],
"plugins": ["prettier"]
}

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.DS_Store
node_modules
*.log

9
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,9 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"files.exclude": {
"node_modules": true,
"yarn.lock": true
}
}

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 Walid Korchi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

21
README.md Normal file
View File

@ -0,0 +1,21 @@
# @walidoux/prettier-config
⚙️ Walidoux's Prettier config.
[![npm](https://img.shields.io/npm/v/@walidoux/prettier-config?color=%230cf)](https://www.npmjs.com/package/@walidoux/prettier-config)[![license](https://img.shields.io/github/license/walidoux/prettier-config?color=%2385f)](https://github.com/walidoux/prettier-config/blob/main/LICENSE)
## Installation
```bash
YARN ➜ yarn add -D prettier @walidoux/prettier-config
NPM ➜ npm install --save-dev prettier @walidoux/prettier-config
```
## Usage
Add it to your project inside `package.json`'s file.
```json
{ "prettier": "@walidoux/prettier-config" }
```

11
index.js Normal file
View File

@ -0,0 +1,11 @@
module.exports = {
extends: ['conventions', 'prettier'],
plugins: ['prettier'],
env: {
node: true,
browser: true
},
rules: {
'prettier/prettier': 'error'
}
}

70
package.json Normal file
View File

@ -0,0 +1,70 @@
{
"name": "@walidoux/eslint-config",
"version": "1.0.0",
"description": "Walidoux's Eslint config.",
"author": "Walid Korchi",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/walidoux/eslint-config"
},
"homepage": "https://github.com/walidoux/eslint-config/#readme",
"bugs": {
"email": "contact@walidkorchi.com",
"url": "https://github.com/Walidoux/eslint-config/issues"
},
"keywords": [
"eslint",
"conventions",
"config"
],
"files": [
"index.js"
],
"main": "index.js",
"prettier": "@walidoux/prettier-config",
"husky": {
"hooks": {
"pre-commit": "nano-staged"
}
},
"nano-staged": {
"**/*.js": [
"eslint --fix",
"prettier --ignore-path .eslintignore --write"
],
"**/*.{json,md,yml}": [
"prettier --ignore-path .eslintignore --write"
]
},
"scripts": {
"lint:eslint": "eslint '**/*.js' --fix",
"lint:prettier": "prettier '**/*.{js,json,md,yml}' --ignore-path .eslintignore --write --loglevel silent",
"lint-all": "npm-run-all lint:*",
"release": "npm login && npm publish"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.35.1",
"@typescript-eslint/parser": "^5.35.1",
"eslint": "^8.22.0",
"eslint-config-conventions": "^3.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-unicorn": "^43.0.2",
"husky": "8.0.1",
"nano-staged": "^0.8.0",
"np": "^7.6.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
"typescript": "^4.8.2"
},
"peerDependencies": {
"eslint": ">=8.22.0",
"prettier": ">=2.7.1"
},
"publishConfig": {
"access": "public"
}
}

3517
yarn.lock Normal file

File diff suppressed because it is too large Load Diff