-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.js
37 lines (35 loc) · 1.1 KB
/
eslint.config.js
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
import globals from 'globals';
import js from '@eslint/js';
export default [
js.configs.recommended,
{
files: ['**/*.js'],
languageOptions: {
ecmaVersion: 12,
sourceType: 'module',
globals: {
...globals.amd,
...globals.browser,
...globals.commonjs,
...globals.es2021,
'$': 'readable',
'__dirname': 'readable',
'Bus': 'readable',
'TruvBridge': 'readable',
'process': 'readable',
'stripe': 'readable',
'Spark': 'readable',
'SparkForm': 'readable',
'Vue': 'readable'
}
},
rules: {
'eol-last': ['error', 'always'],
'indent': ['error', 4, { 'SwitchCase': 1 }],
'no-console': ['error', { allow: ['warn', 'error'] }],
'no-multi-spaces': ['error'],
'quotes': ['error', 'single'],
'semi': ['error', 'always', { 'omitLastInOneLineBlock': true }],
}
}
];