Skip to content

Commit

Permalink
Update eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
pamella committed May 13, 2024
1 parent c746558 commit 9d2eab5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ const path = require("path");

module.exports = {
root: true,
parser: "@typescript-eslint/parser",
extends: ["vinta/recommended-typescript"],
rules: {
"default-param-last": "off", // due to initialState in Redux
"import/extensions": [
"error",
"ignorePackages",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never",
},
Expand All @@ -21,6 +24,10 @@ module.exports = {
node: true,
},
settings: {
"import/extensions": [".js", ".jsx", ".ts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"],
},
"import/resolver": {
node: {
paths: [path.resolve(__dirname, "node_modules")],
Expand All @@ -30,6 +37,10 @@ module.exports = {
config: path.join(__dirname, "/webpack.config.js"),
"config-index": 1,
},
typescript: {
alwaysTryTypes: true,
project: "./tsconfig.json",
},
},
react: {
version: "detect",
Expand Down

0 comments on commit 9d2eab5

Please sign in to comment.