-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathes5.js
More file actions
56 lines (54 loc) · 1.56 KB
/
es5.js
File metadata and controls
56 lines (54 loc) · 1.56 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
/**
|--------------------------------------------------
| JavaScript rules, inherits eslint:recommended
|--------------------------------------------------
**/
const pitcherConfig = require('./pitcher.config')
module.exports = {
extends: ['eslint:recommended'],
globals: {
$: true,
Ti: true,
kendo: true,
$t: true,
},
rules: {
quotes: ['error', 'single', { allowTemplateLiterals: true }],
indent: ['error', pitcherConfig.indent],
semi: ['error', 'always'],
// 'max-len': [
// 'error',
// {
// code: pitcherConfig.printWidth,
// ignoreComments: true,
// ignoreUrls: true,
// },
// ],
'no-unused-vars': 'warn',
'object-curly-spacing': ['error', 'always'],
'space-in-parens': ['error', 'never'],
'array-bracket-spacing': ['error', 'never'],
'space-before-function-paren': [
'error',
{
anonymous: 'never',
named: 'never',
asyncArrow: 'always',
},
],
'no-param-reassign': 'warn',
'default-case': 'error',
'one-var': ['error', 'never'],
// eqeqeq: 'error',
'padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: '*', next: 'return' },
{ blankLine: 'always', prev: ['const', 'let', 'var'], next: '*' },
{ blankLine: 'any', prev: ['const', 'let', 'var'], next: ['const', 'let', 'var'] },
{ blankLine: 'always', prev: 'directive', next: '*' },
{ blankLine: 'any', prev: 'directive', next: 'directive' },
],
'no-prototype-builtins': 'warn',
'no-empty': 'warn',
},
}