-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
37 lines (36 loc) · 1.03 KB
/
eslint.config.js
File metadata and controls
37 lines (36 loc) · 1.03 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
const { js } = require('@eslint/js')
module.exports = {
languageOptions: {
ecmaVersion: 2021
, sourceType: 'module'
, globals: {
// Node.js globals
process: 'readonly'
, Buffer: 'readonly'
, __dirname: 'readonly'
, __filename: 'readonly'
, console: 'readonly'
, global: 'readonly'
, module: 'readonly'
, require: 'readonly'
, exports: 'readonly'
}
}
, rules: {
'strict': ['error', 'global']
, 'comma-style': ['error', 'first']
, 'quotes': ['error', 'single']
, 'semi': ['error', 'never']
, 'no-trailing-spaces': 'error'
, 'eol-last': 'error'
, 'no-multiple-empty-lines': ['error', { 'max': 1 }]
, 'object-curly-spacing': ['error', 'always']
, 'array-bracket-spacing': ['error', 'never']
, 'space-before-function-paren': ['error', 'never']
, 'keyword-spacing': 'error'
, 'space-infix-ops': 'error'
, 'comma-spacing': ['error', { 'before': false, 'after': true }]
, 'brace-style': ['error', '1tbs', { 'allowSingleLine': true }]
, 'no-console': 'warn'
}
}