mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-23 18:04:34 +00:00
Update repository to get version 19.0 from oca-addons-repo-template
This commit is contained in:
+4
-3
@@ -1,9 +1,10 @@
|
|||||||
# Do NOT update manually; changes here will be overwritten by Copier
|
# Do NOT update manually; changes here will be overwritten by Copier
|
||||||
_commit: v1.22
|
_commit: v1.35
|
||||||
_src_path: https://github.com/OCA/oca-addons-repo-template.git
|
_src_path: https://github.com/OCA/oca-addons-repo-template.git
|
||||||
additional_ruff_rules: []
|
additional_ruff_rules: []
|
||||||
ci: GitHub
|
ci: GitHub
|
||||||
convert_readme_fragments_to_markdown: true
|
convert_readme_fragments_to_markdown: true
|
||||||
|
enable_checklog_odoo: true
|
||||||
generate_requirements_txt: true
|
generate_requirements_txt: true
|
||||||
github_check_license: false
|
github_check_license: false
|
||||||
github_ci_extra_env: {}
|
github_ci_extra_env: {}
|
||||||
@@ -13,11 +14,11 @@ github_enable_stale_action: true
|
|||||||
github_enforce_dev_status_compatibility: false
|
github_enforce_dev_status_compatibility: false
|
||||||
include_wkhtmltopdf: false
|
include_wkhtmltopdf: false
|
||||||
odoo_test_flavor: Both
|
odoo_test_flavor: Both
|
||||||
odoo_version: 17.0
|
odoo_version: 19.0
|
||||||
org_name: Camptocamp
|
org_name: Camptocamp
|
||||||
org_slug: camptocamp
|
org_slug: camptocamp
|
||||||
rebel_module_groups: []
|
rebel_module_groups: []
|
||||||
repo_description: 'Tools to run Odoo on a cloud platform.'
|
repo_description: Tools to run Odoo on a cloud platform.
|
||||||
repo_name: Odoo Cloud Addons
|
repo_name: Odoo Cloud Addons
|
||||||
repo_slug: odoo-cloud-platform
|
repo_slug: odoo-cloud-platform
|
||||||
repo_website: https://github.com/camptocamp/odoo-cloud-platform
|
repo_website: https://github.com/camptocamp/odoo-cloud-platform
|
||||||
|
|||||||
-188
@@ -1,188 +0,0 @@
|
|||||||
env:
|
|
||||||
browser: true
|
|
||||||
es6: true
|
|
||||||
|
|
||||||
# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
|
|
||||||
parserOptions:
|
|
||||||
ecmaVersion: 2022
|
|
||||||
|
|
||||||
overrides:
|
|
||||||
- files:
|
|
||||||
- "**/*.esm.js"
|
|
||||||
parserOptions:
|
|
||||||
sourceType: module
|
|
||||||
|
|
||||||
# Globals available in Odoo that shouldn't produce errorings
|
|
||||||
globals:
|
|
||||||
_: readonly
|
|
||||||
$: readonly
|
|
||||||
fuzzy: readonly
|
|
||||||
jQuery: readonly
|
|
||||||
moment: readonly
|
|
||||||
odoo: readonly
|
|
||||||
openerp: readonly
|
|
||||||
owl: readonly
|
|
||||||
luxon: readonly
|
|
||||||
|
|
||||||
# Styling is handled by Prettier, so we only need to enable AST rules;
|
|
||||||
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890
|
|
||||||
rules:
|
|
||||||
accessor-pairs: warn
|
|
||||||
array-callback-return: warn
|
|
||||||
callback-return: warn
|
|
||||||
capitalized-comments:
|
|
||||||
- warn
|
|
||||||
- always
|
|
||||||
- ignoreConsecutiveComments: true
|
|
||||||
ignoreInlineComments: true
|
|
||||||
complexity:
|
|
||||||
- warn
|
|
||||||
- 15
|
|
||||||
constructor-super: warn
|
|
||||||
dot-notation: warn
|
|
||||||
eqeqeq: warn
|
|
||||||
global-require: warn
|
|
||||||
handle-callback-err: warn
|
|
||||||
id-blacklist: warn
|
|
||||||
id-match: warn
|
|
||||||
init-declarations: error
|
|
||||||
max-depth: warn
|
|
||||||
max-nested-callbacks: warn
|
|
||||||
max-statements-per-line: warn
|
|
||||||
no-alert: warn
|
|
||||||
no-array-constructor: warn
|
|
||||||
no-caller: warn
|
|
||||||
no-case-declarations: warn
|
|
||||||
no-class-assign: warn
|
|
||||||
no-cond-assign: error
|
|
||||||
no-const-assign: error
|
|
||||||
no-constant-condition: warn
|
|
||||||
no-control-regex: warn
|
|
||||||
no-debugger: error
|
|
||||||
no-delete-var: warn
|
|
||||||
no-div-regex: warn
|
|
||||||
no-dupe-args: error
|
|
||||||
no-dupe-class-members: error
|
|
||||||
no-dupe-keys: error
|
|
||||||
no-duplicate-case: error
|
|
||||||
no-duplicate-imports: error
|
|
||||||
no-else-return: warn
|
|
||||||
no-empty-character-class: warn
|
|
||||||
no-empty-function: error
|
|
||||||
no-empty-pattern: error
|
|
||||||
no-empty: warn
|
|
||||||
no-eq-null: error
|
|
||||||
no-eval: error
|
|
||||||
no-ex-assign: error
|
|
||||||
no-extend-native: warn
|
|
||||||
no-extra-bind: warn
|
|
||||||
no-extra-boolean-cast: warn
|
|
||||||
no-extra-label: warn
|
|
||||||
no-fallthrough: warn
|
|
||||||
no-func-assign: error
|
|
||||||
no-global-assign: error
|
|
||||||
no-implicit-coercion:
|
|
||||||
- warn
|
|
||||||
- allow: ["~"]
|
|
||||||
no-implicit-globals: warn
|
|
||||||
no-implied-eval: warn
|
|
||||||
no-inline-comments: warn
|
|
||||||
no-inner-declarations: warn
|
|
||||||
no-invalid-regexp: warn
|
|
||||||
no-irregular-whitespace: warn
|
|
||||||
no-iterator: warn
|
|
||||||
no-label-var: warn
|
|
||||||
no-labels: warn
|
|
||||||
no-lone-blocks: warn
|
|
||||||
no-lonely-if: error
|
|
||||||
no-mixed-requires: error
|
|
||||||
no-multi-str: warn
|
|
||||||
no-native-reassign: error
|
|
||||||
no-negated-condition: warn
|
|
||||||
no-negated-in-lhs: error
|
|
||||||
no-new-func: warn
|
|
||||||
no-new-object: warn
|
|
||||||
no-new-require: warn
|
|
||||||
no-new-symbol: warn
|
|
||||||
no-new-wrappers: warn
|
|
||||||
no-new: warn
|
|
||||||
no-obj-calls: warn
|
|
||||||
no-octal-escape: warn
|
|
||||||
no-octal: warn
|
|
||||||
no-param-reassign: warn
|
|
||||||
no-path-concat: warn
|
|
||||||
no-process-env: warn
|
|
||||||
no-process-exit: warn
|
|
||||||
no-proto: warn
|
|
||||||
no-prototype-builtins: warn
|
|
||||||
no-redeclare: warn
|
|
||||||
no-regex-spaces: warn
|
|
||||||
no-restricted-globals: warn
|
|
||||||
no-restricted-imports: warn
|
|
||||||
no-restricted-modules: warn
|
|
||||||
no-restricted-syntax: warn
|
|
||||||
no-return-assign: error
|
|
||||||
no-script-url: warn
|
|
||||||
no-self-assign: warn
|
|
||||||
no-self-compare: warn
|
|
||||||
no-sequences: warn
|
|
||||||
no-shadow-restricted-names: warn
|
|
||||||
no-shadow: warn
|
|
||||||
no-sparse-arrays: warn
|
|
||||||
no-sync: warn
|
|
||||||
no-this-before-super: warn
|
|
||||||
no-throw-literal: warn
|
|
||||||
no-undef-init: warn
|
|
||||||
no-undef: error
|
|
||||||
no-unmodified-loop-condition: warn
|
|
||||||
no-unneeded-ternary: error
|
|
||||||
no-unreachable: error
|
|
||||||
no-unsafe-finally: error
|
|
||||||
no-unused-expressions: error
|
|
||||||
no-unused-labels: error
|
|
||||||
no-unused-vars: error
|
|
||||||
no-use-before-define: error
|
|
||||||
no-useless-call: warn
|
|
||||||
no-useless-computed-key: warn
|
|
||||||
no-useless-concat: warn
|
|
||||||
no-useless-constructor: warn
|
|
||||||
no-useless-escape: warn
|
|
||||||
no-useless-rename: warn
|
|
||||||
no-void: warn
|
|
||||||
no-with: warn
|
|
||||||
operator-assignment: [error, always]
|
|
||||||
prefer-const: warn
|
|
||||||
radix: warn
|
|
||||||
require-yield: warn
|
|
||||||
sort-imports: warn
|
|
||||||
spaced-comment: [error, always]
|
|
||||||
strict: [error, function]
|
|
||||||
use-isnan: error
|
|
||||||
valid-jsdoc:
|
|
||||||
- warn
|
|
||||||
- prefer:
|
|
||||||
arg: param
|
|
||||||
argument: param
|
|
||||||
augments: extends
|
|
||||||
constructor: class
|
|
||||||
exception: throws
|
|
||||||
func: function
|
|
||||||
method: function
|
|
||||||
prop: property
|
|
||||||
return: returns
|
|
||||||
virtual: abstract
|
|
||||||
yield: yields
|
|
||||||
preferType:
|
|
||||||
array: Array
|
|
||||||
bool: Boolean
|
|
||||||
boolean: Boolean
|
|
||||||
number: Number
|
|
||||||
object: Object
|
|
||||||
str: String
|
|
||||||
string: String
|
|
||||||
requireParamDescription: false
|
|
||||||
requireReturn: false
|
|
||||||
requireReturnDescription: false
|
|
||||||
requireReturnType: false
|
|
||||||
valid-typeof: warn
|
|
||||||
yoda: warn
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
test-requirements.txt merge=union
|
||||||
@@ -3,18 +3,18 @@ name: pre-commit
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- "18.0*"
|
- "19.0*"
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "18.0"
|
- "19.0"
|
||||||
- "18.0-ocabot-*"
|
- "19.0-ocabot-*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre-commit:
|
pre-commit:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
- name: Get python version
|
- name: Get python version
|
||||||
|
|||||||
@@ -3,18 +3,18 @@ name: tests
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- "18.0*"
|
- "19.0*"
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "18.0"
|
- "19.0"
|
||||||
- "18.0-ocabot-*"
|
- "19.0-ocabot-*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unreleased-deps:
|
unreleased-deps:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Detect unreleased dependencies
|
name: Detect unreleased dependencies
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- run: |
|
- run: |
|
||||||
for reqfile in requirements.txt test-requirements.txt ; do
|
for reqfile in requirements.txt test-requirements.txt ; do
|
||||||
if [ -f ${reqfile} ] ; then
|
if [ -f ${reqfile} ] ; then
|
||||||
@@ -35,14 +35,14 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- container: ghcr.io/oca/oca-ci/py3.10-odoo18.0:latest
|
- container: ghcr.io/oca/oca-ci/py3.10-odoo19.0:latest
|
||||||
name: test with Odoo
|
name: test with Odoo
|
||||||
- container: ghcr.io/oca/oca-ci/py3.10-ocb18.0:latest
|
- container: ghcr.io/oca/oca-ci/py3.10-ocb19.0:latest
|
||||||
name: test with OCB
|
name: test with OCB
|
||||||
makepot: "false"
|
makepot: "false"
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:12.0
|
image: postgres:13
|
||||||
env:
|
env:
|
||||||
POSTGRES_USER: odoo
|
POSTGRES_USER: odoo
|
||||||
POSTGRES_PASSWORD: odoo
|
POSTGRES_PASSWORD: odoo
|
||||||
@@ -55,7 +55,7 @@ jobs:
|
|||||||
# Disable Redis check
|
# Disable Redis check
|
||||||
ODOO_CLOUD_PLATFORM_UNSAFE: 1
|
ODOO_CLOUD_PLATFORM_UNSAFE: 1
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install addons and dependencies
|
- name: Install addons and dependencies
|
||||||
|
|||||||
+13
@@ -22,6 +22,19 @@ var/
|
|||||||
*.egg
|
*.egg
|
||||||
*.eggs
|
*.eggs
|
||||||
|
|
||||||
|
# Windows installers
|
||||||
|
*.msi
|
||||||
|
|
||||||
|
# Debian packages
|
||||||
|
*.deb
|
||||||
|
|
||||||
|
# Redhat packages
|
||||||
|
*.rpm
|
||||||
|
|
||||||
|
# MacOS packages
|
||||||
|
*.dmg
|
||||||
|
*.pkg
|
||||||
|
|
||||||
# Installer logs
|
# Installer logs
|
||||||
pip-log.txt
|
pip-log.txt
|
||||||
pip-delete-this-directory.txt
|
pip-delete-this-directory.txt
|
||||||
|
|||||||
+31
-20
@@ -14,7 +14,7 @@ exclude: |
|
|||||||
# Files and folders generated by bots, to avoid loops
|
# Files and folders generated by bots, to avoid loops
|
||||||
^setup/|/static/description/index\.html$|
|
^setup/|/static/description/index\.html$|
|
||||||
# We don't want to mess with tool-generated files
|
# We don't want to mess with tool-generated files
|
||||||
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
|
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs|
|
||||||
# Maybe reactivate this when all README files include prettier ignore tags?
|
# Maybe reactivate this when all README files include prettier ignore tags?
|
||||||
^README\.md$|
|
^README\.md$|
|
||||||
# Library files can have extraneous formatting (even minimized)
|
# Library files can have extraneous formatting (even minimized)
|
||||||
@@ -31,7 +31,7 @@ exclude: |
|
|||||||
(LICENSE.*|COPYING.*)
|
(LICENSE.*|COPYING.*)
|
||||||
default_language_version:
|
default_language_version:
|
||||||
python: python3
|
python: python3
|
||||||
node: "16.17.0"
|
node: "22.9.0"
|
||||||
repos:
|
repos:
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
@@ -48,11 +48,11 @@ repos:
|
|||||||
language: fail
|
language: fail
|
||||||
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
|
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
|
||||||
- repo: https://github.com/sbidoul/whool
|
- repo: https://github.com/sbidoul/whool
|
||||||
rev: v0.5
|
rev: v1.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: whool-init
|
- id: whool-init
|
||||||
- repo: https://github.com/oca/maintainer-tools
|
- repo: https://github.com/oca/maintainer-tools
|
||||||
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
|
rev: f9b919b9868143135a9c9cb03021089cabba8223
|
||||||
hooks:
|
hooks:
|
||||||
# update the NOT INSTALLABLE ADDONS section above
|
# update the NOT INSTALLABLE ADDONS section above
|
||||||
- id: oca-update-pre-commit-excluded-addons
|
- id: oca-update-pre-commit-excluded-addons
|
||||||
@@ -61,7 +61,7 @@ repos:
|
|||||||
- id: oca-gen-addon-readme
|
- id: oca-gen-addon-readme
|
||||||
args:
|
args:
|
||||||
- --addons-dir=.
|
- --addons-dir=.
|
||||||
- --branch=18.0
|
- --branch=19.0
|
||||||
- --org-name=camptocamp
|
- --org-name=camptocamp
|
||||||
- --repo-name=odoo-cloud-platform
|
- --repo-name=odoo-cloud-platform
|
||||||
- --if-source-changed
|
- --if-source-changed
|
||||||
@@ -69,31 +69,44 @@ repos:
|
|||||||
- --convert-fragments-to-markdown
|
- --convert-fragments-to-markdown
|
||||||
- id: oca-gen-external-dependencies
|
- id: oca-gen-external-dependencies
|
||||||
- repo: https://github.com/OCA/odoo-pre-commit-hooks
|
- repo: https://github.com/OCA/odoo-pre-commit-hooks
|
||||||
rev: v0.0.25
|
rev: v0.1.6
|
||||||
hooks:
|
hooks:
|
||||||
- id: oca-checks-odoo-module
|
- id: oca-checks-odoo-module
|
||||||
- id: oca-checks-po
|
- id: oca-checks-po
|
||||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
args:
|
||||||
rev: v2.7.1
|
- --disable=po-pretty-format
|
||||||
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
name: prettier (with plugin-xml)
|
name: prettier (with plugin-xml)
|
||||||
additional_dependencies:
|
entry: prettier
|
||||||
- "prettier@2.7.1"
|
|
||||||
- "@prettier/plugin-xml@2.2.0"
|
|
||||||
args:
|
args:
|
||||||
- --plugin=@prettier/plugin-xml
|
- --write
|
||||||
|
- --list-different
|
||||||
|
- --ignore-unknown
|
||||||
|
types: [text]
|
||||||
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
|
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
|
||||||
- repo: https://github.com/pre-commit/mirrors-eslint
|
language: node
|
||||||
rev: v8.24.0
|
additional_dependencies:
|
||||||
|
- "prettier@3.6.2"
|
||||||
|
- "@prettier/plugin-xml@3.4.2"
|
||||||
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: eslint
|
- id: eslint
|
||||||
verbose: true
|
name: eslint
|
||||||
|
entry: eslint
|
||||||
args:
|
args:
|
||||||
- --color
|
- --color
|
||||||
- --fix
|
- --fix
|
||||||
|
verbose: true
|
||||||
|
types: [javascript]
|
||||||
|
language: node
|
||||||
|
additional_dependencies:
|
||||||
|
- "eslint@9.35.0"
|
||||||
|
- "eslint-plugin-jsdoc@57.0.8"
|
||||||
|
- "globals@16.0.0"
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.3.0
|
rev: v6.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
# exclude autogenerated files
|
# exclude autogenerated files
|
||||||
@@ -102,8 +115,6 @@ repos:
|
|||||||
# exclude autogenerated files
|
# exclude autogenerated files
|
||||||
exclude: /README\.rst$|\.pot?$
|
exclude: /README\.rst$|\.pot?$
|
||||||
- id: debug-statements
|
- id: debug-statements
|
||||||
- id: fix-encoding-pragma
|
|
||||||
args: ["--remove"]
|
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
- id: check-docstring-first
|
- id: check-docstring-first
|
||||||
- id: check-executables-have-shebangs
|
- id: check-executables-have-shebangs
|
||||||
@@ -115,13 +126,13 @@ repos:
|
|||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
args: ["--fix=lf"]
|
args: ["--fix=lf"]
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.1.3
|
rev: v0.13.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [--fix, --exit-non-zero-on-fix]
|
args: [--fix, --exit-non-zero-on-fix]
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
- repo: https://github.com/OCA/pylint-odoo
|
- repo: https://github.com/OCA/pylint-odoo
|
||||||
rev: v9.0.4
|
rev: v9.3.15
|
||||||
hooks:
|
hooks:
|
||||||
- id: pylint_odoo
|
- id: pylint_odoo
|
||||||
name: pylint with optional checks
|
name: pylint with optional checks
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
# Defaults for all prettier-supported languages.
|
|
||||||
# Prettier will complete this with settings from .editorconfig file.
|
|
||||||
bracketSpacing: false
|
|
||||||
printWidth: 88
|
|
||||||
proseWrap: always
|
|
||||||
semi: true
|
|
||||||
trailingComma: "es5"
|
|
||||||
xmlWhitespaceSensitivity: "strict"
|
|
||||||
@@ -10,7 +10,7 @@ manifest-required-authors=Camptocamp
|
|||||||
manifest-required-keys=license
|
manifest-required-keys=license
|
||||||
manifest-deprecated-keys=description,active
|
manifest-deprecated-keys=description,active
|
||||||
license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
|
license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
|
||||||
valid-odoo-versions=18.0
|
valid-odoo-versions=19.0
|
||||||
|
|
||||||
[MESSAGES CONTROL]
|
[MESSAGES CONTROL]
|
||||||
disable=all
|
disable=all
|
||||||
@@ -23,21 +23,12 @@ disable=all
|
|||||||
# config as a blocking check.
|
# config as a blocking check.
|
||||||
|
|
||||||
enable=anomalous-backslash-in-string,
|
enable=anomalous-backslash-in-string,
|
||||||
api-one-deprecated,
|
|
||||||
api-one-multi-together,
|
|
||||||
assignment-from-none,
|
assignment-from-none,
|
||||||
attribute-deprecated,
|
attribute-deprecated,
|
||||||
class-camelcase,
|
|
||||||
dangerous-default-value,
|
dangerous-default-value,
|
||||||
dangerous-view-replace-wo-priority,
|
|
||||||
development-status-allowed,
|
development-status-allowed,
|
||||||
duplicate-id-csv,
|
|
||||||
duplicate-key,
|
duplicate-key,
|
||||||
duplicate-xml-fields,
|
|
||||||
duplicate-xml-record-id,
|
|
||||||
eval-referenced,
|
|
||||||
eval-used,
|
eval-used,
|
||||||
incoherent-interpreter-exec-perm,
|
|
||||||
license-allowed,
|
license-allowed,
|
||||||
manifest-author-string,
|
manifest-author-string,
|
||||||
manifest-deprecated-key,
|
manifest-deprecated-key,
|
||||||
@@ -48,57 +39,57 @@ enable=anomalous-backslash-in-string,
|
|||||||
method-inverse,
|
method-inverse,
|
||||||
method-required-super,
|
method-required-super,
|
||||||
method-search,
|
method-search,
|
||||||
openerp-exception-warning,
|
|
||||||
pointless-statement,
|
pointless-statement,
|
||||||
pointless-string-statement,
|
pointless-string-statement,
|
||||||
print-used,
|
print-used,
|
||||||
redundant-keyword-arg,
|
redundant-keyword-arg,
|
||||||
redundant-modulename-xml,
|
|
||||||
reimported,
|
reimported,
|
||||||
relative-import,
|
|
||||||
return-in-init,
|
return-in-init,
|
||||||
rst-syntax-error,
|
|
||||||
sql-injection,
|
sql-injection,
|
||||||
too-few-format-args,
|
too-few-format-args,
|
||||||
translation-field,
|
translation-field,
|
||||||
translation-required,
|
translation-required,
|
||||||
unreachable,
|
unreachable,
|
||||||
use-vim-comment,
|
use-vim-comment,
|
||||||
wrong-tabs-instead-of-spaces,
|
|
||||||
xml-syntax-error,
|
|
||||||
attribute-string-redundant,
|
attribute-string-redundant,
|
||||||
character-not-valid-in-resource-link,
|
|
||||||
consider-merging-classes-inherited,
|
consider-merging-classes-inherited,
|
||||||
context-overridden,
|
context-overridden,
|
||||||
create-user-wo-reset-password,
|
|
||||||
dangerous-filter-wo-user,
|
|
||||||
dangerous-qweb-replace-wo-priority,
|
|
||||||
deprecated-data-xml-node,
|
|
||||||
deprecated-openerp-xml-node,
|
|
||||||
duplicate-po-message-definition,
|
|
||||||
except-pass,
|
except-pass,
|
||||||
file-not-used,
|
|
||||||
invalid-commit,
|
invalid-commit,
|
||||||
manifest-maintainers-list,
|
manifest-maintainers-list,
|
||||||
missing-newline-extrafiles,
|
|
||||||
missing-readme,
|
missing-readme,
|
||||||
missing-return,
|
missing-return,
|
||||||
odoo-addons-relative-import,
|
odoo-addons-relative-import,
|
||||||
old-api7-method-defined,
|
|
||||||
po-msgstr-variables,
|
|
||||||
po-syntax-error,
|
|
||||||
renamed-field-parameter,
|
renamed-field-parameter,
|
||||||
resource-not-exist,
|
resource-not-exist,
|
||||||
str-format-used,
|
|
||||||
test-folder-imported,
|
test-folder-imported,
|
||||||
translation-contains-variable,
|
translation-contains-variable,
|
||||||
translation-positional-used,
|
translation-positional-used,
|
||||||
unnecessary-utf8-coding-comment,
|
|
||||||
website-manifest-key-not-valid-uri,
|
website-manifest-key-not-valid-uri,
|
||||||
xml-attribute-translatable,
|
|
||||||
xml-deprecated-qweb-directive,
|
|
||||||
xml-deprecated-tree-attribute,
|
|
||||||
external-request-timeout,
|
external-request-timeout,
|
||||||
|
bad-builtin-groupby,
|
||||||
|
category-allowed,
|
||||||
|
deprecated-name-get,
|
||||||
|
deprecated-odoo-model-method,
|
||||||
|
inheritable-method-lambda,
|
||||||
|
inheritable-method-string,
|
||||||
|
invalid-email,
|
||||||
|
manifest-behind-migrations,
|
||||||
|
manifest-data-duplicated,
|
||||||
|
missing-odoo-file,
|
||||||
|
no-raise-unlink,
|
||||||
|
no-search-all,
|
||||||
|
no-wizard-in-models,
|
||||||
|
prohibited-method-override,
|
||||||
|
prefer-env-translation,
|
||||||
|
translation-format-interpolation,
|
||||||
|
translation-format-truncated,
|
||||||
|
translation-fstring-interpolation,
|
||||||
|
translation-not-lazy,
|
||||||
|
translation-too-few-args,
|
||||||
|
translation-too-many-args,
|
||||||
|
translation-unsupported-format,
|
||||||
|
no-write-in-compute,
|
||||||
# messages that do not cause the lint step to fail
|
# messages that do not cause the lint step to fail
|
||||||
consider-merging-classes-inherited,
|
consider-merging-classes-inherited,
|
||||||
create-user-wo-reset-password,
|
create-user-wo-reset-password,
|
||||||
@@ -114,7 +105,8 @@ enable=anomalous-backslash-in-string,
|
|||||||
old-api7-method-defined,
|
old-api7-method-defined,
|
||||||
redefined-builtin,
|
redefined-builtin,
|
||||||
too-complex,
|
too-complex,
|
||||||
unnecessary-utf8-coding-comment
|
unnecessary-utf8-coding-comment,
|
||||||
|
manifest-external-assets
|
||||||
|
|
||||||
|
|
||||||
[REPORTS]
|
[REPORTS]
|
||||||
|
|||||||
+25
-34
@@ -9,27 +9,18 @@ manifest-required-authors=Camptocamp
|
|||||||
manifest-required-keys=license
|
manifest-required-keys=license
|
||||||
manifest-deprecated-keys=description,active
|
manifest-deprecated-keys=description,active
|
||||||
license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
|
license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
|
||||||
valid-odoo-versions=18.0
|
valid-odoo-versions=19.0
|
||||||
|
|
||||||
[MESSAGES CONTROL]
|
[MESSAGES CONTROL]
|
||||||
disable=all
|
disable=all
|
||||||
|
|
||||||
enable=anomalous-backslash-in-string,
|
enable=anomalous-backslash-in-string,
|
||||||
api-one-deprecated,
|
|
||||||
api-one-multi-together,
|
|
||||||
assignment-from-none,
|
assignment-from-none,
|
||||||
attribute-deprecated,
|
attribute-deprecated,
|
||||||
class-camelcase,
|
|
||||||
dangerous-default-value,
|
dangerous-default-value,
|
||||||
dangerous-view-replace-wo-priority,
|
|
||||||
development-status-allowed,
|
development-status-allowed,
|
||||||
duplicate-id-csv,
|
|
||||||
duplicate-key,
|
duplicate-key,
|
||||||
duplicate-xml-fields,
|
|
||||||
duplicate-xml-record-id,
|
|
||||||
eval-referenced,
|
|
||||||
eval-used,
|
eval-used,
|
||||||
incoherent-interpreter-exec-perm,
|
|
||||||
license-allowed,
|
license-allowed,
|
||||||
manifest-author-string,
|
manifest-author-string,
|
||||||
manifest-deprecated-key,
|
manifest-deprecated-key,
|
||||||
@@ -40,57 +31,57 @@ enable=anomalous-backslash-in-string,
|
|||||||
method-inverse,
|
method-inverse,
|
||||||
method-required-super,
|
method-required-super,
|
||||||
method-search,
|
method-search,
|
||||||
openerp-exception-warning,
|
|
||||||
pointless-statement,
|
pointless-statement,
|
||||||
pointless-string-statement,
|
pointless-string-statement,
|
||||||
print-used,
|
print-used,
|
||||||
redundant-keyword-arg,
|
redundant-keyword-arg,
|
||||||
redundant-modulename-xml,
|
|
||||||
reimported,
|
reimported,
|
||||||
relative-import,
|
|
||||||
return-in-init,
|
return-in-init,
|
||||||
rst-syntax-error,
|
|
||||||
sql-injection,
|
sql-injection,
|
||||||
too-few-format-args,
|
too-few-format-args,
|
||||||
translation-field,
|
translation-field,
|
||||||
translation-required,
|
translation-required,
|
||||||
unreachable,
|
unreachable,
|
||||||
use-vim-comment,
|
use-vim-comment,
|
||||||
wrong-tabs-instead-of-spaces,
|
|
||||||
xml-syntax-error,
|
|
||||||
attribute-string-redundant,
|
attribute-string-redundant,
|
||||||
character-not-valid-in-resource-link,
|
|
||||||
consider-merging-classes-inherited,
|
consider-merging-classes-inherited,
|
||||||
context-overridden,
|
context-overridden,
|
||||||
create-user-wo-reset-password,
|
|
||||||
dangerous-filter-wo-user,
|
|
||||||
dangerous-qweb-replace-wo-priority,
|
|
||||||
deprecated-data-xml-node,
|
|
||||||
deprecated-openerp-xml-node,
|
|
||||||
duplicate-po-message-definition,
|
|
||||||
except-pass,
|
except-pass,
|
||||||
file-not-used,
|
|
||||||
invalid-commit,
|
invalid-commit,
|
||||||
manifest-maintainers-list,
|
manifest-maintainers-list,
|
||||||
missing-newline-extrafiles,
|
|
||||||
missing-readme,
|
missing-readme,
|
||||||
missing-return,
|
missing-return,
|
||||||
odoo-addons-relative-import,
|
odoo-addons-relative-import,
|
||||||
old-api7-method-defined,
|
|
||||||
po-msgstr-variables,
|
|
||||||
po-syntax-error,
|
|
||||||
renamed-field-parameter,
|
renamed-field-parameter,
|
||||||
resource-not-exist,
|
resource-not-exist,
|
||||||
str-format-used,
|
|
||||||
test-folder-imported,
|
test-folder-imported,
|
||||||
translation-contains-variable,
|
translation-contains-variable,
|
||||||
translation-positional-used,
|
translation-positional-used,
|
||||||
unnecessary-utf8-coding-comment,
|
|
||||||
website-manifest-key-not-valid-uri,
|
website-manifest-key-not-valid-uri,
|
||||||
xml-attribute-translatable,
|
external-request-timeout,
|
||||||
xml-deprecated-qweb-directive,
|
bad-builtin-groupby,
|
||||||
xml-deprecated-tree-attribute,
|
category-allowed,
|
||||||
external-request-timeout
|
deprecated-name-get,
|
||||||
|
deprecated-odoo-model-method,
|
||||||
|
inheritable-method-lambda,
|
||||||
|
inheritable-method-string,
|
||||||
|
invalid-email,
|
||||||
|
manifest-behind-migrations,
|
||||||
|
manifest-data-duplicated,
|
||||||
|
missing-odoo-file,
|
||||||
|
no-raise-unlink,
|
||||||
|
no-search-all,
|
||||||
|
no-wizard-in-models,
|
||||||
|
prohibited-method-override,
|
||||||
|
prefer-env-translation,
|
||||||
|
translation-format-interpolation,
|
||||||
|
translation-format-truncated,
|
||||||
|
translation-fstring-interpolation,
|
||||||
|
translation-not-lazy,
|
||||||
|
translation-too-few-args,
|
||||||
|
translation-too-many-args,
|
||||||
|
translation-unsupported-format,
|
||||||
|
no-write-in-compute
|
||||||
|
|
||||||
[REPORTS]
|
[REPORTS]
|
||||||
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
|
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
|
||||||
|
|||||||
+5
-4
@@ -10,21 +10,22 @@ extend-select = [
|
|||||||
"I", # isort
|
"I", # isort
|
||||||
"UP", # pyupgrade
|
"UP", # pyupgrade
|
||||||
]
|
]
|
||||||
|
extend-safe-fixes = ["UP008"]
|
||||||
exclude = ["setup/*"]
|
exclude = ["setup/*"]
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
exclude = ["setup/*"]
|
exclude = ["setup/*"]
|
||||||
|
|
||||||
[per-file-ignores]
|
[lint.per-file-ignores]
|
||||||
"__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py
|
"__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py
|
||||||
"__manifest__.py" = ["B018"] # useless expression
|
"__manifest__.py" = ["B018"] # useless expression
|
||||||
|
|
||||||
[isort]
|
[lint.isort]
|
||||||
section-order = ["future", "standard-library", "third-party", "odoo", "odoo-addons", "first-party", "local-folder"]
|
section-order = ["future", "standard-library", "third-party", "odoo", "odoo-addons", "first-party", "local-folder"]
|
||||||
|
|
||||||
[isort.sections]
|
[lint.isort.sections]
|
||||||
"odoo" = ["odoo"]
|
"odoo" = ["odoo"]
|
||||||
"odoo-addons" = ["odoo.addons"]
|
"odoo-addons" = ["odoo.addons"]
|
||||||
|
|
||||||
[mccabe]
|
[lint.mccabe]
|
||||||
max-complexity = 16
|
max-complexity = 16
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
<!-- /!\ Non OCA Context : Set here the badge of your runbot / runboat instance. -->
|
<!-- /!\ Non OCA Context : Set here the badge of your runbot / runboat instance. -->
|
||||||
[](https://github.com/camptocamp/odoo-cloud-platform/actions/workflows/pre-commit.yml?query=branch%3A18.0)
|
[](https://github.com/camptocamp/odoo-cloud-platform/actions/workflows/pre-commit.yml?query=branch%3A19.0)
|
||||||
[](https://github.com/camptocamp/odoo-cloud-platform/actions/workflows/test.yml?query=branch%3A18.0)
|
[](https://github.com/camptocamp/odoo-cloud-platform/actions/workflows/test.yml?query=branch%3A19.0)
|
||||||
[](https://codecov.io/gh/camptocamp/odoo-cloud-platform)
|
[](https://codecov.io/gh/camptocamp/odoo-cloud-platform)
|
||||||
<!-- /!\ Non OCA Context : Set here the badge of your translation instance. -->
|
<!-- /!\ Non OCA Context : Set here the badge of your translation instance. -->
|
||||||
|
|
||||||
<!-- /!\ do not modify above this line -->
|
<!-- /!\ do not modify above this line -->
|
||||||
@@ -200,8 +200,11 @@ that explains its license.
|
|||||||
|
|
||||||
# updating the template to create new branch XX.0
|
# updating the template to create new branch XX.0
|
||||||
|
|
||||||
To generate the new branch for the next version of odoo, please update the template with :
|
To generate the new branch for the next version of odoo, please update the template with the OCA.
|
||||||
|
You can find the src template here https://github.com/OCA/oca-addons-repo-template.
|
||||||
|
|
||||||
|
to update the template with the same answer :
|
||||||
|
|
||||||
```
|
```
|
||||||
copier update --UNSAFE
|
copier update --trust -f --data odoo_version="XX.0"
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[checklog-odoo]
|
||||||
|
ignore=
|
||||||
|
WARNING.* 0 failed, 0 error\(s\).*
|
||||||
@@ -0,0 +1,205 @@
|
|||||||
|
var globals = require('globals');
|
||||||
|
jsdoc = require("eslint-plugin-jsdoc");
|
||||||
|
|
||||||
|
const config = [{
|
||||||
|
plugins: {
|
||||||
|
jsdoc,
|
||||||
|
},
|
||||||
|
|
||||||
|
languageOptions: {
|
||||||
|
globals: {
|
||||||
|
_: "readonly",
|
||||||
|
$: "readonly",
|
||||||
|
fuzzy: "readonly",
|
||||||
|
jQuery: "readonly",
|
||||||
|
moment: "readonly",
|
||||||
|
odoo: "readonly",
|
||||||
|
openerp: "readonly",
|
||||||
|
owl: "readonly",
|
||||||
|
luxon: "readonly",
|
||||||
|
QUnit: "readonly",
|
||||||
|
...globals.browser,
|
||||||
|
},
|
||||||
|
|
||||||
|
ecmaVersion: 2024,
|
||||||
|
sourceType: "script",
|
||||||
|
},
|
||||||
|
|
||||||
|
rules: {
|
||||||
|
"accessor-pairs": "warn",
|
||||||
|
"array-callback-return": "warn",
|
||||||
|
"callback-return": "warn",
|
||||||
|
"capitalized-comments": ["warn", "always", {
|
||||||
|
ignoreConsecutiveComments: true,
|
||||||
|
ignoreInlineComments: true,
|
||||||
|
}],
|
||||||
|
complexity: ["warn", 15],
|
||||||
|
"constructor-super": "warn",
|
||||||
|
"dot-notation": "warn",
|
||||||
|
eqeqeq: "warn",
|
||||||
|
"global-require": "warn",
|
||||||
|
"handle-callback-err": "warn",
|
||||||
|
"id-blacklist": "warn",
|
||||||
|
"id-match": "warn",
|
||||||
|
"init-declarations": "error",
|
||||||
|
"max-depth": "warn",
|
||||||
|
"max-nested-callbacks": "warn",
|
||||||
|
"max-statements-per-line": "warn",
|
||||||
|
"no-alert": "warn",
|
||||||
|
"no-array-constructor": "warn",
|
||||||
|
"no-caller": "warn",
|
||||||
|
"no-case-declarations": "warn",
|
||||||
|
"no-class-assign": "warn",
|
||||||
|
"no-cond-assign": "error",
|
||||||
|
"no-const-assign": "error",
|
||||||
|
"no-constant-condition": "warn",
|
||||||
|
"no-control-regex": "warn",
|
||||||
|
"no-debugger": "error",
|
||||||
|
"no-delete-var": "warn",
|
||||||
|
"no-div-regex": "warn",
|
||||||
|
"no-dupe-args": "error",
|
||||||
|
"no-dupe-class-members": "error",
|
||||||
|
"no-dupe-keys": "error",
|
||||||
|
"no-duplicate-case": "error",
|
||||||
|
"no-duplicate-imports": "error",
|
||||||
|
"no-else-return": "warn",
|
||||||
|
"no-empty-character-class": "warn",
|
||||||
|
"no-empty-function": "error",
|
||||||
|
"no-empty-pattern": "error",
|
||||||
|
"no-empty": "warn",
|
||||||
|
"no-eq-null": "error",
|
||||||
|
"no-eval": "error",
|
||||||
|
"no-ex-assign": "error",
|
||||||
|
"no-extend-native": "warn",
|
||||||
|
"no-extra-bind": "warn",
|
||||||
|
"no-extra-boolean-cast": "warn",
|
||||||
|
"no-extra-label": "warn",
|
||||||
|
"no-fallthrough": "warn",
|
||||||
|
"no-func-assign": "error",
|
||||||
|
"no-global-assign": "error",
|
||||||
|
"no-implicit-coercion": ["warn", {
|
||||||
|
allow: ["~"],
|
||||||
|
}],
|
||||||
|
"no-implicit-globals": "warn",
|
||||||
|
"no-implied-eval": "warn",
|
||||||
|
"no-inline-comments": "warn",
|
||||||
|
"no-inner-declarations": "warn",
|
||||||
|
"no-invalid-regexp": "warn",
|
||||||
|
"no-irregular-whitespace": "warn",
|
||||||
|
"no-iterator": "warn",
|
||||||
|
"no-label-var": "warn",
|
||||||
|
"no-labels": "warn",
|
||||||
|
"no-lone-blocks": "warn",
|
||||||
|
"no-lonely-if": "error",
|
||||||
|
"no-mixed-requires": "error",
|
||||||
|
"no-multi-str": "warn",
|
||||||
|
"no-native-reassign": "error",
|
||||||
|
"no-negated-condition": "warn",
|
||||||
|
"no-negated-in-lhs": "error",
|
||||||
|
"no-new-func": "warn",
|
||||||
|
"no-new-object": "warn",
|
||||||
|
"no-new-require": "warn",
|
||||||
|
"no-new-symbol": "warn",
|
||||||
|
"no-new-wrappers": "warn",
|
||||||
|
"no-new": "warn",
|
||||||
|
"no-obj-calls": "warn",
|
||||||
|
"no-octal-escape": "warn",
|
||||||
|
"no-octal": "warn",
|
||||||
|
"no-param-reassign": "warn",
|
||||||
|
"no-path-concat": "warn",
|
||||||
|
"no-process-env": "warn",
|
||||||
|
"no-process-exit": "warn",
|
||||||
|
"no-proto": "warn",
|
||||||
|
"no-prototype-builtins": "warn",
|
||||||
|
"no-redeclare": "warn",
|
||||||
|
"no-regex-spaces": "warn",
|
||||||
|
"no-restricted-globals": "warn",
|
||||||
|
"no-restricted-imports": "warn",
|
||||||
|
"no-restricted-modules": "warn",
|
||||||
|
"no-restricted-syntax": "warn",
|
||||||
|
"no-return-assign": "error",
|
||||||
|
"no-script-url": "warn",
|
||||||
|
"no-self-assign": "warn",
|
||||||
|
"no-self-compare": "warn",
|
||||||
|
"no-sequences": "warn",
|
||||||
|
"no-shadow-restricted-names": "warn",
|
||||||
|
"no-shadow": "warn",
|
||||||
|
"no-sparse-arrays": "warn",
|
||||||
|
"no-sync": "warn",
|
||||||
|
"no-this-before-super": "warn",
|
||||||
|
"no-throw-literal": "warn",
|
||||||
|
"no-undef-init": "warn",
|
||||||
|
"no-undef": "error",
|
||||||
|
"no-unmodified-loop-condition": "warn",
|
||||||
|
"no-unneeded-ternary": "error",
|
||||||
|
"no-unreachable": "error",
|
||||||
|
"no-unsafe-finally": "error",
|
||||||
|
"no-unused-expressions": "error",
|
||||||
|
"no-unused-labels": "error",
|
||||||
|
"no-unused-vars": "error",
|
||||||
|
"no-use-before-define": "error",
|
||||||
|
"no-useless-call": "warn",
|
||||||
|
"no-useless-computed-key": "warn",
|
||||||
|
"no-useless-concat": "warn",
|
||||||
|
"no-useless-constructor": "warn",
|
||||||
|
"no-useless-escape": "warn",
|
||||||
|
"no-useless-rename": "warn",
|
||||||
|
"no-void": "warn",
|
||||||
|
"no-with": "warn",
|
||||||
|
"operator-assignment": ["error", "always"],
|
||||||
|
"prefer-const": "warn",
|
||||||
|
radix: "warn",
|
||||||
|
"require-yield": "warn",
|
||||||
|
"sort-imports": "warn",
|
||||||
|
"spaced-comment": ["error", "always"],
|
||||||
|
strict: ["error", "function"],
|
||||||
|
"use-isnan": "error",
|
||||||
|
|
||||||
|
"jsdoc/check-tag-names": "warn",
|
||||||
|
"jsdoc/check-types": "warn",
|
||||||
|
"jsdoc/require-param-description": "off",
|
||||||
|
"jsdoc/require-return": "off",
|
||||||
|
"jsdoc/require-return-description": "off",
|
||||||
|
"jsdoc/require-return-type": "off",
|
||||||
|
|
||||||
|
"valid-typeof": "warn",
|
||||||
|
yoda: "warn",
|
||||||
|
},
|
||||||
|
|
||||||
|
settings: {
|
||||||
|
jsdoc: {
|
||||||
|
tagNamePreference: {
|
||||||
|
arg: "param",
|
||||||
|
argument: "param",
|
||||||
|
augments: "extends",
|
||||||
|
constructor: "class",
|
||||||
|
exception: "throws",
|
||||||
|
func: "function",
|
||||||
|
method: "function",
|
||||||
|
prop: "property",
|
||||||
|
return: "returns",
|
||||||
|
virtual: "abstract",
|
||||||
|
yield: "yields",
|
||||||
|
},
|
||||||
|
preferredTypes: {
|
||||||
|
array: "Array",
|
||||||
|
bool: "Boolean",
|
||||||
|
boolean: "Boolean",
|
||||||
|
number: "Number",
|
||||||
|
object: "Object",
|
||||||
|
str: "String",
|
||||||
|
string: "String",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
}, {
|
||||||
|
files: ["**/*.esm.js", "**/*test.js"],
|
||||||
|
|
||||||
|
languageOptions: {
|
||||||
|
ecmaVersion: 2024,
|
||||||
|
sourceType: "module",
|
||||||
|
},
|
||||||
|
}];
|
||||||
|
|
||||||
|
module.exports = config
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
/** @type {import('prettier').Config} */
|
||||||
|
|
||||||
|
const config = {
|
||||||
|
// https://github.com/prettier/prettier/issues/15388#issuecomment-1717746872
|
||||||
|
plugins: [require.resolve("@prettier/plugin-xml")],
|
||||||
|
bracketSpacing: false,
|
||||||
|
printWidth: 88,
|
||||||
|
proseWrap: "always",
|
||||||
|
semi: true,
|
||||||
|
trailingComma: "es5",
|
||||||
|
xmlWhitespaceSensitivity: "preserve",
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = config;
|
||||||
Reference in New Issue
Block a user