xref: /plugin/structsection/eslint.config.js (revision adc87508697492918d4a7b7ee1db4e7939294965)
1*adc87508SMichael Großeimport {defineConfig} from 'eslint/config';
2*adc87508SMichael Großeimport js from '@eslint/js';
3*adc87508SMichael Große
4*adc87508SMichael Großeexport default defineConfig([
5*adc87508SMichael Große    {
6*adc87508SMichael Große        files: ['**/*.js'],
7*adc87508SMichael Große        extends: ['js/recommended'],
8*adc87508SMichael Große        plugins: {js},
9*adc87508SMichael Große        languageOptions: {
10*adc87508SMichael Große            globals: {
11*adc87508SMichael Große                JSINFO: false,
12*adc87508SMichael Große                LANG: false,
13*adc87508SMichael Große                jQuery: false,
14*adc87508SMichael Große                createPicker: false,
15*adc87508SMichael Große                DOKU_BASE: false,
16*adc87508SMichael Große                pickercounter: true,
17*adc87508SMichael Große                pickerToggle: false,
18*adc87508SMichael Große                pickerInsert: false,
19*adc87508SMichael Große            },
20*adc87508SMichael Große        },
21*adc87508SMichael Große        rules: {
22*adc87508SMichael Große            indent: ['error', 4],
23*adc87508SMichael Große            'no-magic-numbers': ['warn', {'ignore': [0, 1, -1]}],
24*adc87508SMichael Große        }
25*adc87508SMichael Große    }
26*adc87508SMichael Große]);
27