Skip to content

Commit

Permalink
no more mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Aug 26, 2024
1 parent 4f0d70c commit 8e3fc63
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 11 deletions.
1 change: 1 addition & 0 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ JAVASCRIPT_DEFAULT_STYLE: prettier
DISABLE_LINTERS:
- JAVASCRIPT_STANDARD
- MARKDOWN_MARKDOWN_LINK_CHECK
- TYPESCRIPT_STANDARD
DISABLE_ERRORS_LINTERS:
- REPOSITORY_SEMGREP
FLAVOR_SUGGESTIONS: false
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Add module declaration
- Rename some files from .js to .mjs
- Disable codecov

## [15.0.0] 2024-26-08

Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Beta

- Add module declaration
- Rename some files from .js to .mjs
- Disable codecov

## [15.0.0] 2024-26-08

- Convert to [ES Module](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /usr/bin/env node

import NpmGroovyLint from "./groovy-lint.mjs";
import NpmGroovyLint from "./groovy-lint.js";
import { pathToFileURL } from "url";

// Create linter/formatter/fixer with arguments
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "npm-groovy-lint",
"version": "15.0.0",
"description": "Lint, format and auto-fix your Groovy / Jenkinsfile / Gradle files",
"exports": "./lib/groovy-lint.mjs",
"exports": "./lib/groovy-lint.js",
"type": "module",
"scripts": {
"lint:fix": "eslint **/*.{js,mjs} --fix && prettier --write \"./lib/**/*.{js,jsx,mjs}\" --tab-width 4 --print-width 150",
Expand Down
2 changes: 1 addition & 1 deletion test/errors.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /usr/bin/env node
import NpmGroovyLint from "../lib/groovy-lint.mjs";
import NpmGroovyLint from "../lib/groovy-lint.js";
import assert from 'assert';
import fs from 'fs-extra'
import { SAMPLE_FILE_SMALL_PATH } from "./helpers/common.js";
Expand Down
2 changes: 1 addition & 1 deletion test/lint-api.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /usr/bin/env node
import NpmGroovyLint from "../lib/groovy-lint.mjs"
import NpmGroovyLint from "../lib/groovy-lint.js"
import assert from 'assert';
import fs from 'fs-extra'
import * as path from "path";
Expand Down
2 changes: 1 addition & 1 deletion test/lint-comments.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /usr/bin / env node
import NpmGroovyLint from "../lib/groovy-lint.mjs"
import NpmGroovyLint from "../lib/groovy-lint.js"
import assert from 'assert';
import { beforeEachTestCase, checkCodeNarcCallsCounter } from "./helpers/common.js";

Expand Down
2 changes: 1 addition & 1 deletion test/lint-fix.rules.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /usr/bin/env node
import NpmGroovyLint from "../lib/groovy-lint.mjs"
import NpmGroovyLint from "../lib/groovy-lint.js"
import { getNpmGroovyLintRules } from "../lib/groovy-lint-rules.js";
import { normalizeNewLines } from "../lib/utils.js";
import assert from 'assert';
Expand Down
2 changes: 1 addition & 1 deletion test/lint-fix.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /usr/bin/env node
import NpmGroovyLint from "../lib/groovy-lint.mjs"
import NpmGroovyLint from "../lib/groovy-lint.js"
import assert from 'assert';
import fs from 'fs-extra'
import * as rimraf from "rimraf";
Expand Down
2 changes: 1 addition & 1 deletion test/lint-format.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /usr/bin/env node
import NpmGroovyLint from "../lib/groovy-lint.mjs"
import NpmGroovyLint from "../lib/groovy-lint.js"
import assert from 'assert';
import fs from 'fs-extra'
import { normalizeNewLines } from "../lib/utils.js";
Expand Down
2 changes: 1 addition & 1 deletion test/lint-range.rules.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /usr/bin/env node
import NpmGroovyLint from "../lib/groovy-lint.mjs"
import NpmGroovyLint from "../lib/groovy-lint.js"
import { getNpmGroovyLintRules } from "../lib/groovy-lint-rules.js";
import { normalizeNewLines } from "../lib/utils.js";
import assert from 'assert';
Expand Down
2 changes: 1 addition & 1 deletion test/miscellaneous.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /usr/bin/env node
import NpmGroovyLint from "../lib/groovy-lint.mjs"
import NpmGroovyLint from "../lib/groovy-lint.js"
import assert from 'assert';
import * as childProcess from "child_process";
import fs from 'fs-extra'
Expand Down
2 changes: 1 addition & 1 deletion test/server.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /usr/bin/env node
import NpmGroovyLint from "../lib/groovy-lint.mjs"
import NpmGroovyLint from "../lib/groovy-lint.js"
import assert from 'assert';
import * as which from 'which'
import { beforeEachTestCase, checkCodeNarcCallsCounter, SAMPLE_FILE_BIG } from "./helpers/common.js";
Expand Down

0 comments on commit 8e3fc63

Please sign in to comment.