-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (37 loc) · 895 Bytes
/
.eslintrc.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
module.exports = {
env: {
commonjs: true,
es6: true,
node: true,
},
extends: [
'airbnb-base',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2018,
},
rules: {
/* Coding Style 相關 */
semi: ['error', 'never'], // 結尾分號
'linebreak-style': 0, // 作業系統 LF & CRLF 差異
'array-bracket-spacing': 'warn',
'no-trailing-spaces': 'warn',
'import/order': 'warn',
'eol-last': 'warn',
quotes: ['error', 'single'],
'comma-dangle': 'warn',
'operator-linebreak': 'warn',
'arrow-body-style': 'off',
'react/jsx-one-expression-per-line': 'off',
'object-curly-newline': 'off',
'max-len': 'off',
/* For Testing */
'no-unused-vars': 'off',
'no-console': 'off',
'array-callback-return': ['error', { allowImplicit: true }],
},
}