Skip to content

Commit

Permalink
fix eslint env
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed Nov 11, 2021
1 parent 2210448 commit 58a2e71
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion eslint-config-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@ module.exports = {
'promise'
],
env: {
es2018: true,
es2020: true,
},
settings: {
'import/extensions': ['.js', '.jsx', '.ts', '.tsx'],
},
overrides: [
{
files: ["*.test.js", "*.test.jsx", "*.test.ts", "*.test.tsx"],
env: {
jest: true,
}
},
{
files: ["*.ts", "*.tsx"],
parser: "@typescript-eslint/parser",
Expand Down

0 comments on commit 58a2e71

Please sign in to comment.