Skip to content

Commit 9ad0554

Browse files
committed
chore(release): v0.4.2
1 parent bba9e90 commit 9ad0554

File tree

5 files changed

+519
-782
lines changed

5 files changed

+519
-782
lines changed

.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { prettier } = require('prefer-code-style')
1+
const { prettier } = require('./lib')
22

33
module.exports = {
44
...prettier,

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
"deps": "yarn upgrade-interactive --latest",
3030
"lint": "yarn lint:es",
3131
"lint:es": "eslint --ignore-path \"./.eslintignore\" \"./**/*.{js,jsx,ts,tsx}\"",
32+
"test:js": "yarn build && cd ./jsExample && yarn lint",
33+
"test:demo": "yarn build && cd ./demo && yarn lint",
3234
"test": "echo \"Error: no test specified\" && exit 1"
3335
},
3436
"config": {
@@ -61,6 +63,6 @@
6163
"devDependencies": {
6264
"cz-conventional-changelog": "3.3.0",
6365
"rimraf": "^3.0.2",
64-
"typescript": "^4.4.2"
66+
"typescript": "<4.4.0"
6567
}
6668
}

src/eslint.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ module.exports = {
1010
node: true,
1111
browser: true,
1212
es6: true,
13+
mocha: true,
14+
jest: true,
1315
},
16+
1417
parser: IS_TS_PROJECT ? '@typescript-eslint/parser' : '@babel/eslint-parser',
15-
extends: (() =>
18+
19+
extends: (() =>
1620
[
1721
'eslint:recommended',
1822
IS_TS_PROJECT ? 'plugin:@typescript-eslint/recommended' : null,
@@ -23,9 +27,10 @@ module.exports = {
2327
'plugin:react/recommended',
2428
'plugin:react-hooks/recommended',
2529
'plugin:prettier/recommended',
26-
].filter((ext) => ext && typeof ext === 'string')
27-
)(),
30+
].filter((ext) => ext && typeof ext === 'string'))(),
31+
2832
plugins: ['simple-import-sort'],
33+
2934
rules: {
3035
'simple-import-sort/imports': 1,
3136
'simple-import-sort/exports': 1,

src/stylelint.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ module.exports = {
44
'stylelint-prettier/recommended',
55
'stylelint-config-rational-order',
66
],
7+
78
plugins: ['stylelint-scss', 'stylelint-order'],
9+
810
rules: {
911
'at-rule-no-unknown': null,
1012
'scss/at-rule-no-unknown': [
@@ -14,5 +16,6 @@ module.exports = {
1416
},
1517
],
1618
},
19+
1720
ignoreFiles: ['build/**/*.css'],
1821
}

0 commit comments

Comments
 (0)