-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.yaml
74 lines (61 loc) · 1.83 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
root: true
# Refer to docs/javascript/README.md for detail
extends: airbnb
plugins:
- "vue"
- "html"
env:
browser: true
amd: true
mocha: true
# These globals should not be enabled in production code.
# Not all browsers support es6 globals, and none of them support node globals.
node: false
es6: false
# DO NOT ADD any values to this list without thorough browser compatibility review.
globals:
Uint8Array: true
rules:
no-multi-assign:
- off
no-restricted-globals:
- error
# It is not supported in IE. Please use 'bluebird' library instead.
- Promise
# Use 'windows' linebreak
linebreak-style:
- off
# Enforce valid JSDoc comments whenever we have it in the code.
valid-jsdoc:
- error
# Only used to flag the static method, but can not be forced
class-methods-use-this: 0
# Require to have function name: http://eslint.org/docs/rules/func-names
func-names:
- error
- as-needed
# For consistent, we prefer to import the module with import { SomeThing } from SomeThing,
# which will make sure named import as exported name.
import/prefer-default-export: 0
# Ensure consistent use of file extension within the import path
# https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md
import/extensions:
- error
- always
- js: never
jsx: never
es: never
# Disable trailing comma for function declaration and function calls due to jsdoc syntax requirement
comma-dangle:
- error
- arrays: always-multiline
objects: always-multiline
imports: ignore
exports: ignore
functions: never
react/jsx-filename-extension:
- 1
- extensions:
- ".js"
- ".jsx"