Skip to content

Commit

Permalink
update to eslint.config
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Dec 2, 2024
1 parent 6a9b587 commit dd6854d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .eslintrc.json

This file was deleted.

28 changes: 28 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";

export default [{
files: ["**/*.ts"],

plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
parser: tsParser,
ecmaVersion: 6,
sourceType: "module",
},

rules: {
"@typescript-eslint/naming-convention": ["warn", {
selector: "typeLike",
format: ["PascalCase"],
}],

curly: "warn",
eqeqeq: "warn",
"no-throw-literal": "warn",
semi: "off",
},
}];

0 comments on commit dd6854d

Please sign in to comment.