Skip to content

Commit

Permalink
Merge pull request #35 from mansona/esm-only
Browse files Browse the repository at this point in the history
move to esm only with type:module
  • Loading branch information
mansona authored Dec 8, 2024
2 parents e46e195 + bbbe475 commit 88684ed
Show file tree
Hide file tree
Showing 12 changed files with 257 additions and 43 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion eslint.config.mjs → eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export default [

globals: globals.mocha,
},
files: ['test/*.mjs']
files: ['test/*.js']
}
];
3 changes: 0 additions & 3 deletions index.js

This file was deleted.

File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions lib/ignore.mjs → lib/ignore.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { createRequire } from 'module';
import { readFileSync } from "fs";
import { join } from "path";

import getFiles from "./get-files.mjs";
import ignoreError from './ignore-error.mjs';
import getFiles from "./get-files.js";
import ignoreError from './ignore-error.js';

const require = createRequire(import.meta.url);

Expand Down
4 changes: 2 additions & 2 deletions main.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { readFileSync } from 'fs';
import { join } from 'path';
import getFiles from './lib/get-files.mjs';
import getFiles from './lib/get-files.js';

export { default as ignoreAll } from './lib/ignore.mjs';
export { default as ignoreAll } from './lib/ignore.js';

export const capabilities = ['filter-ignore'];

Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
"version": "2.0.0",
"repository": "/~https://github.com/mansona/lint-to-the-future-ember-template",
"license": "MIT",
"main": "main.mjs",
"type": "module",
"scripts": {
"lint": "eslint .",
"test": "mocha --recursive --reporter spec test/**/*.mjs",
"test": "mocha --recursive --reporter spec test",
"test-watch": "npm run test -- -w --reporter min"
},
"dependencies": {
"esm": "^3.2.25",
"walk-sync": "^2.2.0"
},
"devDependencies": {
Expand All @@ -19,8 +20,10 @@
"eslint": "^9.14.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.31.0",
"execa": "^9.5.1",
"fixturify-project": "^7.1.3",
"globals": "^15.12.0",
"lint-to-the-future": "^2.5.1",
"mocha": "^10.0.0",
"release-plan": "^0.9.0"
},
Expand Down
Loading

0 comments on commit 88684ed

Please sign in to comment.