-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
36 lines (33 loc) · 831 Bytes
/
.eslintrc.js
File metadata and controls
36 lines (33 loc) · 831 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
'use strict';
const isDev = process.env.NODE_ENV === 'development';
/** @type {import('@types/eslints').Linter.Config} */
module.exports = {
root: true,
parserOptions: {
sourceType: 'script',
ecmaVersion: 12
},
extends: [
'semistandard'
],
rules: {
strict: ['error', 'safe'],
indent: ['error', 2, {
SwitchCase: 1,
MemberExpression: 'off'
}],
'arrow-parens': ['error', 'as-needed'],
// TODO: Remove this after all error reports get resolved!
'prefer-const': 'off',
'comma-dangle': ['warn', 'never'],
'no-debugger': isDev ? 'warn' : 'error',
'no-unreachable': isDev ? 'warn' : 'error',
'space-before-function-paren': ['error', {
anonymous: 'always',
named: 'never'
}],
'sort-imports': ['error', {
ignoreCase: true
}]
}
};