Skip to content

Commit

Permalink
fix: add dirname to config
Browse files Browse the repository at this point in the history
  • Loading branch information
v8tenko committed Apr 9, 2024
1 parent aae40de commit 3d838be
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .eslintrc

This file was deleted.

24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
extends: ['@diplodoc/eslint-config'],
root: true,
overrides: [
{
"files": ["*"],
"rules": {
"@typescript-eslint/no-explicit-any": 2,
"@typescript-eslint/no-namespace": 1,
"no-shadow": "off",
"@typescript-eslint/no-shadow": "off"
}
},
{
files: ['*.ts', '*.tsx'],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
project: ['./tsconfig.transform.json', './tsconfig.json'],
tsconfigRootDir: __dirname,
},
},
],
};

0 comments on commit 3d838be

Please sign in to comment.