Skip to content

Commit 84e51ad

Browse files
committed
chore: migrate config files to ESModule format
1 parent f8915b1 commit 84e51ad

9 files changed

Lines changed: 43 additions & 18 deletions

apps/solidjs-boilerplate/commitlint.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type { UserConfig } from '@commitlint/types';
2+
3+
const configuration: UserConfig = {
4+
extends: ['@commitlint/config-conventional'],
5+
};
6+
7+
// eslint-disable-next-line import/no-default-export
8+
export default configuration;

apps/solidjs-boilerplate/lint-staged.config.js

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default {
2+
'*': ['secretlint'],
3+
'src/**/*.{js,jsx,ts,tsx}': ['eslint --fix', 'eslint'],
4+
'src/**/*.ts?(x)': () => 'npm run type-check',
5+
'src/**/*{,.*}.{css,scss}': ['stylelint --fix', 'stylelint'],
6+
'src/**/*.json': ['prettier --write'],
7+
};

apps/solidjs-boilerplate/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"devDependencies": {
2525
"@commitlint/cli": "^19.8.1",
2626
"@commitlint/config-conventional": "^19.8.1",
27+
"@commitlint/types": "^19.8.1",
2728
"@playwright/test": "^1.53.2",
2829
"@secretlint/secretlint-rule-preset-recommend": "^10.1.1",
2930
"@solidjs/testing-library": "^0.8.10",

apps/solidjs-boilerplate/prettier.config.js

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const config = {
2+
singleQuote: true,
3+
trailingComma: 'all',
4+
arrowParens: 'avoid',
5+
};
6+
7+
export default config;

apps/solidjs-boilerplate/stylelint.config.js renamed to apps/solidjs-boilerplate/stylelint.config.mjs

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
// @ https://stylelint.io/user-guide/example-config
2-
module.exports = {
3-
extends: ['stylelint-config-standard', 'stylelint-config-recess-order'],
1+
/** @type {import('stylelint').Config} */
2+
const config = {
3+
extends: [
4+
'stylelint-config-standard',
5+
'stylelint-config-recess-order',
6+
],
47
plugins: ['stylelint-prettier'],
58
rules: {
69
'alpha-value-notation': 'number',
@@ -19,9 +22,18 @@ module.exports = {
1922
'variants',
2023
'responsive',
2124
'screen',
25+
'custom-variant',
26+
'theme',
27+
'utility',
2228
],
2329
},
2430
],
31+
'at-rule-no-deprecated': [
32+
true,
33+
{
34+
ignoreAtRules: ['apply'],
35+
},
36+
],
2537
'custom-media-pattern': '^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
2638
'custom-property-pattern': '^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
2739
'comment-empty-line-before': 'never',
@@ -37,3 +49,5 @@ module.exports = {
3749
'selector-class-pattern': null,
3850
},
3951
};
52+
53+
export default config;

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)