chore: 🔧 lintstaged config and add test files

This commit is contained in:
Gustavo "Guz" L. de Mello
2024-01-18 00:45:04 -03:00
parent b97ca55a68
commit 49832f676a
2 changed files with 26 additions and 21 deletions

4
.lintstagedrc Normal file
View File

@@ -0,0 +1,4 @@
{
"gitDir": "./.git",
"*": "eslint --fix"
}

View File

@@ -1,23 +1,24 @@
{ {
"compilerOptions": { "compilerOptions": {
"checkJs": true, "checkJs": true,
"allowJs": true, "allowJs": true,
"esModuleInterop": true, "esModuleInterop": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"moduleResolution": "node", "moduleResolution": "node",
"skipLibCheck": true, "skipLibCheck": true,
"sourceMap": true, "sourceMap": true,
"strict": true, "strict": true,
"module": "ES2022", "module": "ES2022",
"target": "ES2022", "target": "ES2022",
"alwaysStrict": true "alwaysStrict": true
}, },
"include": [ "include": [
"./src/**/*.js", "./src/**/*.js",
"./eslint.config.js" "./test/**/*.js",
], "./eslint.config.js"
"exclude": [ ],
"./node_modules/**", "exclude": [
".dist" "./node_modules/**",
] ".dist"
]
} }