aboutsummaryrefslogtreecommitdiff
path: root/bot/eslint.config.js
blob: e9901f857b9a3c56551ee072d07abe9b8a38cf24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import globals from 'globals';
import pluginJs from '@eslint/js';
import stylisticJs from '@stylistic/eslint-plugin-js';


/** @type {import('eslint').Linter.Config[]} */
export default [
    {
        languageOptions: {
            ecmaVersion: 'latest',
            sourceType: 'module',
            globals: globals.node
        },

        plugins: {
            '@stylistic/js': stylisticJs
        },

        rules: {
            '@stylistic/js/quotes': ['error', 'single'],
            '@stylistic/js/semi-style': ['error', 'last'],
            '@stylistic/js/semi': ['error', 'always'],
            '@stylistic/js/indent': ['error', 4],
            'require-await': 'error'
        }
    },
    pluginJs.configs.recommended,
];