generated from chillerlan/php-library-template-nodocs
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
52 lines (49 loc) · 938 Bytes
/
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
43
44
45
46
47
48
49
50
51
52
import babelParser from '@babel/eslint-parser';
export default [
{
files : ['**/*.js'],
ignores : [
'**/dist/**',
'**/lib/**',
'**/node_modules/**',
],
languageOptions: {
parser : babelParser,
parserOptions: {
sourceType : 'module',
requireConfigFile: false,
babelOptions : {
configFile: './babel.config.json',
},
},
ecmaVersion : 2022,
},
rules : {
'no-console' : 'off',
'no-debugger' : 'off',
'no-unused-vars' : 'off',
'eqeqeq' : 'error',
'no-useless-escape': 'off',
'quotes' : [
'error',
'single',
{
'avoidEscape': false,
},
],
'max-len' : [
2,
{
'code' : 130,
'tabWidth' : 4,
'ignoreUrls' : true,
'ignoreComments': true,
},
],
'curly' : [
'error',
'all',
],
},
},
];