Skip to content

Commit

Permalink
fix(eslint-plugin): support ESM modudule syntax (.mjs)
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver committed Dec 6, 2024
1 parent bdd1d3e commit e2f35c8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
43 changes: 22 additions & 21 deletions modules/eslint-plugin/project.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,18 @@
{
"name": "eslint-plugin",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "modules/eslint-plugin/src",
"projectType": "library",
"generators": {},
"sourceRoot": "modules/eslint-plugin/src",
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"modules/eslint-plugin/*/**/*.ts",
"modules/eslint-plugin/*/**/*.html"
]
},
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
"options": {
"jestConfig": "modules/eslint-plugin/jest.config.ts",
"runInBand": true,
"passWithNoTests": false
},
"outputs": ["{workspaceRoot}/coverage/modules/eslint-plugin"]
},
"build-package": {
"executor": "@nx/js:tsc",
"options": {
"outputPath": "dist/modules/eslint-plugin",
"tsConfig": "modules/eslint-plugin/tsconfig.build.json",
"packageJson": "modules/eslint-plugin/package.json",
"main": "modules/eslint-plugin/src/index.ts",
"additionalEntryPoints": ["modules/eslint-plugin/v9/index.ts"],
"generateExportsField": true,
"updateBuildableProjectDepsInPackageJson": false,
"sourceMap": false,
"assets": [
Expand Down Expand Up @@ -73,6 +55,25 @@
]
},
"outputs": ["{workspaceRoot}/dist/modules/eslint-plugin"]
},
"test": {
"executor": "@nx/jest:jest",
"options": {
"jestConfig": "modules/eslint-plugin/jest.config.ts",
"runInBand": true,
"passWithNoTests": false
},
"outputs": ["{workspaceRoot}/coverage/modules/eslint-plugin"]
},
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"modules/eslint-plugin/*/**/*.ts",
"modules/eslint-plugin/*/**/*.html"
]
},
"outputs": ["{options.outputFile}"]
}
},
"tags": []
Expand Down
1 change: 0 additions & 1 deletion modules/eslint-plugin/v9/ng-package.json

This file was deleted.

0 comments on commit e2f35c8

Please sign in to comment.