Skip to content

Commit

Permalink
chore(release): v0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Codennnn committed Aug 28, 2021
1 parent bba9e90 commit 9ad0554
Show file tree
Hide file tree
Showing 5 changed files with 519 additions and 782 deletions.
2 changes: 1 addition & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { prettier } = require('prefer-code-style')
const { prettier } = require('./lib')

module.exports = {
...prettier,
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"deps": "yarn upgrade-interactive --latest",
"lint": "yarn lint:es",
"lint:es": "eslint --ignore-path \"./.eslintignore\" \"./**/*.{js,jsx,ts,tsx}\"",
"test:js": "yarn build && cd ./jsExample && yarn lint",
"test:demo": "yarn build && cd ./demo && yarn lint",
"test": "echo \"Error: no test specified\" && exit 1"
},
"config": {
Expand Down Expand Up @@ -61,6 +63,6 @@
"devDependencies": {
"cz-conventional-changelog": "3.3.0",
"rimraf": "^3.0.2",
"typescript": "^4.4.2"
"typescript": "<4.4.0"
}
}
11 changes: 8 additions & 3 deletions src/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ module.exports = {
node: true,
browser: true,
es6: true,
mocha: true,
jest: true,
},

parser: IS_TS_PROJECT ? '@typescript-eslint/parser' : '@babel/eslint-parser',
extends: (() =>

extends: (() =>
[
'eslint:recommended',
IS_TS_PROJECT ? 'plugin:@typescript-eslint/recommended' : null,
Expand All @@ -23,9 +27,10 @@ module.exports = {
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:prettier/recommended',
].filter((ext) => ext && typeof ext === 'string')
)(),
].filter((ext) => ext && typeof ext === 'string'))(),

plugins: ['simple-import-sort'],

rules: {
'simple-import-sort/imports': 1,
'simple-import-sort/exports': 1,
Expand Down
3 changes: 3 additions & 0 deletions src/stylelint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ module.exports = {
'stylelint-prettier/recommended',
'stylelint-config-rational-order',
],

plugins: ['stylelint-scss', 'stylelint-order'],

rules: {
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': [
Expand All @@ -14,5 +16,6 @@ module.exports = {
},
],
},

ignoreFiles: ['build/**/*.css'],
}
Loading

0 comments on commit 9ad0554

Please sign in to comment.