Add eslint, prettier, ts-standard

This commit is contained in:
0x1eef 2024-07-12 01:00:04 -03:00
parent bb1d672339
commit 23a2b2f9e8
2 changed files with 25 additions and 1 deletions

18
.eslintrc.js Normal file
View file

@ -0,0 +1,18 @@
module.exports = {
extends: ["standard-with-typescript", "prettier"],
plugins: ["prettier"],
parserOptions: { project: "./tsconfig.json", },
rules: {
"prettier/prettier": [
"error",
{
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"singleQuote": false,
"printWidth": 85,
"arrowParens": "avoid"
}
]
},
};

View file

@ -3,7 +3,9 @@
"version": "0.1.0",
"description": "Delivers the assets of a web page",
"main": "dist/index.js",
"types": ["dist/index.d.ts"],
"types": [
"dist/index.d.ts"
],
"scripts": {
"build": "npm exec tsc",
"prepare": "npm run build"
@ -16,6 +18,10 @@
"license": "0BSDL",
"devDependencies": {
"@types/node": "^16.18",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"ts-standard": "^12.0.2",
"typescript": "^4.5"
}
}