forked from material-components/material-components-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yaml
47 lines (46 loc) · 1.15 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
extends: google
globals:
goog: false
env:
browser: true
plugins:
- tape
parserOptions:
ecmaVersion: 2015
sourceType: module
rules:
max-len: [error, 120]
no-new: warn
quotes: [error, single, {"avoidEscape": true}]
no-var: error
curly: error
no-floating-decimal: error
no-unused-vars: error
# Disabling jsdoc rules for the time being, but should be discussed as to whether or not this is
# something we should add in. For closure compatibility, we can investigate using something like
# https://github.com/angular/tsickle with .dts files.
require-jsdoc: off
valid-jsdoc: off
prefer-const: error
# tape rules
# see: https://github.com/atabel/eslint-plugin-tape/blob/master/index.js
tape/assertion-message:
- off
- always
tape/max-asserts:
- off
- 5
tape/no-identical-title: error
tape/no-ignored-test-files: error
tape/no-only-test: error
tape/no-skip-assert: error
tape/no-skip-test: error
tape/no-statement-after-end: error
tape/no-unknown-modifiers: error
tape/test-ended: error
tape/test-title:
- error
- if-multiple
tape/use-t-well: error
tape/use-t: error
tape/use-test: error