mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-11-03 19:41:22 +03:00
48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
{
|
|
"root": true,
|
|
"ignorePatterns": ["/build"],
|
|
"env": {
|
|
"es6": true
|
|
},
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"project": "tsconfig.json",
|
|
"sourceType": "module"
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
"prettier"
|
|
],
|
|
"plugins": [
|
|
"@typescript-eslint",
|
|
"eslint-plugin-jsdoc",
|
|
"eslint-plugin-prefer-arrow"
|
|
],
|
|
"rules": {
|
|
"curly": "error",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/explicit-function-return-type": "error",
|
|
"@typescript-eslint/restrict-template-expressions": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{
|
|
"argsIgnorePattern": "^_"
|
|
}
|
|
],
|
|
"@typescript-eslint/naming-convention": [
|
|
"error",
|
|
{
|
|
"selector": ["variable"],
|
|
"format": ["camelCase", "UPPER_CASE"],
|
|
"leadingUnderscore": "allow"
|
|
}
|
|
],
|
|
"@typescript-eslint/prefer-for-of": "off",
|
|
"max-classes-per-file": "off",
|
|
"no-cond-assign": "error"
|
|
}
|
|
}
|