Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Ciber94 committed Feb 17, 2024
2 parents 4abbb70 + a108134 commit 4d15a7d
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 35 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.

6 changes: 4 additions & 2 deletions package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@
],
"dependencies": {
"eventsource-parser": "^1.1.1",
"react": "^18.2.0"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18.2.28"
},
"peerDependencies": {
"react": ">=18"
},
"exports": {
"./package.json": "./package.json",
".": {
Expand Down Expand Up @@ -58,4 +60,4 @@
"README.md",
"./package.json"
]
}
}

0 comments on commit 4d15a7d

Please sign in to comment.