Skip to content

Commit

Permalink
chore: move config to top level where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Jan 13, 2019
1 parent db44073 commit 19c4982
Show file tree
Hide file tree
Showing 17 changed files with 2,635 additions and 8,224 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions .gitignore
Expand Up @@ -59,3 +59,8 @@ typings/


# next.js build output # next.js build output
.next .next

.DS_Store
.vscode
.idea
dist
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion packages/typescript-estree/.travis.yml → .travis.yml
Expand Up @@ -21,7 +21,6 @@ script:
- yarn global add codecov - yarn global add codecov
after_success: after_success:
- codecov - codecov
- yarn travis-deploy-once "yarn semantic-release"
branches: branches:
only: only:
- master - master
26 changes: 26 additions & 0 deletions LICENSE
@@ -0,0 +1,26 @@
TypeScript ESLint

Originally extracted from:

TypeScript ESLint Parser
Copyright JS Foundation and other contributors, https://js.foundation

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6 changes: 2 additions & 4 deletions lerna.json
@@ -1,7 +1,5 @@
{ {
"packages": [
"packages/*"
],
"version": "0.0.0", "version": "0.0.0",
"npmClient": "yarn" "npmClient": "yarn",
"useWorkspaces": true
} }
62 changes: 61 additions & 1 deletion package.json
@@ -1,7 +1,67 @@
{ {
"name": "typescript-eslint", "name": "typescript-eslint",
"private": true, "private": true,
"workspaces": [
"packages/*"
],
"author": "James Henry <typescript-eslint@jameshenry.blog>",
"license": "BSD-2-Clause",
"repository": "typescript-eslint/typescript-eslint",
"bugs": {
"url": "https://github.com/typescript-eslint/typescript-eslint/issues"
},
"scripts": {
"postinstall": "lerna bootstrap",
"test": "lerna run test",
"build": "lerna run build",
"clean": "lerna run clean",
"precommit": "yarn test && lint-staged",
"cz": "git-cz",
"commitmsg": "commitlint -E GIT_PARAMS",
"check-format": "prettier --list-different \"./**/*.{ts,js,json,md}\""
},
"lint-staged": {
"*.{ts,js,json,md}": [
"prettier --write",
"git add"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"engines": {
"node": ">=6.14.0"
},
"devDependencies": { "devDependencies": {
"lerna": "^3.10.5" "@babel/code-frame": "7.0.0",
"@babel/parser": "7.2.3",
"@commitlint/cli": "^7.1.2",
"@commitlint/config-conventional": "^7.1.2",
"@commitlint/travis-cli": "^7.1.2",
"@types/babel-code-frame": "^6.20.1",
"@types/jest": "^23.3.9",
"@types/lodash.isplainobject": "^4.0.4",
"@types/lodash.unescape": "^4.0.4",
"@types/node": "^10.12.2",
"@types/semver": "^5.5.0",
"@types/shelljs": "^0.8.0",
"cz-conventional-changelog": "2.1.0",
"glob": "7.1.2",
"husky": "0.14.3",
"jest": "23.6.0",
"lerna": "^3.10.5",
"lint-staged": "7.3.0",
"lodash.isplainobject": "4.0.6",
"prettier": "^1.14.3",
"shelljs": "0.8.2",
"ts-jest": "^23.10.4",
"typescript": "~3.2.1"
} }
} }
9 changes: 0 additions & 9 deletions packages/typescript-estree/.gitignore

This file was deleted.

56 changes: 5 additions & 51 deletions packages/typescript-estree/package.json
@@ -1,7 +1,6 @@
{ {
"name": "typescript-estree", "name": "typescript-estree",
"description": "A parser that converts TypeScript source code into an ESTree compatible form", "description": "A parser that converts TypeScript source code into an ESTree compatible form",
"homepage": "https://github.com/JamesHenry/typescript-estree",
"main": "dist/parser.js", "main": "dist/parser.js",
"version": "0.0.0-development", "version": "0.0.0-development",
"files": [ "files": [
Expand All @@ -12,37 +11,11 @@
"engines": { "engines": {
"node": ">=6.14.0" "node": ">=6.14.0"
}, },
"repository": "JamesHenry/typescript-estree", "repository": "typescript-eslint/typescript-eslint",
"bugs": { "bugs": {
"url": "https://github.com/JamesHenry/typescript-estree/issues" "url": "https://github.com/typescript-eslint/typescript-eslint/issues"
}, },
"license": "BSD-2-Clause", "license": "BSD-2-Clause",
"devDependencies": {
"@babel/code-frame": "7.0.0",
"@babel/parser": "7.2.3",
"@commitlint/cli": "^7.1.2",
"@commitlint/config-conventional": "^7.1.2",
"@commitlint/travis-cli": "^7.1.2",
"@types/babel-code-frame": "^6.20.1",
"@types/jest": "^23.3.9",
"@types/lodash.isplainobject": "^4.0.4",
"@types/lodash.unescape": "^4.0.4",
"@types/node": "^10.12.2",
"@types/semver": "^5.5.0",
"@types/shelljs": "^0.8.0",
"cz-conventional-changelog": "2.1.0",
"glob": "7.1.2",
"husky": "0.14.3",
"jest": "23.6.0",
"lint-staged": "7.3.0",
"lodash.isplainobject": "4.0.6",
"prettier": "^1.14.3",
"semantic-release": "^15.9.16",
"shelljs": "0.8.2",
"travis-deploy-once": "^5.0.8",
"ts-jest": "^23.10.4",
"typescript": "~3.2.1"
},
"keywords": [ "keywords": [
"ast", "ast",
"estree", "estree",
Expand All @@ -56,13 +29,7 @@
"build": "tsc", "build": "tsc",
"test": "jest --coverage", "test": "jest --coverage",
"unit-tests": "jest \"./tests/lib/.*\"", "unit-tests": "jest \"./tests/lib/.*\"",
"ast-alignment-tests": "jest spec.ts", "ast-alignment-tests": "jest spec.ts"
"precommit": "npm test && lint-staged",
"cz": "git-cz",
"commitmsg": "commitlint -E GIT_PARAMS",
"check-format": "prettier --list-different \"./**/*.{ts,js,json,md}\"",
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once"
}, },
"dependencies": { "dependencies": {
"lodash.unescape": "4.0.1", "lodash.unescape": "4.0.1",
Expand All @@ -71,20 +38,7 @@
"peerDependencies": { "peerDependencies": {
"typescript": "*" "typescript": "*"
}, },
"lint-staged": { "devDependencies": {
"*.{ts,js,json,md}": [ "typescript": "~3.2.1"
"prettier --write",
"git add"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
} }
} }
7 changes: 2 additions & 5 deletions packages/typescript-estree/tsconfig.json
@@ -1,11 +1,8 @@
{ {
"extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"target": "es2017",
"module": "commonjs",
"declaration": true, "declaration": true,
"outDir": "./dist", "outDir": "./dist"
"strict": true,
"esModuleInterop": true
}, },
"include": ["src"] "include": ["src"]
} }

0 comments on commit 19c4982

Please sign in to comment.