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",
|
"parser": "@typescript-eslint/parser",
|
||||||
|
"parserOptions": {
|
||||||
|
"tsconfigRootDir": "./",
|
||||||
|
"project": ["./tsconfig.json"]
|
||||||
|
},
|
||||||
"extends": [
|
"extends": [
|
||||||
"airbnb",
|
"airbnb",
|
||||||
"plugin:@typescript-eslint/recommended",
|
"plugin:@typescript-eslint/recommended",
|
||||||
|
@ -15,9 +19,9 @@
|
||||||
"no-restricted-syntax": [
|
"no-restricted-syntax": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
selector: "ForInStatement",
|
"selector": "ForInStatement",
|
||||||
message: "for ... in disallowed, use for ... of instead",
|
"message": "for ... in disallowed, use for ... of instead"
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
"no-underscore-dangle": "off",
|
"no-underscore-dangle": "off",
|
||||||
|
@ -53,7 +57,6 @@
|
||||||
"import/prefer-default-export": "off",
|
"import/prefer-default-export": "off",
|
||||||
"@typescript-eslint/no-misused-promises": ["error"],
|
"@typescript-eslint/no-misused-promises": ["error"],
|
||||||
"@typescript-eslint/no-floating-promises": ["error"]
|
"@typescript-eslint/no-floating-promises": ["error"]
|
||||||
|
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"import/parsers": {
|
"import/parsers": {
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.0.4",
|
"@types/node": "^18.0.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.17.0",
|
"@typescript-eslint/eslint-plugin": "^5.17.0",
|
||||||
"@typescript-eslint/parser": "^5.17.0",
|
"@typescript-eslint/parser": "^5.30.7",
|
||||||
"clean-publish": "^4.0.1",
|
"clean-publish": "^4.0.1",
|
||||||
"eslint": "8.15.0",
|
"eslint": "8.15.0",
|
||||||
"eslint-config-airbnb": "^19.0.4",
|
"eslint-config-airbnb": "^19.0.4",
|
||||||
|
@ -82,4 +82,4 @@
|
||||||
"url": "https://github.com/saleor/saleor-app-sdk/issues"
|
"url": "https://github.com/saleor/saleor-app-sdk/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/saleor/saleor-app-sdk#readme"
|
"homepage": "https://github.com/saleor/saleor-app-sdk#readme"
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ lockfileVersion: 5.4
|
||||||
specifiers:
|
specifiers:
|
||||||
'@types/node': ^18.0.4
|
'@types/node': ^18.0.4
|
||||||
'@typescript-eslint/eslint-plugin': ^5.17.0
|
'@typescript-eslint/eslint-plugin': ^5.17.0
|
||||||
'@typescript-eslint/parser': ^5.17.0
|
'@typescript-eslint/parser': ^5.30.7
|
||||||
clean-publish: ^4.0.1
|
clean-publish: ^4.0.1
|
||||||
eslint: 8.15.0
|
eslint: 8.15.0
|
||||||
eslint-config-airbnb: ^19.0.4
|
eslint-config-airbnb: ^19.0.4
|
||||||
|
|
Loading…
Reference in a new issue