diff options
| author | Tom Carrick <tom@carrick.eu> | 2026-04-19 11:54:02 +0300 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-04-19 13:45:56 +0300 |
| commit | 290fefe6f8e47c2f35a9d857749c1e5166d9288b (patch) | |
| tree | 02c3eb6db726d78174d33c254fed0368facea572 /biome.json | |
| parent | 3af5cb17b83eaaea6d4def494269694c009d89c5 (diff) | |
Fixed #35007 -- Replaced ESLint with Biome for JavaScript linting and formatting.
Diffstat (limited to 'biome.json')
| -rw-r--r-- | biome.json | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/biome.json b/biome.json index cc95757f3e..aaf9d31b16 100644 --- a/biome.json +++ b/biome.json @@ -8,7 +8,12 @@ "docs/_theme/**/*.css", "!docs/_theme/djangodocs/static/fontawesome/**", "!docs/_theme/djangodocs/static/reset-fonts-grids.css", - "!**/*.min.css" + "!**/*.min.css", + "django/contrib/admin/static/admin/js/**/*.js", + "!django/contrib/admin/static/admin/js/vendor/**", + "django/contrib/gis/static/gis/js/**/*.js", + "js_tests/**/*.js", + "!**/*.min.js" ] }, "formatter": { @@ -19,17 +24,27 @@ "enabled": true, "rules": { "complexity": { - "noImportantStyles": "off" + "noArguments": "off", + "noImportantStyles": "off", + "noUselessLoneBlockStatements": "off", + "useArrowFunction": "off", + "useIndexOf": "off", + "useOptionalChain": "off" + }, + "correctness": { + "noUnusedFunctionParameters": "off", + "noUnusedVariables": "off", + "useParseIntRadix": "off" }, "style": { - "noDescendingSpecificity": "off" + "noDescendingSpecificity": "off", + "useTemplate": "off" + }, + "suspicious": { + "noRedundantUseStrict": "off" } } }, - "javascript": { - "linter": { "enabled": false }, - "formatter": { "enabled": false } - }, "json": { "linter": { "enabled": false }, "formatter": { "enabled": false } |
