Skip to content

Commit

Permalink
🐛 Fix linting for decorators (by ignoring it)
Browse files Browse the repository at this point in the history
  • Loading branch information
fyrstelin committed May 2, 2022
1 parent 036e4ff commit 63c2e2c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ module.exports = {
'JSXClosingElement',
'JSXText',
'JSXEmptyExpression',
'JSXSpreadChild'
'JSXSpreadChild',
'PropertyDefinition'
]
}
],
Expand Down Expand Up @@ -91,7 +92,7 @@ module.exports = {
},
{
'selector': 'enumMember',
'format': ['PascalCase']
'format': ['PascalCase', 'UPPER_CASE']
},
{
'selector': 'variable',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paralenz/eslint-config-typescript-react",
"version": "1.2.2",
"version": "1.2.3",
"description": "Paralenz eslint configuration for typescript and React",
"main": "index.js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Allowed by GQL
enum Foo {
UPPER_CASE = 1
}
6 changes: 6 additions & 0 deletions tests/indent/two-spaces-with-decorator.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const Field = null!

export class MediaItemsWhereInput {
@Field()
state: string
}

0 comments on commit 63c2e2c

Please sign in to comment.