From e0f4838a30dc63104f8de5882ec845441e7373d5 Mon Sep 17 00:00:00 2001 From: "Stephane Lacoin (aka nxmatic)" Date: Wed, 20 Mar 2024 20:42:37 +0100 Subject: [PATCH] BDE-226 aligned linting with code base --- .eslintignore | 1 + .groovylintrc.json | 8 +++++++ .hintrc | 8 +++++++ test/.eslintrc | 58 ---------------------------------------------- 4 files changed, 17 insertions(+), 58 deletions(-) create mode 100644 .eslintignore create mode 100644 .groovylintrc.json delete mode 100644 test/.eslintrc diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..77ab386f --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +test/** \ No newline at end of file diff --git a/.groovylintrc.json b/.groovylintrc.json new file mode 100644 index 00000000..481a6cb7 --- /dev/null +++ b/.groovylintrc.json @@ -0,0 +1,8 @@ +{ + "extends": "recommended", + "rules": { + "CompileStatic": { + "enabled": false + } + } +} \ No newline at end of file diff --git a/.hintrc b/.hintrc index 5c8a2475..f625f19e 100644 --- a/.hintrc +++ b/.hintrc @@ -9,6 +9,14 @@ { "html-has-lang": "off" } + ], + "compat-api/css": [ + "default", + { + "ignore": [ + "text-align-last" + ] + } ] } } \ No newline at end of file diff --git a/test/.eslintrc b/test/.eslintrc deleted file mode 100644 index 490058e6..00000000 --- a/test/.eslintrc +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parser": "espree", - "parserOptions": { - "ecmaVersion": 6 - }, - "extends": [ - "eslint:recommended", - "airbnb-base", - ], - "plugins": ["import"], - "rules": { - "func-names": 0, - "max-len": [2, 120, 2, { - "ignoreUrls": true, - "ignoreTemplateLiterals": true, - "ignoreRegExpLiterals": true, - "ignoreStrings": true, - "ignoreComments": false, - }], - "no-unused-expressions": 0, - "no-param-reassign": 0, - "no-else-return": 0, - "no-throw-literal": 0, - "radix": 0, - "no-console": 0, - "no-underscore-dangle": 0, - "no-tabs": 0, - "no-useless-escape": 0, - "no-loop-func": 0, - "no-multi-assign": 0, - "no-use-before-define": ["error", {"variables": false}], - "prefer-destructuring": ["error", {"object": false, "array": true}], - "no-unused-vars": 0, - "wrap-iife": [2, "inside"], - "indent": ["error", 2], - "import/no-unresolved": [2, { "commonjs": true }], - "import/named": 2, - "import/namespace": 2, - "import/default": 2, - "import/export": 2 - }, - "globals": { - "$": true, - "app": true, - "browser": true, - "connectUsr": true, - "connectPsw": true, - "disableTabExtension": true, - "expect": true, - "fixtures": true, - "getCurrentTabUrl": true, - "hljs": true, - "liveDocuments": true, - "Nuxeo": true, - "nuxeo": true, - "studioExt": true, - } -} \ No newline at end of file