Skip to content

Commit db841bf

Browse files
authored
Merge pull request #3 from jerone/feature/bundler
2 parents dc24061 + 2d7c1ba commit db841bf

16 files changed

+3653
-217
lines changed

.config/cspell.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ const cspell = {
1616
ignorePaths: [
1717
".git", // Because `enableGlobDot` is enabled.
1818
"node_modules", // Because `enableGlobDot` is enabled.
19+
".parcel-cache",
20+
"dist",
1921
".gitignore", // Generated file and contains many pathnames.
2022
],
2123
enableGlobDot: true,

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.parcel-cache/
2+
dist/
13
node_modules/
24
package-lock.json
35
LICENSE

.eslintrc.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = defineConfig({
1313
},
1414
parserOptions: {
1515
ecmaVersion: "latest",
16+
sourceType: "module",
1617
},
1718
extends: [
1819
"eslint:recommended",
@@ -28,6 +29,23 @@ module.exports = defineConfig({
2829
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }], // Ignore variables whose names begin with an underscore.
2930
},
3031
overrides: [
32+
/*
33+
* JavaScript (ESM & CommonJS) files.
34+
*/
35+
{
36+
files: ["*.mjs", "*.cjs"],
37+
extends: [
38+
"eslint:recommended",
39+
"plugin:security/recommended-legacy",
40+
41+
// Display Prettier errors as ESLint errors.
42+
// Enables eslint-plugin-prettier and eslint-config-prettier.
43+
"plugin:prettier/recommended",
44+
45+
//! Prettier should always be the last configuration in the extends array.
46+
],
47+
},
48+
3149
/*
3250
* JSON files.
3351
*/

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
name: "test (node v${{ matrix.node-version }})"
2222
strategy:
2323
matrix:
24-
node-version: [16, 18, 20]
24+
node-version: [18, 20, 21]
2525
steps:
2626
- uses: actions/checkout@v4
2727
- name: Setup Node.js ${{ matrix.node-version }}

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
*
2-
!src/**
2+
!dist/**
33
!package.json
44
!LICENSE
55
!README.md

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
.parcel-cache/
2+
dist/
13
node_modules/
24
package-lock.json

0 commit comments

Comments
 (0)