Skip to content

Commit f5eccc1

Browse files
authored
Merge pull request #309 from nod-ai/staging/v0.2.0
Release v0.2.0
2 parents fbb0781 + e45aa4e commit f5eccc1

File tree

115 files changed

+3428
-1105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+3428
-1105
lines changed

.github/workflows/conventional-commit.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ jobs:
1717
- name: Ensure PR Title Conforms To Conventional Commit Message
1818
uses: ytanikin/[email protected]
1919
with:
20-
task_types: '["feature","fix","docs","tests","build","ci","refactor","chore","revert","linter","types"]'
20+
## cspell:words prefeature
21+
task_types: '["feature","prefeature","fix","docs","tests","build","ci","refactor","chore","revert","linter","types"]'

cypress.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ import {
22
defineConfig,
33
} from 'cypress';
44

5-
export default defineConfig({
5+
const cypressConfig = defineConfig({
66
e2e: {
77
specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}',
88
baseUrl : 'http://localhost:4173',
99
},
1010
});
11+
12+
export {
13+
cypressConfig as default,
14+
};

eslint.config.ts

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
vueTsConfigs,
66
} from '@vue/eslint-config-typescript';
77
// @ts-expect-error https://github.com/cypress-io/eslint-plugin-cypress/issues/232
8-
import pluginCypress from 'eslint-plugin-cypress/flat';
8+
import pluginCypress from 'eslint-plugin-cypress';
99
// @ts-expect-error https://github.com/import-js/eslint-plugin-import/pull/3097
1010
import importPlugin from 'eslint-plugin-import';
1111
import pluginVue from 'eslint-plugin-vue';
@@ -32,6 +32,12 @@ const importPluginConfigs: ConfigWithExtends[] = [
3232
},
3333
},
3434
rules: {
35+
'import/exports-last': [
36+
'error', // Encourages decoupling the export of a module from its declaration, which leads to cleaner diffs
37+
],
38+
'import/group-exports': [
39+
'error', // Encourages decoupling the export of a module from its declaration, which leads to cleaner diffs
40+
],
3541
'import/order': [
3642
'error',
3743
{
@@ -87,9 +93,31 @@ const configWithVueTS = defineConfigWithVueTs(
8793

8894
{
8995
rules: {
90-
'eqeqeq' : 'error', // Avoids `==` and `!=`, which perform type coercions that follow the rather obscure Abstract Equality Comparison Algorithm: https://www.ecma-international.org/ecma-262/5.1/#sec-11.9.3
91-
'no-implicit-coercion' : 'error', // Using constructors, factories, and parsers for coercion rather than operators leads to less confusing behavior
92-
'@typescript-eslint/explicit-member-accessibility': 'error', // Easier to see dead code in situations where a member is marked `private`
96+
'eqeqeq': [
97+
'error', // Avoids `==` and `!=`, which perform type coercions that follow the rather obscure Abstract Equality Comparison Algorithm: https://www.ecma-international.org/ecma-262/5.1/#sec-11.9.3
98+
],
99+
'no-implicit-coercion': [
100+
'error', // Using constructors, factories, and parsers for coercion rather than operators leads to less confusing behavior
101+
],
102+
'no-restricted-exports': ['error', {
103+
restrictDefaultExports: {
104+
direct: true, // Keeping the export of something separate from its declaration leads to cleaner diffs. Prefer using `export { Foo as default }`
105+
},
106+
}],
107+
'no-restricted-syntax': [
108+
'error',
109+
{
110+
selector: 'TryStatement',
111+
message : 'Prefer `Attempt.to` for error matching over `try`/`catch`.',
112+
},
113+
{
114+
selector: 'ThrowStatement',
115+
message : 'Prefer `Attempt.that` callback for error propagation over `throw`.',
116+
},
117+
],
118+
'@typescript-eslint/explicit-member-accessibility': [
119+
'error', // Easier to see dead code in situations where a member is marked `private`
120+
],
93121
},
94122
},
95123

@@ -154,7 +182,7 @@ const configWithVueTS = defineConfigWithVueTs(
154182
},
155183
);
156184

157-
export default tseslint.config([
185+
const completeConfig = tseslint.config([
158186
...configWithVueTS,
159187
{
160188
name : 'shark-ui/safety-override',
@@ -170,3 +198,7 @@ export default tseslint.config([
170198
},
171199
},
172200
]);
201+
202+
export {
203+
completeConfig as default,
204+
};

lint-staged.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import type {
22
Configuration,
33
} from 'lint-staged';
44

5-
export default {
5+
const lintStagedConfig = {
66
'*': 'npm run lint',
77
} satisfies Configuration;
8+
9+
export {
10+
lintStagedConfig as default,
11+
};

0 commit comments

Comments
 (0)