Skip to content

Commit

Permalink
fix(eslint): Add overrides to eslintrc.json, close #11
Browse files Browse the repository at this point in the history
fix #11
  • Loading branch information
saurabhmehta1601 authored Sep 3, 2021
1 parent 568413c commit a1de127
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions lib/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"extends": ["eslint:recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
Expand All @@ -17,11 +13,21 @@
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"plugins": [],
"rules": {},
"settings": {
"react": {
"version": "detect"
}
}
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"plugins": ["react", "@typescript-eslint"],
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
]
}
]
}

0 comments on commit a1de127

Please sign in to comment.