Skip to content

Commit ccfebaa

Browse files
authored
Upgrade lint rules (#475)
* refactor: adjust github action jobs * refactor: remove husky because it is only config file. No need to check. But consider to add it back if we want to put shared component back to here again * chore: remove packages/components * feat(eslint): migrate and update the rules to the latest version * feat(prettier): add prettier module * feat(stylelint): migrate and upgrade the rules to latest version * chore(tsconfig): bump the version to 0.5.0 * bump version into 0.5.0 * remove publish with tag on CI * trigger publish for prettier-config * chore: update README * env(remove): eslint-plugin-isaacscript --------- Co-authored-by: Bill Yang <[email protected]>
1 parent 80cb441 commit ccfebaa

File tree

87 files changed

+15675
-54679
lines changed

Some content is hidden

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

87 files changed

+15675
-54679
lines changed

.eslintrc.json

+1-15
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
11
{
2-
"extends": ["@caddijp/eslint-config"],
3-
"plugins": ["react", "react-hooks"],
4-
"parserOptions": {
5-
"ecmaFeatures": {
6-
"jsx": true
7-
}
8-
},
9-
"settings": {
10-
"react": {
11-
"version": "detect"
12-
}
13-
},
14-
"env": {
15-
"browser": true
16-
}
2+
"extends": ["packages/eslint-config/index.js"]
173
}

.github/mergeable.yml

-24
This file was deleted.

.github/renovate.json

-5
This file was deleted.

.github/stale.yml

-60
This file was deleted.

.github/workflows/nodejs.yml

-42
This file was deleted.

.github/workflows/publish.yml

+6-16
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,27 @@
1-
name: publish Node.js Package
1+
name: Publish packages
22

33
on:
44
push:
55
tags:
66
- 'v*'
77

88
jobs:
9-
build:
9+
publish-packages:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v3
1313
- uses: actions/setup-node@v3
1414
with:
1515
node-version: '16.x'
16-
- run: npm ci
17-
- run: npm test
18-
19-
publish-gpr:
20-
needs: build
21-
runs-on: ubuntu-latest
22-
steps:
23-
- uses: actions/checkout@v3
24-
- uses: actions/setup-node@v3
25-
with:
2616
registry-url: 'https://registry.npmjs.org'
27-
scope: '@caddijp'
17+
scope: '@lintdog'
2818
- run: npm ci
29-
- run: npx lerna exec --no-bail -- 'can-npm-publish && npm publish'
19+
- run: npx lerna exec --no-bail -- 'can-npm-publish && npm publish --access public'
3020
env:
3121
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3222
- uses: actions/setup-node@v3
3323
with:
3424
registry-url: 'https://npm.pkg.github.com'
35-
- run: lerna exec --no-bail -- 'npm publish'
25+
- run: npx lerna exec --no-bail -- 'can-npm-publish && npm publish --access public'
3626
env:
37-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/size.yml

-19
This file was deleted.

.github/workflows/storybook.yml

-34
This file was deleted.

.husky/.gitignore

-1
This file was deleted.

.husky/pre-commit

-4
This file was deleted.

.prettierrc

-4
This file was deleted.

.prettierrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
...require('./packages/prettier-config/index'),
3+
};

.stylelintrc.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"extends": ["@caddijp/stylelint-config", "stylelint-config-styled-components"],
3-
"customSyntax": "@stylelint/postcss-css-in-js"
2+
"extends": ["./packages/stylelint-config/index.js"]
43
}

.yarnclean

-46
This file was deleted.

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## v0.5.2 (2023-03-09)
2+
3+
#### :rocket: Type: Feature
4+
5+
- `prettier-config`, `eslint-config`, `stylelint-config`, `tsconfig`
6+
- Remove `packages/components` and add `prettier-config`: feat: upgrade ESLint rules and all the dependences
7+
8+
#### Committers: 1
9+
10+
- ([@Youngdi](https://github.com/youngdi))
11+
112
## v0.4.0 (2022-03-10)
213

314
#### :rocket: Type: Feature

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This repository is managed as monorepo.
1616
| :----------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------- |
1717
| **[@caddijp/eslint-config](./packages/eslint-config)** | [![NPM version](https://badge.fury.io/js/%40caddijp%2Feslint-config.svg)](https://badge.fury.io/js/%40caddijp%2Feslint-config) |
1818
| **[@caddijp/stylelint-config](./packages/stylelint-config)** | [![NPM version](https://badge.fury.io/js/%40caddijp%2Fstylelint-config.svg)](https://badge.fury.io/js/%40caddijp%2Fstylelint-config) |
19-
| **[@caddijp/components](./packages/components)** | [![NPM version](https://badge.fury.io/js/%40caddijp%2Fcomponents.svg)](https://badge.fury.io/js/%40caddijp%2Fcomponents) |
19+
| **[@caddijp/prettier-config](./packages/prettier-config)** | [![NPM version](https://badge.fury.io/js/%40caddijp%2Fprettier-config.svg)](https://badge.fury.io/js/%40caddijp%2Fprettier-config) |
2020
| **[@caddijp/tsconfig](./packages/tsconfig)** | [![NPM version](https://badge.fury.io/js/%40caddijp%2Ftsconfig.svg)](https://badge.fury.io/js/%40caddijp%2Ftsconfig) |
2121

2222
## Contributing

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"packages": ["packages/*"],
1313
"npmClient": "npm",
1414
"useWorkspaces": true,
15-
"version": "0.4.7"
15+
"version": "0.5.2"
1616
}

0 commit comments

Comments
 (0)