Configure eslint ts parser
This commit is contained in:
parent
cd039517d2
commit
c48f02ca6f
3 changed files with 10 additions and 7 deletions
11
.eslintrc
11
.eslintrc
|
@ -1,5 +1,9 @@
|
|||
{
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"tsconfigRootDir": "./",
|
||||
"project": ["./tsconfig.json"]
|
||||
},
|
||||
"extends": [
|
||||
"airbnb",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
|
@ -15,9 +19,9 @@
|
|||
"no-restricted-syntax": [
|
||||
"error",
|
||||
{
|
||||
selector: "ForInStatement",
|
||||
message: "for ... in disallowed, use for ... of instead",
|
||||
},
|
||||
"selector": "ForInStatement",
|
||||
"message": "for ... in disallowed, use for ... of instead"
|
||||
}
|
||||
],
|
||||
|
||||
"no-underscore-dangle": "off",
|
||||
|
@ -53,7 +57,6 @@
|
|||
"import/prefer-default-export": "off",
|
||||
"@typescript-eslint/no-misused-promises": ["error"],
|
||||
"@typescript-eslint/no-floating-promises": ["error"]
|
||||
|
||||
},
|
||||
"settings": {
|
||||
"import/parsers": {
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
"devDependencies": {
|
||||
"@types/node": "^18.0.4",
|
||||
"@typescript-eslint/eslint-plugin": "^5.17.0",
|
||||
"@typescript-eslint/parser": "^5.17.0",
|
||||
"@typescript-eslint/parser": "^5.30.7",
|
||||
"clean-publish": "^4.0.1",
|
||||
"eslint": "8.15.0",
|
||||
"eslint-config-airbnb": "^19.0.4",
|
||||
|
@ -82,4 +82,4 @@
|
|||
"url": "https://github.com/saleor/saleor-app-sdk/issues"
|
||||
},
|
||||
"homepage": "https://github.com/saleor/saleor-app-sdk#readme"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ lockfileVersion: 5.4
|
|||
specifiers:
|
||||
'@types/node': ^18.0.4
|
||||
'@typescript-eslint/eslint-plugin': ^5.17.0
|
||||
'@typescript-eslint/parser': ^5.17.0
|
||||
'@typescript-eslint/parser': ^5.30.7
|
||||
clean-publish: ^4.0.1
|
||||
eslint: 8.15.0
|
||||
eslint-config-airbnb: ^19.0.4
|
||||
|
|
Loading…
Reference in a new issue