mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
60fa1d5bbf
This change adds linting support for Java-/TypeScript projects based on the checkDefaultLint and checkUserLint steps from Cloud SDK Pipeline. Following options are supported: 1. Define a linting script named ci-lint in the package.json file(s) of the project 2. Provide a configuration for ESLint as part of the project 3. If none of the above: ESLint is executed with a general purpose configuration. Co-authored-by: Daniel Kurzynski <daniel.kurzynski@sap.com>
101 lines
3.7 KiB
JSON
101 lines
3.7 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"node": true,
|
|
"es2020": true
|
|
},
|
|
"root": true,
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"rules": {
|
|
"for-direction": "warn",
|
|
"getter-return": "off",
|
|
"no-async-promise-executor": "off",
|
|
"no-compare-neg-zero": "off",
|
|
"no-cond-assign": "warn",
|
|
"no-constant-condition": "warn",
|
|
"no-control-regex": "off",
|
|
"no-debugger": "off",
|
|
"no-dupe-args": "warn",
|
|
"no-dupe-else-if": "warn",
|
|
"no-dupe-keys": "warn",
|
|
"no-duplicate-case": "warn",
|
|
"no-empty": "off",
|
|
"no-empty-character-class": "warn",
|
|
"no-ex-assign": "off",
|
|
"no-extra-boolean-cast": "off",
|
|
"no-extra-semi": "off",
|
|
"no-func-assign": "warn",
|
|
"no-import-assign": "warn",
|
|
"no-inner-declarations": "warn",
|
|
"no-invalid-regexp": "warn",
|
|
"no-irregular-whitespace": "off",
|
|
"no-misleading-character-class": "off",
|
|
"no-obj-calls": "warn",
|
|
"no-prototype-builtins": "off",
|
|
"no-regex-spaces": "off",
|
|
"no-setter-return": "off",
|
|
"no-sparse-arrays": "off",
|
|
"no-unexpected-multiline": "off",
|
|
"no-unreachable": "warn",
|
|
"no-unsafe-finally": "off",
|
|
"no-unsafe-negation": "off",
|
|
"use-isnan": "off",
|
|
"valid-typeof": "off",
|
|
"quotes": "off",
|
|
"no-case-declarations": "off",
|
|
"no-empty-pattern": "off",
|
|
"no-fallthrough": "off",
|
|
"no-global-assign": "off",
|
|
"no-octal":"off",
|
|
"no-redeclare": "off",
|
|
"no-unused-labels": "off",
|
|
"no-self-assign": "off",
|
|
"no-useless-catch": "off",
|
|
"no-useless-escape": "off",
|
|
"no-with": "off",
|
|
"no-var": "off",
|
|
"no-delete-var": "off",
|
|
"no-shadow-restricted-names": "off",
|
|
"no-undef": "off",
|
|
"no-unused-vars": "off",
|
|
"no-mixed-spaces-and-tabs": "off",
|
|
"constructor-super": "warn",
|
|
"no-class-assign": "off",
|
|
"no-const-assign": "warn",
|
|
"no-dupe-class-members": "off",
|
|
"no-new-symbol": "warn",
|
|
"no-this-before-super": "warn",
|
|
"require-yield": "off",
|
|
"@typescript-eslint/adjacent-overload-signatures": "off",
|
|
"@typescript-eslint/ban-types": "off",
|
|
"@typescript-eslint/camelcase": "off",
|
|
"@typescript-eslint/consistent-type-assertions": "off",
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
"@typescript-eslint/member-delimiter-style": "off",
|
|
"@typescript-eslint/no-empty-interface": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
"@typescript-eslint/no-misused-new": "off",
|
|
"@typescript-eslint/no-namespace": "off",
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"@typescript-eslint/no-this-alias": "off",
|
|
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
"@typescript-eslint/prefer-namespace-keyword": "off",
|
|
"@typescript-eslint/triple-slash-reference": "off",
|
|
"@typescript-eslint/type-annotation-spacing": "off",
|
|
"@typescript-eslint/no-array-constructor": "off",
|
|
"@typescript-eslint/no-empty-function": "off",
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
"@typescript-eslint/no-use-before-define": "off"
|
|
}
|
|
}
|