Skip to content

Commit 19c4982

Browse files
committed
chore: move config to top level where possible
1 parent db44073 commit 19c4982

17 files changed

+2635
-8224
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,8 @@ typings/
5959

6060
# next.js build output
6161
.next
62+
63+
.DS_Store
64+
.vscode
65+
.idea
66+
dist
File renamed without changes.
File renamed without changes.

packages/typescript-estree/.travis.yml .travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ script:
2121
- yarn global add codecov
2222
after_success:
2323
- codecov
24-
- yarn travis-deploy-once "yarn semantic-release"
2524
branches:
2625
only:
2726
- master

LICENSE

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
TypeScript ESLint
2+
3+
Originally extracted from:
4+
5+
TypeScript ESLint Parser
6+
Copyright JS Foundation and other contributors, https://js.foundation
7+
8+
Redistribution and use in source and binary forms, with or without
9+
modification, are permitted provided that the following conditions are met:
10+
11+
* Redistributions of source code must retain the above copyright
12+
notice, this list of conditions and the following disclaimer.
13+
* Redistributions in binary form must reproduce the above copyright
14+
notice, this list of conditions and the following disclaimer in the
15+
documentation and/or other materials provided with the distribution.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20+
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
21+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

lerna.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"packages": [
3-
"packages/*"
4-
],
52
"version": "0.0.0",
6-
"npmClient": "yarn"
3+
"npmClient": "yarn",
4+
"useWorkspaces": true
75
}

package.json

+61-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,67 @@
11
{
22
"name": "typescript-eslint",
33
"private": true,
4+
"workspaces": [
5+
"packages/*"
6+
],
7+
"author": "James Henry <[email protected]>",
8+
"license": "BSD-2-Clause",
9+
"repository": "typescript-eslint/typescript-eslint",
10+
"bugs": {
11+
"url": "https://github.com/typescript-eslint/typescript-eslint/issues"
12+
},
13+
"scripts": {
14+
"postinstall": "lerna bootstrap",
15+
"test": "lerna run test",
16+
"build": "lerna run build",
17+
"clean": "lerna run clean",
18+
"precommit": "yarn test && lint-staged",
19+
"cz": "git-cz",
20+
"commitmsg": "commitlint -E GIT_PARAMS",
21+
"check-format": "prettier --list-different \"./**/*.{ts,js,json,md}\""
22+
},
23+
"lint-staged": {
24+
"*.{ts,js,json,md}": [
25+
"prettier --write",
26+
"git add"
27+
]
28+
},
29+
"config": {
30+
"commitizen": {
31+
"path": "./node_modules/cz-conventional-changelog"
32+
}
33+
},
34+
"commitlint": {
35+
"extends": [
36+
"@commitlint/config-conventional"
37+
]
38+
},
39+
"engines": {
40+
"node": ">=6.14.0"
41+
},
442
"devDependencies": {
5-
"lerna": "^3.10.5"
43+
"@babel/code-frame": "7.0.0",
44+
"@babel/parser": "7.2.3",
45+
"@commitlint/cli": "^7.1.2",
46+
"@commitlint/config-conventional": "^7.1.2",
47+
"@commitlint/travis-cli": "^7.1.2",
48+
"@types/babel-code-frame": "^6.20.1",
49+
"@types/jest": "^23.3.9",
50+
"@types/lodash.isplainobject": "^4.0.4",
51+
"@types/lodash.unescape": "^4.0.4",
52+
"@types/node": "^10.12.2",
53+
"@types/semver": "^5.5.0",
54+
"@types/shelljs": "^0.8.0",
55+
"cz-conventional-changelog": "2.1.0",
56+
"glob": "7.1.2",
57+
"husky": "0.14.3",
58+
"jest": "23.6.0",
59+
"lerna": "^3.10.5",
60+
"lint-staged": "7.3.0",
61+
"lodash.isplainobject": "4.0.6",
62+
"prettier": "^1.14.3",
63+
"shelljs": "0.8.2",
64+
"ts-jest": "^23.10.4",
65+
"typescript": "~3.2.1"
666
}
767
}

packages/typescript-estree/.gitignore

-9
This file was deleted.
+5-51
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "typescript-estree",
33
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
4-
"homepage": "https://github.com/JamesHenry/typescript-estree",
54
"main": "dist/parser.js",
65
"version": "0.0.0-development",
76
"files": [
@@ -12,37 +11,11 @@
1211
"engines": {
1312
"node": ">=6.14.0"
1413
},
15-
"repository": "JamesHenry/typescript-estree",
14+
"repository": "typescript-eslint/typescript-eslint",
1615
"bugs": {
17-
"url": "https://github.com/JamesHenry/typescript-estree/issues"
16+
"url": "https://github.com/typescript-eslint/typescript-eslint/issues"
1817
},
1918
"license": "BSD-2-Clause",
20-
"devDependencies": {
21-
"@babel/code-frame": "7.0.0",
22-
"@babel/parser": "7.2.3",
23-
"@commitlint/cli": "^7.1.2",
24-
"@commitlint/config-conventional": "^7.1.2",
25-
"@commitlint/travis-cli": "^7.1.2",
26-
"@types/babel-code-frame": "^6.20.1",
27-
"@types/jest": "^23.3.9",
28-
"@types/lodash.isplainobject": "^4.0.4",
29-
"@types/lodash.unescape": "^4.0.4",
30-
"@types/node": "^10.12.2",
31-
"@types/semver": "^5.5.0",
32-
"@types/shelljs": "^0.8.0",
33-
"cz-conventional-changelog": "2.1.0",
34-
"glob": "7.1.2",
35-
"husky": "0.14.3",
36-
"jest": "23.6.0",
37-
"lint-staged": "7.3.0",
38-
"lodash.isplainobject": "4.0.6",
39-
"prettier": "^1.14.3",
40-
"semantic-release": "^15.9.16",
41-
"shelljs": "0.8.2",
42-
"travis-deploy-once": "^5.0.8",
43-
"ts-jest": "^23.10.4",
44-
"typescript": "~3.2.1"
45-
},
4619
"keywords": [
4720
"ast",
4821
"estree",
@@ -56,13 +29,7 @@
5629
"build": "tsc",
5730
"test": "jest --coverage",
5831
"unit-tests": "jest \"./tests/lib/.*\"",
59-
"ast-alignment-tests": "jest spec.ts",
60-
"precommit": "npm test && lint-staged",
61-
"cz": "git-cz",
62-
"commitmsg": "commitlint -E GIT_PARAMS",
63-
"check-format": "prettier --list-different \"./**/*.{ts,js,json,md}\"",
64-
"semantic-release": "semantic-release",
65-
"travis-deploy-once": "travis-deploy-once"
32+
"ast-alignment-tests": "jest spec.ts"
6633
},
6734
"dependencies": {
6835
"lodash.unescape": "4.0.1",
@@ -71,20 +38,7 @@
7138
"peerDependencies": {
7239
"typescript": "*"
7340
},
74-
"lint-staged": {
75-
"*.{ts,js,json,md}": [
76-
"prettier --write",
77-
"git add"
78-
]
79-
},
80-
"config": {
81-
"commitizen": {
82-
"path": "./node_modules/cz-conventional-changelog"
83-
}
84-
},
85-
"commitlint": {
86-
"extends": [
87-
"@commitlint/config-conventional"
88-
]
41+
"devDependencies": {
42+
"typescript": "~3.2.1"
8943
}
9044
}
+2-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
2+
"extends": "../../tsconfig.json",
23
"compilerOptions": {
3-
"target": "es2017",
4-
"module": "commonjs",
54
"declaration": true,
6-
"outDir": "./dist",
7-
"strict": true,
8-
"esModuleInterop": true
5+
"outDir": "./dist"
96
},
107
"include": ["src"]
118
}

0 commit comments

Comments
 (0)