Skip to content

Commit f7e7fcc

Browse files
Merge pull request #197 from BenoitZugmeyer/update-eslint-prettier
ci: update eslint config
2 parents e6d0e43 + ae0a8f8 commit f7e7fcc

File tree

13 files changed

+747
-284
lines changed

13 files changed

+747
-284
lines changed

.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
extends: ["eslint:recommended", "prettier"],
3+
4+
rules: {
5+
"no-constant-condition": "off",
6+
"no-unused-vars": [
7+
"error",
8+
{ varsIgnorePattern: "^_", argsIgnorePattern: "^_" },
9+
],
10+
},
11+
12+
env: {
13+
node: true,
14+
es2018: true,
15+
},
16+
}

.eslintrc.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: Bug report
33
about: Report a bug or a misbehaviour
4-
54
---
65

76
## Description
@@ -12,17 +11,18 @@ Describe the issue precisely: what are you trying to do? what's the expected res
1211

1312
## Setup configuration
1413

15-
* ESLint version:
16-
* eslint-plugin-html version:
17-
* NodeJS version:
18-
* Operating System name and version:
19-
* ESLint configuration (.eslintrc):
14+
- ESLint version:
15+
- eslint-plugin-html version:
16+
- NodeJS version:
17+
- Operating System name and version:
18+
- ESLint configuration (.eslintrc):
2019

2120
<!--
2221
If run from an editor plugin:
2322
-->
24-
* Editor name and version:
25-
* Plugin name and version:
23+
24+
- Editor name and version:
25+
- Plugin name and version:
2626

2727
## Aditional context
2828

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
54
---
65

76
## Description

.github/dependabot.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
version: 2
22
updates:
3-
- package-ecosystem: npm
4-
directory: "/"
5-
schedule:
6-
interval: weekly
7-
open-pull-requests-limit: 99
8-
- package-ecosystem: github-actions
9-
directory: "/"
10-
schedule:
11-
interval: daily
12-
open-pull-requests-limit: 99
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 99
8+
- package-ecosystem: github-actions
9+
directory: "/"
10+
schedule:
11+
interval: daily
12+
open-pull-requests-limit: 99

.github/workflows/tests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- main
88
schedule:
99
# Every sunday at midnight
10-
- cron: '0 0 * * 0'
10+
- cron: "0 0 * * 0"
1111

1212
jobs:
1313
lint:
@@ -19,6 +19,8 @@ jobs:
1919
cache: npm
2020
- run: npm ci
2121
- run: npm run lint
22+
- run: npm run format
23+
- run: npx markdown-link-check -p README.md
2224

2325
integration:
2426
runs-on: ${{ matrix.os }}
@@ -39,10 +41,10 @@ jobs:
3941
# https://github.com/actions/setup-node/issues/515#issuecomment-1153685437
4042
- if: ${{ matrix.os == 'windows-latest' }}
4143
run: |
42-
$WhereNode = Get-Command node | Select-Object -ExpandProperty Definition
43-
$NodeDirPath = Split-Path $WhereNode -Parent
44-
cd $NodeDirPath
45-
npm install npm@8.12.1
44+
$WhereNode = Get-Command node | Select-Object -ExpandProperty Definition
45+
$NodeDirPath = Split-Path $WhereNode -Parent
46+
cd $NodeDirPath
47+
npm install npm@8.12.1
4648
- run: npm ci
4749
- run: bash tools/integration-tests.bash ${{ matrix.eslint }}
4850

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/src/__tests__/fixtures

0 commit comments

Comments
 (0)