Skip to content

Commit 1ffcd83

Browse files
committed
fix: add pretest script which is required
1 parent 6dfa060 commit 1ffcd83

8 files changed

+433
-521
lines changed

.eslintrc.js

-9
This file was deleted.

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
lib
2+
node_modules
3+
CHANGELOG.md

CHANGELOG.md

-16
This file was deleted.

package.json

+25-24
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,28 @@
1010
},
1111
"main": "lib/cjs",
1212
"module": "lib",
13-
"fesm5": "lib/esm",
1413
"es2015": "lib/es2015",
14+
"fesm5": "lib/esm",
1515
"types": "lib",
1616
"files": [
1717
"lib"
1818
],
19-
"scripts": {
20-
"build:ts": "tsc -b src",
21-
"build:bundle": "r",
22-
"build": "run-p build:*",
23-
"lint": "eslint --ext md,js,ts -f friendly --ignore-pattern tests .",
24-
"test": "eslint -f friendly tests/**/*.{ts,tsx}",
25-
"type-coverage": "type-coverage --cache --ignore-catch --detail --strict"
26-
},
2719
"keywords": [
2820
"typescript",
2921
"eslint",
3022
"import",
3123
"resolver",
3224
"plugin"
3325
],
26+
"scripts": {
27+
"build": "run-p build:*",
28+
"build:r": "r",
29+
"build:ts": "tsc -b src",
30+
"lint": "eslint src --ext md,js,ts -f friendly",
31+
"pretest": "r",
32+
"test": "eslint tests/**/*.{ts,tsx} -f friendly",
33+
"type-coverage": "type-coverage --cache --detail --ignore-catch --strict"
34+
},
3435
"peerDependencies": {
3536
"eslint": "*",
3637
"eslint-plugin-import": "*"
@@ -43,31 +44,31 @@
4344
"tsconfig-paths": "^3.9.0"
4445
},
4546
"devDependencies": {
46-
"@1stg/babel-preset": "^0.7.0",
47+
"@1stg/babel-preset": "^0.7.4",
4748
"@1stg/commitlint-config": "^0.1.0",
48-
"@1stg/eslint-config": "^0.12.10",
49-
"@1stg/husky-config": "^0.3.0",
50-
"@1stg/lint-staged": "^0.7.4",
51-
"@1stg/prettier-config": "^0.2.0",
52-
"@1stg/remark-config": "^0.2.1",
53-
"@1stg/rollup-config": "^0.11.4",
54-
"@1stg/tsconfig": "^0.5.1",
55-
"@babel/core": "^7.6.0",
49+
"@1stg/eslint-config": "^0.12.20",
50+
"@1stg/husky-config": "^0.3.1",
51+
"@1stg/lint-staged": "^0.8.6",
52+
"@1stg/prettier-config": "^0.4.2",
53+
"@1stg/remark-config": "^0.2.2",
54+
"@1stg/rollup-config": "^0.12.0",
55+
"@1stg/tsconfig": "^0.6.0",
56+
"@babel/core": "^7.6.2",
5657
"@commitlint/cli": "^8.2.0",
5758
"@types/debug": "^4.1.5",
5859
"@types/is-glob": "^4.0.1",
59-
"@types/node": "^12.7.5",
60+
"@types/node": "^12.7.11",
6061
"@types/resolve": "^0.0.8",
6162
"@types/unist": "^2.0.3",
6263
"dummy.js": "link:dummy.js",
63-
"eslint": "^6.4.0",
64+
"eslint": "^6.5.1",
6465
"eslint-import-resolver-typescript": "link:.",
65-
"husky": "^3.0.5",
66-
"lint-staged": "^9.3.0",
66+
"husky": "^3.0.8",
67+
"lint-staged": "^9.4.1",
6768
"npm-run-all": "^4.1.5",
6869
"prettier": "^1.18.2",
69-
"react": "^16.9.0",
70-
"rollup": "^1.21.4",
70+
"react": "^16.10.2",
71+
"rollup": "^1.23.1",
7172
"type-coverage": "^2.3.0",
7273
"typescript": "^3.6.3"
7374
},

src/.eslintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@1stg/eslint-config/recommended"
3+
}

src/.eslintrc.js

-18
This file was deleted.

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": "@1stg/tsconfig/tsconfig.json"
2+
"extends": "@1stg/tsconfig/tsconfig"
33
}

0 commit comments

Comments
 (0)