forked from FontoXML/dita-example-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
39 lines (38 loc) · 907 Bytes
/
Copy patheslint.config.js
File metadata and controls
39 lines (38 loc) · 907 Bytes
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
const configFonto = require('@fontoxml/eslint-config');
const globals = require('globals');
module.exports = [
{
name: 'fontoxml/global-ignores',
ignores: ['platform/**', '**/assets/**'],
},
...configFonto.default,
{
name: 'fontoxml/settings',
settings: {
// Explicitly set the React version because this repository has no
// React dependency. Should be in sync with 'fontoxml-vendors'.
// See: https://www.npmjs.com/package/eslint-plugin-react
react: {
version: '18.2.0',
},
// Mark imports starting with 'fontoxml-' as internal for import
// sorting purposes.
'import/internal-regex': '^fontoxml-',
},
},
{
name: 'fontoxml/config-files-commonjs',
files: [
'./dev-cms/**/*.js',
'./config.js',
'./eslint.config.js',
'./prettier.config.js',
],
languageOptions: {
globals: {
...globals.node,
},
sourceType: 'commonjs',
},
},
];