forked from actions-on-google-labs/nightingale-ssml-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
46 lines (46 loc) · 1.34 KB
/
.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
39
40
41
42
43
44
45
46
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2017,
},
env: {
es6: true,
browser: true,
},
plugins: [
'@typescript-eslint',
'polymer',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'google',
'plugin:polymer/polymer-3',
],
rules: {
'@typescript-eslint/explicit-module-boundary-types': 'error',
// SSML tag modules may have empty onOpen function
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-empty-interface': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-inferrable-types': 'error',
// document.getElementById returns nullable HTML element,
// which requires an assertion that the element exists
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-var-requires': 'error',
'arrow-parens': 'warn',
'comma-dangle': 'error',
'comma-spacing': 'error',
'eol-last': 'error',
'key-spacing': 'warn',
'indent': 'warn',
'max-len': 'warn',
'no-case-declarations': 'off',
'no-undef': 'warn',
'object-curly-spacing': 'off',
'quotes': 'error',
'require-jsdoc': 'off',
'semi': 'off'
}
};