1+ {
2+ "env": {
3+ "browser": false,
4+ "node": true,
5+ "es6": true,
6+ "mocha": true
7+ },
8+ "rules": {
9+ //# Possible Errors
10+ //# http://eslint.org/docs/rules/#possible-errors
11+ "comma-dangle": [2, "only-multiline"],
12+ "no-control-regex": 0,
13+ "no-debugger": 2,
14+ "no-dupe-args": 2,
15+ "no-dupe-keys": 2,
16+ "no-duplicate-case": 2,
17+ "no-empty-character-class": 2,
18+ "no-ex-assign": 2,
19+ "no-extra-boolean-cast": 2,
20+ "no-extra-parens": [2, "functions"],
21+ "no-extra-semi": 2,
22+ "no-func-assign": 2,
23+ "no-invalid-regexp": 2,
24+ "no-irregular-whitespace": 2,
25+ "no-obj-calls": 2,
26+ "no-proto": 2,
27+ //"no-template-curly-in-string": 2,
28+ "no-unexpected-multiline": 2,
29+ "no-unreachable": 2,
30+ //"no-unsafe-negation": 2,
31+ "use-isnan": 2,
32+ "valid-typeof": 2,
33+
34+ //# Best Practices
35+ //# http://eslint.org/docs/rules/#best-practices
36+ "no-fallthrough": 2,
37+ //"no-global-assign": 2,
38+ "no-multi-spaces": 2,
39+ "no-octal": 2,
40+ "no-redeclare": 2,
41+ "no-self-assign": 2,
42+ "no-unused-labels": 2,
43+ "max-lines": ["error", 1000],
44+
45+ //# Strict Mode
46+ //# http://eslint.org/docs/rules/#strict-mode
47+ "strict": [2, "global"],
48+
49+ //# Variables
50+ //# http://eslint.org/docs/rules/#variables
51+ "no-delete-var": 2,
52+ "no-undef": 2,
53+ "no-unused-vars": [2, {"args": "none"}],
54+
55+ //# Node.js and CommonJS
56+ //# http://eslint.org/docs/rules/#nodejs-and-commonjs
57+ "no-mixed-requires": 2,
58+ "no-new-require": 2,
59+ "no-path-concat": 2,
60+ "no-restricted-modules": [2, "sys", "_linklist"],
61+
62+ //# Stylistic Issues
63+ //# http://eslint.org/docs/rules/#stylistic-issues
64+ "brace-style": [2, "1tbs", {"allowSingleLine": true}],
65+ "comma-spacing": 2,
66+ "eol-last": 2,
67+ //"func-call-spacing": 2,
68+ "key-spacing": [2, {"mode": "minimum"}],
69+ "keyword-spacing": 2,
70+ "max-len": [2, 150, 2],
71+ "indent": ["error", 4],
72+ "new-parens": 2,
73+ "no-mixed-spaces-and-tabs": 2,
74+ "no-multiple-empty-lines": [2, {"max": 2}],
75+ "no-trailing-spaces": 2,
76+ "quotes": [2, "single", "avoid-escape"],
77+ "semi": 2,
78+ "space-before-blocks": [2, "always"],
79+ "space-before-function-paren": [2, "never"],
80+ "space-in-parens": [2, "never"],
81+ "space-infix-ops": 2,
82+ "space-unary-ops": 2,
83+
84+ //# ECMAScript 6
85+ //# http://eslint.org/docs/rules/#ecmascript-6
86+ "arrow-spacing": [2, {"before": true, "after": true}],
87+ "constructor-super": 2,
88+ "no-class-assign": 2,
89+ "no-confusing-arrow": ["error", {"allowParens": true}],
90+ "no-const-assign": 2,
91+ "no-dupe-class-members": 2,
92+ "no-new-symbol": 2,
93+ "no-this-before-super": 2,
94+ "prefer-const": 2,
95+ "template-curly-spacing": 2
96+ },
97+ "globals": {
98+ "util": true,
99+ "i18n": true,
100+ "container": true
101+ }
102+ }
0 commit comments