mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
689fd7cb95
We now extend the default Eslint configuration and enforce styling with prettier for all of our frontend code.
46 lines
1.2 KiB
JavaScript
46 lines
1.2 KiB
JavaScript
module.exports = {
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"project": "tsconfig.json"
|
|
},
|
|
"ignorePatterns": "build/*",
|
|
"settings": {
|
|
"import/resolver": {
|
|
"typescript": {}
|
|
}
|
|
},
|
|
"extends": [
|
|
"react-app",
|
|
"plugin:import/errors",
|
|
"plugin:import/warnings",
|
|
"prettier/@typescript-eslint",
|
|
"plugin:prettier/recommended"
|
|
],
|
|
"rules": {
|
|
"import/order": [
|
|
"error",
|
|
{
|
|
"groups": [
|
|
"builtin",
|
|
"external",
|
|
"internal"
|
|
],
|
|
"pathGroups": [
|
|
{
|
|
"pattern": "react",
|
|
"group": "external",
|
|
"position": "before"
|
|
}
|
|
],
|
|
"pathGroupsExcludedImportTypes": [
|
|
"react"
|
|
],
|
|
"newlines-between": "always",
|
|
"alphabetize": {
|
|
"order": "asc",
|
|
"caseInsensitive": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}; |