🔧(eslint) update eslint config to make import/order work
The autofix of import/order was not taken into account due to a misconfiguration.
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
"jsx": true
|
||||
}
|
||||
},
|
||||
"plugins": ["formatjs", "@typescript-eslint"],
|
||||
"plugins": ["formatjs", "@typescript-eslint", "import"],
|
||||
/* Disable some rules to be iso with tslint which was previously used */
|
||||
"rules": {
|
||||
"@typescript-eslint/explicit-member-accessibility": ["error", { "accessibility": "no-public" }],
|
||||
@@ -84,6 +84,8 @@
|
||||
},
|
||||
"settings": {
|
||||
"polyfills": ["fetch", "Promise"],
|
||||
"import/resolver": "webpack"
|
||||
"import/resolver": {
|
||||
"typescript": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,10 +7,11 @@
|
||||
"@typescript-eslint/eslint-plugin": "5.47.1",
|
||||
"@typescript-eslint/parser": "5.47.1",
|
||||
"eslint": "8.30.0",
|
||||
"eslint-config-next": "13.1.1",
|
||||
"eslint-config-airbnb": "19.0.4",
|
||||
"eslint-config-airbnb-typescript": "17.0.0",
|
||||
"eslint-config-next": "13.1.1",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
"eslint-import-resolver-typescript": "3.5.3",
|
||||
"eslint-import-resolver-webpack": "0.13.2",
|
||||
"eslint-plugin-compat": "4.0.2",
|
||||
"eslint-plugin-formatjs": "4.3.9",
|
||||
|
||||
Reference in New Issue
Block a user