Skip to content

Commit

Permalink
Update .eslintrc.json
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaellis committed Mar 19, 2021
2 parents 932021a + 6bef9ab commit 8922673
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,14 @@
"import/namespace": "off",
"import/default": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-unused-vars": ["warn"],
"no-unused-vars": ["off"],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"jest/consistent-test-it": ["error", { "fn": "it", "withinDescribe": "it" }]
"@typescript-eslint/no-explicit-any": "off"
},
"settings": {
"react": {
Expand All @@ -67,6 +66,15 @@
"parserOptions": {
"project": ["./tsconfig.json", "./storybook/tsconfig.json"]
}
},
{
// enable the rule specifically for TypeScript files
"files": ["*.ts", "*.tsx"],
"rules": {
"no-var": "error",
"@typescript-eslint/explicit-function-return-type": ["error", { "allowHigherOrderFunctions": true }],
"@typescript-eslint/explicit-member-accessibility": ["error", { "overrides": { "constructors": "no-public" } }]
}
}
]
}

0 comments on commit 8922673

Please sign in to comment.