Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
Add eslint.
Browse files Browse the repository at this point in the history
  • Loading branch information
Codex- committed Apr 4, 2022
1 parent dba52e7 commit 42caaae
Show file tree
Hide file tree
Showing 3 changed files with 3,130 additions and 43 deletions.
55 changes: 55 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"plugins": ["import", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"airbnb-typescript/base",
"prettier"
],
"ignorePatterns": [
"__fixtures__",
"coverage",
"dist",
"output",
"jest.config.ts"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/no-floating-promises": [
"warn",
{ "ignoreIIFE": true, "ignoreVoid": false }
],
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_" }
],
"@typescript-eslint/no-use-before-define": "off",
"import/order": "warn",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true,
"optionalDependencies": true,
"peerDependencies": true
}
],
"import/prefer-default-export": "off",
"no-console": ["warn"],
"no-plusplus": "off",
"prettier/prettier": "warn",
"radix": ["error", "as-needed"]
},
"overrides": [
{
"files": ["*.spec.ts"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-expressions": "off"
}
}
]
}
Loading

0 comments on commit 42caaae

Please sign in to comment.