Skip to content

Commit

Permalink
chore: switch to @antfu/eslint-config (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Oct 31, 2022
1 parent 969dacc commit 1b93bec
Show file tree
Hide file tree
Showing 25 changed files with 599 additions and 488 deletions.
8 changes: 1 addition & 7 deletions .eslintrc
@@ -1,9 +1,3 @@
{
"extends": [
"@nuxtjs/eslint-config-typescript"
],
"rules": {
"no-use-before-define": "off",
"import/no-named-as-default-member": "off"
}
"extends": ["@antfu"]
}
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -9,6 +9,24 @@ on:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Setup
run: npm i -g @antfu/ni

- name: Install
run: nci

- name: Lint
run: nr lint

ci:
runs-on: ${{ matrix.os }}

Expand Down
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -3,13 +3,13 @@
"version": "0.10.2",
"packageManager": "pnpm@7.14.0",
"description": "Unified plugin system for build tools",
"repository": "unjs/unplugin",
"license": "MIT",
"repository": "unjs/unplugin",
"sideEffects": false,
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"./dist/webpack/loaders/load": "./dist/webpack/loaders/load.js",
"./dist/webpack/loaders/transform": "./dist/webpack/loaders/transform.js"
Expand Down Expand Up @@ -38,8 +38,8 @@
},
"devDependencies": {
"@ampproject/remapping": "^2.2.0",
"@antfu/eslint-config": "^0.27.0",
"@antfu/ni": "^0.18.3",
"@nuxtjs/eslint-config-typescript": "^11.0.0",
"@types/express": "^4.17.14",
"@types/fs-extra": "^9.0.13",
"@types/node": "^18.11.5",
Expand Down

0 comments on commit 1b93bec

Please sign in to comment.