Skip to content

Commit

Permalink
chore: Update configuration files
Browse files Browse the repository at this point in the history
- Add ESLint configuration
- Update tsconfig.json
- Update package.json scripts
  • Loading branch information
xanaawakens committed Dec 29, 2024
1 parent 20a488e commit 3317c78
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 11 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
],
"scripts": {
"build": "tsc",
"test": "jest",
"lint": "eslint . --ext .ts",
"test": "echo \"No tests specified yet\" && exit 0",
"lint": "eslint \"src/**/*.{js,ts}\" --fix",
"prepublishOnly": "npm run build",
"prepare": "npm run build"
},
Expand Down
17 changes: 8 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@
"compilerOptions": {
"target": "es2020",
"module": "es2020",
"lib": ["es2020"],
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"moduleResolution": "node",
"baseUrl": "./",
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"rootDir": "./src",
"baseUrl": ".",
"paths": {
"*": ["node_modules/*", "src/types/*"]
}
"forceConsistentCasingInFileNames": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "**/*.test.ts"]
"exclude": ["node_modules", "dist", "test"]
}

0 comments on commit 3317c78

Please sign in to comment.