Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update megalinter.yml #148

Draft
wants to merge 13 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"ignorePatterns": [
"node_modules/",
"dist/",
"build/",
"**/*.spec.ts",
"**/*.d.ts",
"**/*.conf.ts",
"**/test.ts",
"**/polyfills.ts",
"**/version.js"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"no-case-declarations": "off",
"@typescript-eslint/ban-types": "off",
"no-prototype-builtins": "off",
"no-async-promise-executor": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-undef": "off",
"@typescript-eslint/no-var-requires": "off",
"no-cond-assign": "off",
"no-constant-condition": "off",
"prefer-const": "off",
"no-debugger": "off",
"no-empty": "off",
"no-extra-boolean-cast": "off",
"no-useless-escape": "off"
}
}
3 changes: 2 additions & 1 deletion .mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ ENABLE_LINTERS:
- DOCKERFILE_HADOLINT
- JSON_PRETTIER
- HTML_HTMLHINT
# - TYPESCRIPT_STANDARD
- TYPESCRIPT_ES
- TYPESCRIPT_STANDARD

# DISABLE:
# - COPYPASTE # Uncomment to enable checks of abusive copy-pastes
Expand Down
38 changes: 7 additions & 31 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@
"main": "src/main.ts",
"tsConfig": "src/tsconfig.app.json",
"polyfills": "src/polyfills.ts",
"assets": [
"src/favicon.ico",
"src/robots.txt",
"src/manifest.json",
"src/assets"
],
"assets": ["src/favicon.ico", "src/robots.txt", "src/manifest.json", "src/assets"],
"styles": [
"node_modules/font-awesome/css/font-awesome.css",
"src/main.scss",
Expand Down Expand Up @@ -67,10 +62,7 @@
}
],
"scripts": [],
"allowedCommonJsDependencies": [
"lodash",
"@ckeditor/ckeditor5-build-classic"
]
"allowedCommonJsDependencies": ["lodash", "@ckeditor/ckeditor5-build-classic"]
},
"configurations": {
"production": {
Expand Down Expand Up @@ -208,24 +200,13 @@
"bundleName": "pictonblue-yellowgreen"
}
],
"assets": [
"src/favicon.ico",
"src/robots.txt",
"src/manifest.json",
"src/assets"
]
"assets": ["src/favicon.ico", "src/robots.txt", "src/manifest.json", "src/assets"]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
"lintFilePatterns": ["src/**/*.ts"]
}
}
}
Expand Down Expand Up @@ -253,14 +234,9 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"e2e/tsconfig.e2e.json"
],
"exclude": [
"**/node_modules/**"
]
"lintFilePatterns": ["src/**/*.ts"]
}
}
}
Expand Down
Loading
Loading