Skip to content

Commit

Permalink
Merge pull request #622 from appsignal/use-eslint
Browse files Browse the repository at this point in the history
Use ESLint
  • Loading branch information
unflxw authored Mar 8, 2022
2 parents ae012e7 + a30559e commit d159543
Show file tree
Hide file tree
Showing 44 changed files with 2,488 additions and 350 deletions.
File renamed without changes.
49 changes: 49 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
module.exports = {
env: {
es2018: true,
node: true,
jest: true
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended"
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module"
},
plugins: ["@typescript-eslint", "prettier", "jest"],
rules: {
"@typescript-eslint/ban-types": [
"error",
{
types: {
Function: false
}
}
],
"@typescript-eslint/no-empty-function": [
"error",
{
allow: ["arrowFunctions"]
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_"
}
],
"@typescript-eslint/no-var-requires": "off",
"jest/expect-expect": [
"warn",
{
assertFunctionNames: ["expect*"]
}
]
}
}
Loading

0 comments on commit d159543

Please sign in to comment.