Skip to content

Commit

Permalink
Merge pull request #91 from zotoio/feature/upgrade-eslint
Browse files Browse the repository at this point in the history
fix(build): upgrade eslint
  • Loading branch information
wyvern8 authored Dec 3, 2024
2 parents b770c05 + fe58362 commit 89e7b05
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 117 deletions.
31 changes: 31 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const { ESLint } = require("eslint");

module.exports = [
{
files: ["*.ts", "*.tsx"],
languageOptions: {
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2023,
sourceType: "module",
project: "./tsconfig.json"
}
},
plugins: {
"@typescript-eslint": require("@typescript-eslint/eslint-plugin")
},
rules: {
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/consistent-type-imports": ["error", { prefer: "type-imports" }],
"@typescript-eslint/no-floating-promises": "error",
"no-console": "warn",
"no-debugger": "error"
}
},
{
ignores: ["node_modules/", "dist/", "build/", "coverage/"],
}
];
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"test-bin-install": "yarn build && yarn global bin && yarn global add file:$PWD",
"build-run": "yarn build && node . --dir . | jq -R -r '. as $line | try fromjson catch $line'",
"start-server": "ts-node src/index.ts --mode server",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"lint": "eslint . ",
"lint:fix": "eslint . --fix",
"perftest": "artillery run src/server/configServer.performance.test.yml",
"perftest:cloud": "echo 'expecting env var ARTILLERY_CLOUD_API_KEY from artillery.io' && artillery run src/server/configServer.performance.test.yml --record",
"bats:install": "cd ./cli-testing && ./installBatsTesting.sh",
Expand Down Expand Up @@ -56,14 +56,14 @@
"conventional-changelog-cli": "^5.0.0",
"conventional-recommended-bump": "^10.0.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.38.0",
"eslint": "^9.15.0",
"jest": "^29.7.0",
"rimraf": "^6.0.1",
"semantic-release": "^24.0.0",
"supertest": "^7.0.0",
"ts-jest": "^29.1.4",
"ts-node": "^10.4.0",
"typescript": "^5.4.5"
"typescript": "^5.6.3"
},
"dependencies": {
"@types/body-parser": "^1.19.5",
Expand Down
Loading

0 comments on commit 89e7b05

Please sign in to comment.