-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
36 lines (36 loc) · 931 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
module.exports = {
env: {
// supporting all kind of environment
// to build universal lib
browser: true,
commonjs: true,
es6: true,
node: true,
},
extends: [
'eslint:recommended', // basic eslint rules
'google', // google style guide
'plugin:jest/recommended', // jest support
'plugin:jest/style', // style for jest files
'plugin:jsdoc/recommended', // jsdoc rules to document code
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['json', 'import', 'jsdoc', 'jest'],
ignorePatterns: ['/*', '!src'],
rules: {
'require-jsdoc': 0, // jsdoc is not mandatory on functions
// disable eslint jsdoc internal check, already done by "jsdoc" plugin
'valid-jsdoc': 0,
'max-len': 0, // disable max length check of code lines
},
settings: {
jsdoc: {
preferredTypes: {
object: 'Object',
},
},
},
};