-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslint-configuration
More file actions
38 lines (37 loc) · 934 Bytes
/
.eslint-configuration
File metadata and controls
38 lines (37 loc) · 934 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
import globals from 'globals';
import js from '@eslint/js';
export default [
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser,
'$': true,
'jQuery': true,
'bootstrap': true,
'moment': true,
'Simplicite': true,
'$T': true,
'$ui': true,
'$app': true,
'$nav': true,
'$grant': true,
'$root': true,
'$tools': true,
'$console': true,
'$view': true,
}
},
rules: {
'indent': ['error', 'tab'],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'no-multiple-empty-lines': ['error', { 'max': 1 }],
'no-multi-spaces': 'error',
'no-trailing-spaces': ['error', { 'skipBlankLines': false }],
'no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }],
'no-console': 'error',
'no-debugger': 'error'
}
}
];