forked from uikit/uikit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
35 lines (34 loc) · 887 Bytes
/
eslint.config.mjs
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
import eslintJs from '@eslint/js';
import eslintConfigPrettier from 'eslint-config-prettier';
import globals from 'globals';
export default [
eslintJs.configs.recommended,
eslintConfigPrettier,
{
ignores: ['*', '!src/', '!src/*', '!src/js', '!build/', 'build/*', '!build/*.js'],
},
{
rules: {
'no-unused-vars': ['error', { caughtErrors: 'none' }],
},
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.browser,
VERSION: true,
LOG: true,
ICONS: true,
NAME: true,
},
},
},
{
files: ['build/*.js', 'eslint.config.js'],
languageOptions: {
globals: {
...globals.node,
},
},
},
];