-
Notifications
You must be signed in to change notification settings - Fork 37
/
eslint.config.mjs
44 lines (43 loc) · 987 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
36
37
38
39
40
41
42
43
44
import globals from 'globals';
import pluginJs from '@eslint/js';
import stylistic from '@stylistic/eslint-plugin';
import { commonRules } from './eslint.common-rules.mjs';
export default [
pluginJs.configs.recommended,
stylistic.configs.customize({
indent: 2,
quotes: 'single',
semi: true,
jsx: false,
braceStyle: '1tbs',
commaDangle: 'never'
}),
{
ignores: [
'src/assets/*',
'test/lib/*',
'test/spec/main/*',
'test/spec/helpers/*',
'test/*.mjs',
'babel.config.js',
'webpack.dev.config.js',
'webpack.production.config.js'
]
},
{
languageOptions: {
ecmaVersion: 'latest',
globals: {
...globals.browser,
...globals.jasmine,
RMP_VAST_VERSION: 'readonly',
RmpVast: 'readonly',
OmidSessionClient: 'readonly',
Hls: 'readonly',
SimidPlayer: 'readonly',
SimidProtocol: 'readonly'
}
},
...commonRules
}
];