Skip to content

Commit e8be59f

Browse files
author
Christoph Werner
committed
chore: eslint instead of tslint
1 parent e5a72af commit e8be59f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+13619
-9757
lines changed

.eslintrc.cjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
extends: ['@antfu', 'prettier'],
3+
plugins: ['prettier'],
4+
ignorePatterns: ['**/*.md', '**/*.json', '**/*.yml'],
5+
rules: {
6+
'prettier/prettier': ['error', { semi: false, singleQuote: true }],
7+
},
8+
}

.github/dependabot.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
version: 2
22
updates:
3-
- package-ecosystem: npm
4-
directory: "/"
5-
schedule:
6-
interval: "weekly"
7-
day: "sunday"
8-
time: "06:00"
9-
timezone: "Europe/Berlin"
10-
# minor and patch updates for webpack and webpack's typescript
11-
# types are updated manually as they will break the build
12-
# rather often`
13-
ignore:
14-
- dependency-name: "webpack"
15-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
16-
- dependency-name: "@types/webpack"
17-
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
18-
open-pull-requests-limit: 50
3+
- package-ecosystem: npm
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
day: sunday
8+
time: '06:00'
9+
timezone: Europe/Berlin
10+
# minor and patch updates for webpack and webpack's typescript
11+
# types are updated manually as they will break the build
12+
# rather often`
13+
ignore:
14+
- dependency-name: webpack
15+
update-types: ['version-update:semver-minor', 'version-update:semver-patch']
16+
- dependency-name: '@types/webpack'
17+
update-types: ['version-update:semver-minor', 'version-update:semver-patch']
18+
open-pull-requests-limit: 50

.github/workflows/lint-pr-title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Conventional Commits"
1+
name: Conventional Commits
22

33
on:
44
pull_request_target:

.github/workflows/test.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,31 @@ jobs:
1717
matrix:
1818
node-version: [14.x, 16.x, 18.x]
1919
steps:
20-
- uses: actions/checkout@v2
21-
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v1
23-
with:
24-
node-version: ${{ matrix.node-version }}
25-
- name: Install dependencies
26-
run: |
27-
npm ci
28-
cd test/e2e/example
29-
npm ci
30-
env:
31-
CI: true
32-
- name: Run tests and generate coverage information
33-
if: matrix.node-version == '18.x'
34-
run: |
35-
NODE_OPTIONS=--openssl-legacy-provider npm run test:ci
36-
env:
37-
CI: true
38-
- name: Run tests and generate coverage information
39-
if: matrix.node-version != '18.x'
40-
run: |
41-
npm run test:ci
42-
env:
43-
CI: true
44-
- name: Upload coverage to Codecov
45-
uses: codecov/codecov-action@v1
46-
with:
47-
token: ${{ secrets.CODECOV_TOKEN }}
20+
- uses: actions/checkout@v2
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
- name: Install dependencies
26+
run: |
27+
npm ci
28+
cd test/e2e/example
29+
npm ci
30+
env:
31+
CI: true
32+
- name: Run tests and generate coverage information
33+
if: matrix.node-version == '18.x'
34+
run: |
35+
NODE_OPTIONS=--openssl-legacy-provider npm run test:ci
36+
env:
37+
CI: true
38+
- name: Run tests and generate coverage information
39+
if: matrix.node-version != '18.x'
40+
run: |
41+
npm run test:ci
42+
env:
43+
CI: true
44+
- name: Upload coverage to Codecov
45+
uses: codecov/codecov-action@v1
46+
with:
47+
token: ${{ secrets.CODECOV_TOKEN }}

.vscode/settings.json

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
{
2-
"editor.formatOnSave": true,
2+
"prettier.enable": false,
3+
"editor.formatOnSave": false,
34
"editor.codeActionsOnSave": {
4-
"source.organizeImports": true
5+
"source.fixAll.eslint": true,
6+
"source.organizeImports": false
7+
},
8+
"eslint.validate": [
9+
"javascript",
10+
"javascriptreact",
11+
"typescript",
12+
"typescriptreact",
13+
"html",
14+
"markdown",
15+
"json",
16+
"jsonc",
17+
"yaml"
18+
],
19+
"[prisma]": {
20+
"editor.defaultFormatter": "Prisma.prisma",
21+
"editor.formatOnSave": true
522
}
623
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ This way, the output can be formatted to any format you might need and then be w
195195
```js
196196
const LicensePlugin = require('webpack-license-plugin')
197197

198-
const csvTransform = (packages) => {
198+
function csvTransform(packages) {
199199
const keys = ['name', 'version', 'license']
200200

201201
return [

0 commit comments

Comments
 (0)