Skip to content

Commit

Permalink
Mise à jour eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Jul 15, 2024
1 parent 2166ad9 commit c35e8ab
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";

export default [
{
ignores: ["**/dist/**"],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
{
files: ["**/*.js", "**/*.ts"],
languageOptions: {
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
},
rules: {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
},
},
];

0 comments on commit c35e8ab

Please sign in to comment.