Skip to content

Commit

Permalink
fix: eslint add parse options
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandr-g committed Nov 17, 2020
1 parent 94dce94 commit 195cdfe
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,14 @@
"react/jsx-fragments": "off",
// Disable prefer default export
"import/prefer-default-export": "off"
}
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parserOptions": {
"ecmaVersion": 12,
"project": ["./tsconfig.json"]
}
}
]
}
14 changes: 12 additions & 2 deletions template/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
// Disable <Fragment> => <> replacement. Feel free to change
"react/jsx-fragments": "off",
// Disable prefer default export
"import/prefer-default-export": "off"
}
"import/prefer-default-export": "off",
"comma-dangle": "off"
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parserOptions": {
"ecmaVersion": 12,
"project": ["./tsconfig.json"]
}
}
]
}

0 comments on commit 195cdfe

Please sign in to comment.