Skip to content

Commit cdc50bb

Browse files
committed
merge
2 parents a31646a + 7898142 commit cdc50bb

File tree

8 files changed

+77
-11598
lines changed

8 files changed

+77
-11598
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ There are a few differences to mention:
2929
* the ESM bundles do not contain rdflib, so it must be imported separately.
3030

3131
## Files
32-
- For npm/ESM: `dist/solid-logic.esm.js` (referenced automatically in npm projects)
33-
- For browser UMD, bundled with rdflib: `dist/solid-logic.umd.js` (global `window.SolidLogic`)
34-
- For browser UMD, without rdflib: `dist/solid-logic.umd.external.js` (global `window.SolidLogic`)
32+
- For browser UMD, bundled with rdflib: `dist/solid-logic.js` (global `window.SolidLogic`)
33+
- For browser UMD, without rdflib: `dist/solid-logic.external.js` (global `window.SolidLogic`)
3534
- For browser ESM, without rdflib: `dist/solid-logic.esm.external.js` (import as module)
36-
- also, both flabours, ESM and UMD come in chunked files.
35+
- UMD have also chunked files.
36+
- both version also containe minified versions.
3737

3838

3939
### UMD bundle (global variable)
@@ -44,11 +44,11 @@ There are a few differences to mention:
4444
<!-- or -->
4545
<!-- script src="https://cdn.jsdelivr.net/npm/rdflib/dist/rdflib.min.js"></script -->
4646
<!-- Load solid-logic UMD bundle -->
47-
<script src="https://unpkg.com/solid-logic/dist/solid-logic.umd.min.js"></script>
47+
<script src="https://unpkg.com/solid-logic/dist/solid-logic.min.js"></script>
4848
<!-- or -->
49-
<!-- script src="https://cdn.jsdelivr.net/npm/solid-logic/dist/solid-logic.umd.min.js"></script -->
49+
<!-- script src="https://cdn.jsdelivr.net/npm/solid-logic/dist/solid-logic.min.js"></script -->
5050
<!-- or -->
51-
<!-- script src="dist/solid-logic.umd.js"></script -->
51+
<!-- script src="dist/solid-logic.js"></script -->
5252
<script>
5353
// Access via global variable
5454
const logic = window.SolidLogic;
@@ -101,7 +101,7 @@ Check the scripts in the `package.json` for build, watch, lint and test.
101101
* TypeScript + Babel
102102
* Jest
103103
* ESLint
104-
* Rollup
104+
* Webpack
105105

106106
# How to release
107107

eslint.config.js

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
import tsParser from '@typescript-eslint/parser'
22
import tseslintPlugin from '@typescript-eslint/eslint-plugin'
3-
import tseslint from 'typescript-eslint'
43
import importPlugin from 'eslint-plugin-import'
54

65
export default [
7-
...tseslint.configs.recommended,
86
{
9-
files: ['src/**/*.ts', 'test/**/*.test.ts'],
10-
ignores: ['dist/**', 'node_modules/**'],
7+
ignores: [
8+
'dist/**',
9+
'node_modules/**',
10+
'coverage/**'
11+
],
12+
},
13+
{
14+
files: ['src/**/*.js', 'src/**/*.ts', 'src/**/*.cjs', 'src/**/*.mjs'],
1115
languageOptions: {
1216
parser: tsParser,
1317
parserOptions: {
14-
project: ['./tsconfig.json', './tsconfig.test.json'],
18+
project: ['./tsconfig.json'],
1519
sourceType: 'module',
1620
},
1721
},
@@ -20,11 +24,26 @@ export default [
2024
import: importPlugin,
2125
},
2226
rules: {
23-
'semi': ['error', 'never'],
24-
'quotes': ['error', 'single'],
27+
semi: ['error', 'never'],
28+
quotes: ['error', 'single'],
2529
'no-unused-vars': 'off', // handled by TS
2630
'@typescript-eslint/no-unused-vars': ['warn'],
2731
'@typescript-eslint/no-explicit-any': 'warn',
2832
},
2933
},
34+
{
35+
files: ['test/**/*.js', 'test/**/*.ts'],
36+
languageOptions: {
37+
parser: tsParser,
38+
parserOptions: {
39+
project: ['./tsconfig.test.json'],
40+
},
41+
},
42+
rules: {
43+
semi: ['error', 'never'],
44+
quotes: ['error', 'single'],
45+
'no-console': 'off', // Allow console in tests
46+
'no-undef': 'off', // Tests may define globals
47+
}
48+
}
3049
]

0 commit comments

Comments
 (0)