Skip to content
Snippets Groups Projects
Commit f2702f91ee59 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:shirt: prettier, eslint

parent c41bd049bdda
No related branches found
No related tags found
No related merge requests found
Pipeline #117110 failed
......@@ -2,6 +2,7 @@
const config = [
{
ignores: ["**/*.config.cjs"],
plugins: {
jsdoc,
},
......
/** @type {import('prettier').Config} */
const config = {
plugins: [
require.resolve("@prettier/plugin-xml"),
require.resolve("prettier-plugin-toml"),
],
bracketSpacing: false,
printWidth: 88,
proseWrap: "always",
......
......@@ -12,7 +12,7 @@
"Programming Language :: Python :: 3.11",
"Framework :: Odoo",
"Framework :: Odoo :: 18.0",
"License :: OSI Approved :: GNU Affero General Public License v3"
"License :: OSI Approved :: GNU Affero General Public License v3",
]
dependencies = ["odoo==18.0.*"]
......@@ -38,7 +38,7 @@
"/.hgignore",
"/.hgtags",
"/prettier.config.cjs",
"/.yamllint.yaml"
"/.yamllint.yaml",
]
[tool.hatch.build.targets.wheel]
......@@ -51,7 +51,7 @@
"*.xml",
"*.py",
"*.svg",
"*.png"
"*.png",
]
[tool.hatch.build.targets.wheel.sources]
......@@ -68,7 +68,7 @@
"odoo",
"odoo-addons",
"first-party",
"local-folder"
"local-folder",
]
[tool.isort.sections]
......@@ -86,10 +86,10 @@
"B",
"C90",
"E501", # line too long (default 88)
"I", # isort
"UP", # pyupgrade
"I", # isort
"UP", # pyupgrade
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py
......@@ -91,6 +91,6 @@
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py
"__manifest__.py" = ["B018"] # useless expression
"__manifest__.py" = ["B018"] # useless expression
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment