refactor: clean up + add plugin tailwindcss
This commit is contained in:
parent
2a56dedaec
commit
701c3db45d
9
.vscode/settings.json
vendored
9
.vscode/settings.json
vendored
@ -1,9 +0,0 @@
|
||||
{
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"editor.formatOnSave": true,
|
||||
|
||||
"files.exclude": {
|
||||
"node_modules": true,
|
||||
"yarn.lock": true
|
||||
}
|
||||
}
|
21
LICENSE
21
LICENSE
@ -1,21 +0,0 @@
|
||||
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.
|
1
index.js
1
index.js
@ -1,4 +1,5 @@
|
||||
module.exports = {
|
||||
plugins: ['prettier-plugin-tailwindcss'],
|
||||
trailingComma: 'none',
|
||||
jsxSingleQuote: true,
|
||||
semi: false,
|
||||
|
33
package.json
33
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@walidoux/prettier-config",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"description": "Walidoux's Prettier config.",
|
||||
"author": "Walid Korchi",
|
||||
"license": "MIT",
|
||||
@ -19,37 +19,20 @@
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"main": "./index.js",
|
||||
"prettier": "./index.js",
|
||||
"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"
|
||||
"release": "np"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^8.38.0",
|
||||
"eslint": "^8.45.0",
|
||||
"eslint-config-prettier": "^8.8.0",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"husky": "8.0.3",
|
||||
"nano-staged": "^0.8.0",
|
||||
"np": "^7.7.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "^2.8.7"
|
||||
"eslint-plugin-prettier": "^5.0.0",
|
||||
"prettier-plugin-tailwindcss": "0.4.1",
|
||||
"np": "^8.0.4",
|
||||
"prettier": "^2.8.8"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"prettier": ">=2.8.7"
|
||||
|
1990
pnpm-lock.yaml
generated
1990
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user