Skip to content

Commit

Permalink
Changed .eslintrc.js to json
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Ciber94 committed Oct 16, 2023
1 parent ee1fb93 commit b8e09aa
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 34 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

33 changes: 0 additions & 33 deletions .eslintrc.js

This file was deleted.

46 changes: 46 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"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",
"project": [
"./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"
}
}

0 comments on commit b8e09aa

Please sign in to comment.