Skip to content

Commit

Permalink
🔧 chore(.eslintrc.json): reformat and optimize ESLint configuration f…
Browse files Browse the repository at this point in the history
…ile for better readability and maintainability
  • Loading branch information
sebpalluel committed Dec 22, 2023
1 parent f3e514f commit f6a0a33
Showing 1 changed file with 14 additions and 45 deletions.
59 changes: 14 additions & 45 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,14 @@
"import/resolver": {
"node": "true",
"typescript": {
"project": [
"apps/*/tsconfig.json",
"libs/*/tsconfig.json"
]
"project": ["apps/*/tsconfig.json", "libs/*/tsconfig.json"]
}
},
"tailwindcss": {
"config": "libs/ui/components/tailwind.config.js"
},
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".tsx"
]
"@typescript-eslint/parser": [".ts", ".tsx"]
}
},
"rules": {
Expand Down Expand Up @@ -68,34 +62,20 @@
},
"overrides": [
{
"files": [
"*"
],
"extends": [
"plugin:sonarjs/recommended"
],
"files": ["*"],
"extends": ["plugin:sonarjs/recommended"],
"rules": {
"sonarjs/cognitive-complexity": "warn",
"sonarjs/no-duplicate-string": "off"
}
},
{
"files": [
"!**/*",
"**/e2e/**/*.spec.ts"
],
"extends": [
"plugin:playwright/recommended"
]
"files": ["!**/*", "**/e2e/**/*.spec.ts"],
"extends": ["plugin:playwright/recommended"]
},
{
"files": [
"*.ts",
"*.tsx"
],
"extends": [
"plugin:@nx/eslint-plugin/typescript"
],
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/eslint-plugin/typescript"],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"import/no-cycle": "off",
Expand All @@ -104,32 +84,21 @@
}
},
{
"files": [
"*.js",
"*.jsx"
],
"extends": [
"plugin:@nx/eslint-plugin/javascript"
],
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/eslint-plugin/javascript"],
"rules": {
"import/no-cycle": "off",
"@typescript-eslint/no-unused-vars": "warn"
}
},
{
"files": [
"*.json"
],
"extends": [
"plugin:json/recommended"
],
"files": ["*.json"],
"extends": ["plugin:json/recommended"],
"rules": {}
},
{
"files": [
"**/*.md"
],
"files": ["**/*.md"],
"processor": "markdown/markdown"
}
]
}
}

0 comments on commit f6a0a33

Please sign in to comment.