-
-
Notifications
You must be signed in to change notification settings - Fork 942
Expand file tree
/
Copy patheslint.config.mjs
More file actions
40 lines (35 loc) · 1.02 KB
/
eslint.config.mjs
File metadata and controls
40 lines (35 loc) · 1.02 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
import kolibriFormatConfig from 'kolibri-format/eslint.config.mjs';
const CJS_RULES = {
'import-x/no-commonjs': 'off',
'import-x/no-amd': 'off',
'import-x/no-import-module-exports': 'off',
};
export default [
...kolibriFormatConfig,
// Node.js-only packages — remain CommonJS until they migrate to ESM
{
files: [
'packages/browserslist-config-kolibri/**',
'packages/eslint-plugin-kolibri/**',
'packages/kolibri-build/**',
'packages/kolibri-format/**',
'packages/kolibri-glob/**',
'packages/kolibri-i18n/**',
'packages/kolibri-jest-config/**',
'packages/kolibri-logging/**',
'packages/kolibri-tools/**',
'packages/build_kolibri_package.js',
],
rules: CJS_RULES,
},
// Every plugin has a buildConfig.js — blanket exemption for all of them
{
files: ['**/buildConfig.js'],
rules: CJS_RULES,
},
// Auto-generated static files — too numerous to annotate individually
{
files: ['kolibri/**/static/**'],
rules: CJS_RULES,
},
];