forked from nordtheme/hyper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
74 lines (72 loc) · 2.1 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
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
/*
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
title ESLint Configuration +
project nord-hyper +
repository https://github.com/arcticicestudio/nord-hyper +
author Arctic Ice Studio +
email [email protected] +
copyright Copyright (C) 2017 +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[References]
ESLint
(http://eslint.org/docs/user-guide/configuring)
(http://eslint.org/docs/user-guide/configuring#using-configuration-files)
(http://eslint.org/docs/user-guide/configuring#specifying-environments)
(http://eslint.org/docs/rules)
*/
module.exports = {
"env": {
"node": true,
"es6": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"eslint:recommended"
],
"rules": {
// Style Guide
"array-bracket-spacing": ["error", "never"],
"comma-dangle": ["error", "never"],
"curly":["error", "all"],
"func-call-spacing": ["error", "never"],
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"no-duplicate-imports": "error",
"no-tabs": "error",
"no-var": "error",
"quotes": ["error", "double"],
"semi": ["error", "always"],
// Error Prevention
"no-cond-assign": ["error", "always"],
"no-console": "off",
// Code Performance
"global-require": "warn",
// Documentation
"require-jsdoc": ["warn", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": false,
"ClassDeclaration": true,
"ArrowFunctionExpression": false
}
}],
"valid-jsdoc": ["error", {
"prefer": {
"arg": "param",
"argument": "param",
"class": "constructor",
"virtual": "abstract"
},
"requireParamDescription": true,
"requireReturnDescription": true
}]
},
"plugins": [
]
}