Skip to content

Commit 8808a47

Browse files
author
Uku Pattak
committed
Start extending zt base eslint config
1 parent 2d6cda3 commit 8808a47

File tree

2 files changed

+4
-158
lines changed

2 files changed

+4
-158
lines changed

.eslintrc

Lines changed: 3 additions & 158 deletions
Original file line numberDiff line numberDiff line change
@@ -1,161 +1,6 @@
11
{
2-
"ecmaFeatures": {
3-
"experimentalObjectRestSpread": true
4-
},
2+
"extends": "zt/base",
53
"env": {
6-
"browser": true,
7-
"node": true,
8-
"jasmine": true,
9-
"es6": true
10-
},
11-
"rules": {
12-
"comma-dangle": 0,
13-
"no-cond-assign": 2,
14-
"no-console": 2,
15-
"no-constant-condition": 2,
16-
"no-control-regex": 2,
17-
"no-debugger": 2,
18-
"no-dupe-args": 2,
19-
"no-dupe-keys": 2,
20-
"no-duplicate-case": 2,
21-
"no-empty": 2,
22-
"no-empty-character-class": 2,
23-
"no-ex-assign": 2,
24-
"no-extra-boolean-cast": 2,
25-
"no-extra-semi": 2,
26-
"no-func-assign": 2,
27-
"no-inner-declarations": 2,
28-
"no-invalid-regexp": 2,
29-
"no-irregular-whitespace": 2,
30-
"no-negated-in-lhs": 2,
31-
"no-obj-calls": 2,
32-
"no-regex-spaces": 2,
33-
"no-sparse-arrays": 2,
34-
"no-unexpected-multiline": 2,
35-
"no-unreachable": 2,
36-
"no-unsafe-finally": 2,
37-
"use-isnan": 2,
38-
"valid-jsdoc": 0,
39-
"valid-typeof": 2,
40-
"array-callback-return": 2,
41-
"curly": 2,
42-
"default-case": 2,
43-
"dot-location": [2, "property"],
44-
"dot-notation": [2, { "allowKeywords": true }],
45-
"eqeqeq": 2,
46-
"guard-for-in": 2,
47-
"no-alert": 2,
48-
"no-caller": 2,
49-
"no-case-declarations": 2,
50-
"no-div-regex": 2,
51-
"no-empty-pattern": 2,
52-
"no-eval": 2,
53-
"no-extend-native": 2,
54-
"no-extra-bind": 2,
55-
"no-extra-label": 2,
56-
"no-fallthrough": 2,
57-
"no-floating-decimal": 2,
58-
"no-implicit-coercion": [2, { "allow": ["!!"] }],
59-
"no-implicit-globals": 2,
60-
"no-implied-eval": 2,
61-
"no-iterator": 2,
62-
"no-labels": 2,
63-
"no-lone-blocks": 2,
64-
"no-loop-func": 2,
65-
"no-multi-spaces": 2,
66-
"no-multi-str": 2,
67-
"no-native-reassign": 2,
68-
"no-new": 2,
69-
"no-new-func": 2,
70-
"no-new-wrappers": 2,
71-
"no-octal": 2,
72-
"no-octal-escape": 2,
73-
"no-proto": 2,
74-
"no-return-assign": 2,
75-
"no-script-url": 2,
76-
"no-self-assign": 2,
77-
"no-self-compare": 2,
78-
"no-sequences": 2,
79-
"no-unmodified-loop-condition": 2,
80-
"no-unused-expressions": 2,
81-
"no-unused-labels": 2,
82-
"no-useless-call": 2,
83-
"no-useless-concat": 2,
84-
"no-useless-escape": 2,
85-
"no-void": 2,
86-
"no-with": 2,
87-
"radix": 2,
88-
"wrap-iife": 2,
89-
"yoda": 2,
90-
"no-catch-shadow" : 2,
91-
"no-delete-var": 2,
92-
"no-label-var": 2,
93-
"no-restricted-globals": 2,
94-
"no-shadow-restricted-names": 2,
95-
"no-undef": 2,
96-
"no-undef-init": 2,
97-
"no-unused-vars": 2,
98-
"no-use-before-define": [2, "nofunc"],
99-
"array-bracket-spacing": [2, "never"],
100-
"block-spacing": [2, "never"],
101-
"brace-style": [2, "stroustrup", { "allowSingleLine": true }],
102-
"comma-spacing": [2, { "before": false, "after": true }],
103-
"comma-style": [2, "last"],
104-
"computed-property-spacing": [2, "never"],
105-
"eol-last": 2,
106-
"indent": [2, 4, {"SwitchCase": 1}],
107-
"jsx-quotes": [2, "prefer-double"],
108-
"key-spacing": 2,
109-
"keyword-spacing": 2,
110-
"linebreak-style": [2, "unix"],
111-
"max-len": [2, 140, 4],
112-
"max-params": [2, 11],
113-
"no-array-constructor": 2,
114-
"no-bitwise": 2,
115-
"no-continue": 2,
116-
"no-lonely-if": 2,
117-
"no-mixed-spaces-and-tabs": 2,
118-
"no-multiple-empty-lines": [2, {"max": 1}],
119-
"no-new-object": 2,
120-
"no-spaced-func": 2,
121-
"no-trailing-spaces": 2,
122-
"no-underscore-dangle": 0,
123-
"no-unneeded-ternary": 2,
124-
"no-whitespace-before-property": 2,
125-
"object-curly-spacing": [2, "never"],
126-
"one-var": [2, "never"],
127-
"operator-linebreak": [2, "after"],
128-
"padded-blocks": [2, {
129-
"blocks": "never",
130-
"classes": "never",
131-
"switches": "never"
132-
}],
133-
"quotes": [2, "double", { "allowTemplateLiterals": true }],
134-
"semi": 2,
135-
"semi-spacing": [2, { "before": false, "after": true }],
136-
"space-before-blocks": 2,
137-
"space-before-function-paren": [2, "never"],
138-
"space-in-parens": [2, "never"],
139-
"space-infix-ops": 2,
140-
"spaced-comment": 2,
141-
"wrap-regex": 2,
142-
"arrow-spacing": 2,
143-
"constructor-super": 2,
144-
"no-class-assign": 2,
145-
"no-confusing-arrow": 2,
146-
"no-const-assign": 2,
147-
"no-dupe-class-members": 2,
148-
"no-duplicate-imports": 2,
149-
"no-new-symbol": 2,
150-
"no-this-before-super": 2,
151-
"no-useless-computed-key": 2,
152-
"no-useless-constructor": 2,
153-
"no-var": 2,
154-
"prefer-const": 2,
155-
"prefer-rest-params": 2,
156-
"prefer-spread": 2,
157-
"require-yield": 2,
158-
"template-curly-spacing": [2, "never"],
159-
},
160-
"parser": "babel-eslint"
4+
"jest": true
5+
}
1616
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"babel-preset-es2015": "^6.14.0",
6060
"cross-env": "^3.1.3",
6161
"eslint": "^3.1.1",
62+
"eslint-config-zt": "^1.3.0",
6263
"jest": "^17.0.2",
6364
"rimraf": "^2.3.4",
6465
"webpack": "^1.13.1"

0 commit comments

Comments
 (0)