-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (39 loc) · 1.49 KB
/
linter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: linter
on: [push, pull_request]
jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Lint Code Base
uses: super-linter/super-linter@v5
env:
# https://github.com/super-linter/super-linter#environment-variables
IGNORE_GENERATED_FILES: true
IGNORE_GITIGNORED_FILES: true
# this decides whether Super Linter should lint the whole codebase
# or just the changes introduced with that commit.
VALIDATE_ALL_CODEBASE: true
# to add a specific language linter,the format is: VALIDATE_{LANGUAGE}_{LINTER}
# setting to true will run only the linter.
# setting to false will run all linters except it.
JAVASCRIPT_DEFAULT_STYLE: standard/prettier
# VALIDATE_PYTHON_BLACK: true
VALIDATE_JAVASCRIPT_ES: true
# VALIDATE_HTML: true
# VALIDATE_CSS: true
# where your linter config files should go like;
# .clang-fromat, .eslintrc.yml, .htmlhintrc, etc.
# the value is default is .github/linters/
# LINTER_RULES_PATH: /
# you can also hard code a specific linter config path
# JAVASCRIPT_ES_CONFIG_FILE: configs/linters/.eslintrc.yml
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}