Skip to content

Commit 9043799

Browse files
authored
Minor prep fixes for v1.0.3 - PR#13 from glenn2223
- Added another command to `tests.yml` to catch pre-publish errors - Fixed pre-publish error - Another dev dependency (non-ser facing)
2 parents 0bd352c + 4a7633c commit 9043799

File tree

4 files changed

+82
-45
lines changed

4 files changed

+82
-45
lines changed

.github/workflows/tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ jobs:
1414
node-version: '20.x'
1515
- run: npm ci
1616
- run: npm test
17+
- run: npm run prepublishOnly

eslint.config.mjs

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import path from 'node:path';
55
import { fileURLToPath } from 'node:url';
66
import js from '@eslint/js';
77
import { FlatCompat } from '@eslint/eslintrc';
8+
import stylistic from '@stylistic/eslint-plugin';
89

910
const __filename = fileURLToPath(import.meta.url);
1011
const __dirname = path.dirname(__filename);
@@ -21,6 +22,7 @@ export default [
2122
),
2223
{
2324
plugins: {
25+
'@stylistic': stylistic,
2426
'@typescript-eslint': typescriptEslint,
2527
},
2628

@@ -45,10 +47,9 @@ export default [
4547
},
4648
],
4749

48-
'@typescript-eslint/semi': 'warn',
50+
'@stylistic/semi': 'warn',
4951
'@typescript-eslint/ban-ts-comment': 'off',
5052
'@typescript-eslint/no-non-null-assertion': 'off',
51-
semi: 'off',
5253
'getter-return': 'warn',
5354
'no-dupe-args': 'warn',
5455
'no-dupe-else-if': 'warn',

package-lock.json

+77-43
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"devDependencies": {
6060
"@rollup/plugin-terser": "^0.4.4",
6161
"@rollup/plugin-typescript": "^11.1.6",
62+
"@stylistic/eslint-plugin": "^2.8.0",
6263
"@types/jest": "^29.5.12",
6364
"@typescript-eslint/eslint-plugin": "^8.5.0",
6465
"@typescript-eslint/parser": "^8.5.0",

0 commit comments

Comments
 (0)