diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c275826..f6c1236 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,10 @@ on: branches: - main - dev + push: + branches-ignore: + - dev + - main concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/README.md b/README.md index aaedf64..25ba930 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # `@lexjs/eslint-plugin` +![Build](https://img.shields.io/github/actions/workflow/status/LexBorisoff/eslint-plugin/release.yml) +![NPM Version](https://img.shields.io/npm/v/@lexjs/eslint-plugin) +![Static Badge](https://img.shields.io/badge/package-ESM--only-ffe536) + - [Installation](#installation) - [Usage](#usage-flat-config) - [Configs](#configs) diff --git a/package-lock.json b/package-lock.json index 9ea77c6..d2b582c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,6 +25,7 @@ }, "peerDependencies": { "eslint": ">=9.0.0", + "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-import": "^2.31.0", "eslint-plugin-prettier": "^5.2.1", @@ -3002,7 +3003,6 @@ "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", "license": "MIT", - "optional": true, "peer": true, "bin": { "eslint-config-prettier": "bin/cli.js" diff --git a/package.json b/package.json index e4c6e2d..b13eec6 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,6 @@ "access": "public" }, "type": "module", - "main": "./dist/plugin/index.js", - "types": "./dist/types/plugin/index.d.ts", "exports": { ".": { "types": "./dist/types/plugin/index.d.ts", @@ -25,12 +23,12 @@ ], "scripts": { "prepack": "npm run build", - "build": "npm run tsc", + "build": "npm run compile", "prebuild": "npm run ci && rimraf ./dist", "ci": "npm run check-style && npm run check-build", "check-style": "npm run format:check && npm run lint", - "check-build": "npm run tsc -- --noEmit", - "tsc": "tsc -p ./tsconfig.build.json", + "check-build": "npm run compile -- --noEmit", + "compile": "tsc -p ./tsconfig.build.json", "format": "prettier --write \"*.{js,cjs,mjs,ts,cts,mts}\" \"src/**/*.ts\"", "format:check": "prettier --check \"*.{js,cjs,mjs,ts,cts,mts}\" \"src/**/*.ts\"", "lint": "eslint \"src/**/*.{js,ts}\"", @@ -56,6 +54,7 @@ "license": "ISC", "peerDependencies": { "eslint": ">=9.0.0", + "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-import": "^2.31.0", "eslint-plugin-prettier": "^5.2.1",