Skip to content

Commit

Permalink
chore: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Jul 9, 2022
1 parent 69a802f commit 3d43dc6
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"root": true,
"extends": "@1stg",
"rules": {
"react/react-in-jsx-scope": "off"
},
"overrides": [
{
"files": "*.mdx",
Expand Down
3 changes: 3 additions & 0 deletions .markuplintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@1stg/markuplint-config/angular"
}
1 change: 0 additions & 1 deletion .markuplintrc.js

This file was deleted.

3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
auto-install-peers=true
prefer-workspace-packages=true
public-hoist-pattern[]=@1stg/*
public-hoist-pattern[]=*babel*
public-hoist-pattern[]=@commitlint/*
public-hoist-pattern[]=@pkgr/*
public-hoist-pattern[]=@types/*
public-hoist-pattern[]=browserslist
public-hoist-pattern[]=cross-env
public-hoist-pattern[]=*eslint*
Expand All @@ -15,5 +17,4 @@ public-hoist-pattern[]=simple-git-hooks
public-hoist-pattern[]=*stylelint*
public-hoist-pattern[]=*svelte*
public-hoist-pattern[]=tslib
prefer-workspace-packages=true
strict-peer-dependencies=false
2 changes: 1 addition & 1 deletion .remarkrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"plugins": [
"@1stg/remark-config"
"@1stg/config"
]
}
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CHANGELOG
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"lint:es": "eslint . --cache -f friendly",
"lint:style": "stylelint . --cache",
"lint:tsc": "tsc --noEmit",
"prepare": "simple-git-hooks || exit 0",
"prepare": "simple-git-hooks",
"release": "changeset publish",
"test": "jest",
"typecov": "type-coverage"
Expand All @@ -36,6 +36,7 @@
"@1stg/remark-config": "workspace:*",
"@1stg/simple-git-hooks": "workspace:*",
"@1stg/stylelint-config": "workspace:*",
"@1stg/tsconfig": "workspace:*",
"@angular/compiler": "^14.0.5",
"@angular/compiler-cli": "^14.0.5",
"@angular/core": "^14.0.5",
Expand Down
2 changes: 2 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/test1.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react'
import { useState, PureComponent } from 'react'

export default class Test extends React.PureComponent {
export default class Test extends PureComponent {
render() {
return <div>Hello</div>
}
Expand Down
4 changes: 2 additions & 2 deletions tests/test3.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react'
import { PureComponent, useState } from 'react'

export default class Test extends React.PureComponent {
export default class Test extends PureComponent {
static a = 1

b?: string
Expand Down
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"extends": "./packages/tsconfig/angular",
"compilerOptions": {
"baseUrl": "."
}
"extends": "@1stg/tsconfig/ng-lib"
}

0 comments on commit 3d43dc6

Please sign in to comment.