Skip to content

Commit 93b4611

Browse files
derbergdamaru-inc
andauthored
feat: use new generic filters (#19)
* feat: use new generic filters * use latest release @asyncapi/generator-filters * Renamed the functions filter - that name doesn't work with the new generator. Co-authored-by: Michael Davis <[email protected]>
1 parent 1920209 commit 93b4611

File tree

8 files changed

+1559
-689
lines changed

8 files changed

+1559
-689
lines changed

.eslintrc

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
env:
2+
node: true
3+
es6: true
4+
5+
parserOptions:
6+
ecmaVersion: 2018
7+
8+
rules:
9+
# Ignore Rules
10+
strict: 0
11+
no-underscore-dangle: 0
12+
no-mixed-requires: 0
13+
no-process-exit: 0
14+
no-warning-comments: 0
15+
curly: 0
16+
no-multi-spaces: 0
17+
no-alert: 0
18+
consistent-return: 0
19+
consistent-this: [0, self]
20+
func-style: 0
21+
max-nested-callbacks: 0
22+
23+
# Warnings
24+
no-debugger: 1
25+
no-empty: 1
26+
no-invalid-regexp: 1
27+
no-unused-expressions: 1
28+
no-native-reassign: 1
29+
no-fallthrough: 1
30+
camelcase: 0
31+
32+
# Errors
33+
eqeqeq: 2
34+
no-undef: 2
35+
no-dupe-keys: 2
36+
no-empty-character-class: 2
37+
no-self-compare: 2
38+
valid-typeof: 2
39+
no-unused-vars: [2, { "args": "none" }]
40+
handle-callback-err: 2
41+
no-shadow-restricted-names: 2
42+
no-new-require: 2
43+
no-mixed-spaces-and-tabs: 2
44+
block-scoped-var: 2
45+
no-else-return: 2
46+
no-throw-literal: 2
47+
no-void: 2
48+
radix: 2
49+
wrap-iife: [2, outside]
50+
no-shadow: 0
51+
no-use-before-define: [2, nofunc]
52+
no-path-concat: 2
53+
valid-jsdoc: [0, {requireReturn: false, requireParamDescription: false, requireReturnDescription: false}]
54+
55+
# stylistic errors
56+
no-spaced-func: 2
57+
semi-spacing: 2
58+
quotes: [2, 'single']
59+
key-spacing: [2, { beforeColon: false, afterColon: true }]
60+
indent: [2, 2]
61+
no-lonely-if: 2
62+
no-floating-decimal: 2
63+
brace-style: [2, 1tbs, { allowSingleLine: true }]
64+
comma-style: [2, last]
65+
no-multiple-empty-lines: [2, {max: 1}]
66+
no-nested-ternary: 2
67+
operator-assignment: [2, always]
68+
padded-blocks: [2, never]
69+
quote-props: [2, as-needed]
70+
keyword-spacing: [2, {'before': true, 'after': true, 'overrides': {}}]
71+
space-before-blocks: [2, always]
72+
array-bracket-spacing: [2, never]
73+
computed-property-spacing: [2, never]
74+
space-in-parens: [2, never]
75+
space-unary-ops: [2, {words: true, nonwords: false}]
76+
wrap-regex: 2
77+
linebreak-style: [2, unix]
78+
semi: [2, always]
79+
arrow-spacing: [2, {before: true, after: true}]
80+
no-class-assign: 2
81+
no-const-assign: 2
82+
no-dupe-class-members: 2
83+
no-this-before-super: 2
84+
no-var: 2
85+
object-shorthand: [2, always]
86+
prefer-arrow-callback: 2
87+
prefer-const: 2
88+
prefer-spread: 2
89+
prefer-template: 2

.tp-config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,8 @@
6868
"description": "The type of artifact that will be generated, either library or application.",
6969
"required": false
7070
}
71-
}
71+
},
72+
"filters": [
73+
"@asyncapi/generator-filters"
74+
]
7275
}

0 commit comments

Comments
 (0)