Skip to content

Commit

Permalink
Various updates and upgrades to lots of packages. (#22)
Browse files Browse the repository at this point in the history
Apply prefer-const.
  • Loading branch information
helly25 authored Sep 1, 2024
1 parent 32d640f commit 5ffcebc
Show file tree
Hide file tree
Showing 8 changed files with 1,261 additions and 698 deletions.
24 changes: 0 additions & 24 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
npm-debug.log
out
.DS_Store
.vscode-test
48 changes: 48 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
const typescriptParser = require('@typescript-eslint/parser');
const typescriptPlugin = require('@typescript-eslint/eslint-plugin');

module.exports = [
{
ignores: ["**/out", "**/dist", "**/*.d.ts"]
},
{
files: [
"src/*.ts",
"src/**/*.ts"
],
ignores: [
"eslint.config.js"
],
plugins: {
"@typescript-eslint": typescriptPlugin
},

languageOptions: {
sourceType: "module",
parser: typescriptParser,
parserOptions: {
ecmaVersion: 2020
}
},

rules: {
"@typescript-eslint/naming-convention": "warn",
curly: "warn",
eqeqeq: "warn",
"no-throw-literal": "warn",
semi: "error",
"prefer-const": "error"
}
},
{
files: [
"src/*.ts",
"src/**/*.ts"
],
languageOptions: {
parserOptions: {
project: ["./tsconfig.json"]
}
}
}
];
Loading

0 comments on commit 5ffcebc

Please sign in to comment.