Skip to content

Commit

Permalink
Updated .eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Ciber94 committed Jan 10, 2024
1 parent 3142e02 commit a108134
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 33 deletions.
43 changes: 43 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/** @type {import("eslint").Linter.Config} */
const config = {
root: true,
env: {
browser: true,
es2021: true,
node: true,
},
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script",
},
},
],
ignorePatterns: ["*.test.ts", "**/dist"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
tsconfigRootDir: __dirname,
project: [
"./examples/.*/*/tsconfig.json",
"./examples/*/tsconfig.json",
"./package/tsconfig.json",
"./tsconfig.json",
],
},
plugins: ["@typescript-eslint"],
rules: {
"require-await": "off",
"@typescript-eslint/require-await": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/consistent-type-imports": "error",
},
};

module.exports = config;
33 changes: 0 additions & 33 deletions .eslintrc.json

This file was deleted.

0 comments on commit a108134

Please sign in to comment.