-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yaml
44 lines (44 loc) · 1.21 KB
/
.eslintrc.yaml
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
root: true
extends:
# airbnbは先頭
- airbnb-base
# 以下、pettierは末尾
- prettier
- plugin:prettier/recommended
plugins:
- import
- prettier
env:
es6: true
browser: true
rules:
# ペーストで済むようにJSONにとどめとこう
no-unused-vars: 'warn'
quotes: ['error', 'single', { 'avoidEscape': true }]
no-console: ['error', { allow: ['warn', 'error', 'log', 'dir'] }]
comma-dangle:
[
'error',
{
'arrays': 'always-multiline',
'exports': 'always-multiline',
'functions': 'never',
'imports': 'always-multiline',
'objects': 'always-multiline',
},
]
func-names: ['error', 'never']
space-before-function-paren:
['error', { 'anonymous': 'always', 'named': 'never' }]
wrap-iife: ['error', 'inside']
no-param-reassign: ['error', { 'props': false }]
guard-for-in: 0
no-restricted-syntax: 0
no-constant-condition: ['error', { 'checkLoops': false }]
prefer-destructuring: 0
symbol-description: 0
yoda: [2, 'never', { 'exceptRange': true }]
class-methods-use-this: 0
max-len: ['warn', { 'code': 80 }]
import/no-extraneous-dependencies:
['error', { devDependencies: true, optionalDependencies: false }]