discord-bot/.eslintrc.json
2022-12-02 21:37:19 +01:00

56 lines
1.2 KiB
JSON

{
"env": {
"es6": true,
"node": true
},
"extends": [
"airbnb-typescript/base",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"import",
"@typescript-eslint"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [
".ts"
]
}
}
},
"rules": {
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/typedef": [ "error", {
"arrowParameter": false
} ],
"@typescript-eslint/unbound-method": [ "off" ],
"import/extensions": [
"error",
{
"ts": "never",
"json": "always"
}
],
"import/no-cycle": "off",
"import/order": [ "error" ],
"import/prefer-default-export": "off",
"no-console": "off",
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
"no-void": "off"
}
}