Skip to content

Commit

Permalink
Improving eslint and tsconfig files to avoid errors (#328)
Browse files Browse the repository at this point in the history
These changes fix the error that is present in all the `.ts` files of the background package.
  • Loading branch information
chk0912 authored Jan 12, 2023
1 parent 37d12af commit 4c7b046
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 24 deletions.
25 changes: 25 additions & 0 deletions packages/background/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
},
plugins: ['@typescript-eslint'],
ignorePatterns: ['**/*.js', 'test/'],
rules: {
'@typescript-eslint/no-empty-interface': ['warn'],
'@typescript-eslint/await-thenable': ['warn'],
'@typescript-eslint/no-explicit-any': 'off',
},
};
24 changes: 0 additions & 24 deletions packages/background/.eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions packages/background/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"experimentalDecorators": true
},
"include": ["src", "test"],
"exclude": [".eslintrc.js", "test/mocks/sinonChrome.js"],
"ts-node": {
"files": true
}
Expand Down

0 comments on commit 4c7b046

Please sign in to comment.