Skip to content

Commit

Permalink
Breaking: Convert project to ESM (#126)
Browse files Browse the repository at this point in the history
* Rename and refactor Rollup config file

* Convert ESLint config to ESM

* Breaking: Set minimum supported Node.js version

Also breaking: change how exports work, set type to module.

Really just break all the things.

* Update packages, remove globals package

* Streamline ESLint config

* Rename source file
  • Loading branch information
jgarber623 authored Oct 14, 2023
1 parent b84eb4c commit dce6c89
Show file tree
Hide file tree
Showing 6 changed files with 1,637 additions and 356 deletions.
25 changes: 4 additions & 21 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
const config = require('@jgarber/eslint-config');
const globals = require('globals');
import config from '@jgarber/eslint-config';

module.exports = [
...config,
export default [
{
ignores: ['dist/*.?(m)js']
ignores: ['dist']
},
{
files: ['**/*.?(m)js'],
languageOptions: {
globals: {
...globals.browser
}
}
},
{
files: ['spec/**/*[sS]pec.?(m)js'],
languageOptions: {
globals: {
...globals.jasmine
}
}
}
...config
];
Loading

0 comments on commit dce6c89

Please sign in to comment.