module.exports = {
    env: {
        browser: true,
        es2021: true,
    },
    extends: 'google',
    ignorePatterns: [
        'js/src/cleantalk-comments-editscreen.js',
        'js/src/cleantalk-dashboard-widget.js',
        'js/src/cleantalk-public-admin.js',
        'js/src/cleantalk-users-checkspam.js',
        'js/src/cleantalk-users-editscreen.js',
    ],
    overrides: [],
    parserOptions: {
        ecmaVersion: 'latest',
    },
    rules: {
        'indent': ['error', 4],
        'max-len': ['error', {'code': 120}],
        'prefer-const': 'off',
    },
    globals: {
        'ctSetCookie': 'readonly',
    },
};
