Skip to content

Commit

Permalink
chore: updates and migrate eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Yizack committed Jun 19, 2024
1 parent c9a606b commit ea5caf2
Show file tree
Hide file tree
Showing 5 changed files with 2,981 additions and 2,509 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

29 changes: 0 additions & 29 deletions .eslintrc.cjs

This file was deleted.

31 changes: 31 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import eslint from "@eslint/js";

export default [
{
files: ["**/*.js"],
ignores: [
"node_modules/**/*",
"build/**/*",
"dist/**/*",
".output/**/*",
"docs/**/*",
],
rules: {
...eslint.configs.recommended.rules,
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "windows"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"camelcase": "off",
"arrow-spacing": ["error", { "before": true, "after": true }],
"no-console": ["error", {
"allow": ["info", "warn"]
}],
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"no-multi-spaces": "error",
"space-before-blocks": "error",
"no-trailing-spaces": "error",
"no-undef": "off"
}
}
];
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,20 @@
"vercel:dev": "(rm -rf docs || rd /s /q docs) && vercel dev",
"test": "vitest run --reporter=verbose --coverage",
"docs": "jsdoc -c jsdoc.conf.json -r",
"lint": "eslint --ext .ts,.js --fix --ignore-path .gitignore ."
"lint": "eslint --fix"
},
"devDependencies": {
"@vitest/coverage-v8": "^1.2.2",
"clean-jsdoc-theme": "^4.2.17",
"dotenv": "^16.4.1",
"eslint": "^8.56.0",
"express": "^4.18.2",
"@vitest/coverage-v8": "^1.6.0",
"clean-jsdoc-theme": "^4.3.0",
"dotenv": "^16.4.5",
"eslint": "^9.5.0",
"express": "^4.19.2",
"hbs": "^4.2.0",
"jsdoc": "^4.0.2",
"ofetch": "^1.3.3",
"supertest": "^6.3.4",
"vercel": "^33.4.1",
"vitest": "^1.2.2"
}
"jsdoc": "^4.0.3",
"ofetch": "^1.3.4",
"supertest": "^7.0.0",
"vercel": "^34.2.7",
"vitest": "^1.6.0"
},
"packageManager": "pnpm@9.4.0"
}
Loading

0 comments on commit ea5caf2

Please sign in to comment.