Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Copy linter config file for github super linter

Roland Geider5edcbef7a8c4
diff --git a/.github/linters/.eslintrc.json b/.github/linters/.eslintrc.json
new file mode 100644
index 000000000..1e4624e68
--- /dev/null
+++ b/.github/linters/.eslintrc.json
@@ -0,0 +1,51 @@
+{
+ "root": true,
+ "ignorePatterns": [
+ "projects/**/*"
+ ],
+ "overrides": [
+ {
+ "files": [
+ "*.ts"
+ ],
+ "parserOptions": {
+ "project": [
+ "tsconfig.json",
+ "e2e/tsconfig.json"
+ ],
+ "createDefaultProgram": true
+ },
+ "extends": [
+ "plugin:@angular-eslint/recommended",
+ "plugin:@angular-eslint/template/process-inline-templates"
+ ],
+ "rules": {
+ "@angular-eslint/component-selector": [
+ "error",
+ {
+ "prefix": "app",
+ "style": "kebab-case",
+ "type": "element"
+ }
+ ],
+ "@angular-eslint/directive-selector": [
+ "error",
+ {
+ "prefix": "app",
+ "style": "camelCase",
+ "type": "attribute"
+ }
+ ]
+ }
+ },
+ {
+ "files": [
+ "*.html"
+ ],
+ "extends": [
+ "plugin:@angular-eslint/template/recommended"
+ ],
+ "rules": {}
+ }
+ ]
+}
diff --git a/.github/linters/.eslintrc.yml b/.github/linters/.eslintrc.yml
deleted file mode 100644
index f43da0d92..000000000
--- a/.github/linters/.eslintrc.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "env": {
- "browser": true,
- "jquery": true,
- "es6": true
- },
- "globals": {
- "d3": true,
- "MozActivity": true,
- "Sortable": true,
- "tinyMCE": true,
- "MG": true
- },
- "ignorePatterns": ["package.json", ],
- "rules": {
- "func-names": [
- "error",
- "never"
- ],
- "no-unused-vars": [
- 2,
- {
- "vars": "all",
- "varsIgnorePattern": "^wger"
- }
- ],
- "no-console": "off"
- }
-}
diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml
index cf31bcb57..2601fda1e 100644
--- a/.github/workflows/linter.yml
+++ b/.github/workflows/linter.yml
@@ -48,7 +48,6 @@ jobs:
- name: Lint Code Base
uses: docker://ghcr.io/github/super-linter:slim-v4
env:
- TYPESCRIPT_ES_CONFIG_FILE: angular/.eslintrc.json
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_MARKDOWN: true
VALIDATE_TYPESCRIPT_ES: true