mirror of
https://github.com/wger-project/wger.git
synced 2026-02-18 00:17:51 +01:00
Copy linter config file for github super linter
This commit is contained in:
51
.github/linters/.eslintrc.json
vendored
Normal file
51
.github/linters/.eslintrc.json
vendored
Normal file
@@ -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": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
29
.github/linters/.eslintrc.yml
vendored
29
.github/linters/.eslintrc.yml
vendored
@@ -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"
|
||||
}
|
||||
}
|
||||
1
.github/workflows/linter.yml
vendored
1
.github/workflows/linter.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user