Skip to content
Snippets Groups Projects
.eslintrc.json 1.13 KiB
{
    "env": {
        "es2021": true,
        "node": true
    },
    "extends": "eslint:recommended",
    "parserOptions": {
        "sourceType": "script",
        "ecmaVersion": 2022
    },
    "rules": {
        "indent": [
            "error",
            4
        ],
        "linebreak-style": "off",
        "quotes": [
            "error",
            "double"
        ],
        "semi": [
            "error",
            "always"
        ],
        "no-inner-declarations": "off",
        "no-useless-escape": "off",
        "require-atomic-updates": "off",
        "strict": [
            "error",
            "global"
        ],
        "eqeqeq": [
            "error",
            "always",
            {
                "null": "ignore"
            }
        ],
        "no-empty": [
            "error",
            {
                "allowEmptyCatch": true
            }
        ],
        "no-extra-parens": "error",
        "brace-style": [ 
            "error", 
            "1tbs"
        ],
        "object-curly-spacing": [ 
            "error",
            "always"
        ]
    },
    "globals": {
        "BigInt": true
    }
}