-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
42 lines (40 loc) · 2.11 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
37
38
39
40
41
42
import js from '@eslint/js';
export default [
js.configs.recommended,
{
ignores : [ 'scripts/exlibris-template-cache-code.txt' ],
languageOptions : {
ecmaVersion : 'latest',
},
rules : {
// ESlint only
'indent' : [ 'error', 4 ],
'quotes' : [ 'error', 'single' ],
// Shared with Vue
'array-bracket-newline' : [ 'error', 'consistent' ],
'array-bracket-spacing' : [ 'error', 'always' ],
'array-element-newline' : [ 'error', 'consistent' ],
'arrow-spacing' : [ 'error', { 'before' : true, 'after' : true } ],
'block-spacing' : [ 'error', 'always' ],
'brace-style' : [ 'error', '1tbs' ],
'comma-dangle' : [ 'error', 'always-multiline' ],
'comma-spacing' : [ 'error', { 'before' : false, 'after' : true } ],
'comma-style' : [ 'error', 'last' ],
'dot-location' : [ 'error', 'property' ],
'func-call-spacing' : [ 'error', 'never' ],
'key-spacing' : [ 'error', { afterColon : true, align : 'colon', beforeColon : true } ],
'keyword-spacing' : [ 'error', { before : true } ],
'max-len' : [ 'warn', { code : 80, tabWidth : 4 } ],
'multiline-ternary' : [ 'error', 'always-multiline' ],
'no-extra-parens' : [ 'error', 'all' ],
'object-curly-newline' : [ 'error', { multiline : true, consistent : true } ],
'object-curly-spacing' : [ 'error', 'always' ],
'object-property-newline' : [ 'error', { allowAllPropertiesOnSameLine : true } ],
'operator-linebreak' : [ 'error', 'after' ],
'space-in-parens' : [ 'error', 'always' ],
'space-infix-ops' : [ 'error' ],
'space-unary-ops' : [ 'error', { words : true, nonwords : false } ],
'template-curly-spacing' : [ 'error', 'always' ],
},
},
];