-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from nimblehq/bug/gh56-separate-typescript-pac…
…kage [#56] Separate typescript to dedicated package
- Loading branch information
Showing
15 changed files
with
427 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
extends: '@nimblehq/eslint-config-nimble-core', | ||
extends: [ | ||
'@nimblehq/eslint-config-nimble-core', | ||
'@nimblehq/eslint-config-nimble-typescript', | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
extends: ['./lib/index.js'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2021 and onwards Nimble. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# `@nimblehq/eslint-config-nimble-typescript` | ||
|
||
This package provides ESLint Typescript rules inheriting from @nimblehq/eslint-config-nimble-core. | ||
|
||
## Installation | ||
|
||
```bash | ||
npm install --save-dev @nimblehq/eslint-config-nimble-typescript | ||
``` | ||
|
||
## Usage | ||
|
||
### Standalone | ||
|
||
Add `@nimblehq/eslint-config-nimble-typescript` to the extends section of your `.eslintrc` configuration file. | ||
|
||
```js | ||
{ | ||
"extends": [ | ||
"@nimblehq/eslint-config-nimble-typescript" | ||
], | ||
"rules": { | ||
// Additional, per-project rules... | ||
} | ||
} | ||
``` | ||
|
||
### With a framework | ||
|
||
Similar to the process above, but usually it requires adding the extra rules for the JS framework: | ||
|
||
```js | ||
{ | ||
"extends": [ | ||
"@nimblehq/eslint-config-nimble-typescript", | ||
"plugin:react/recommended", | ||
"plugin:vue/recommended" | ||
], | ||
"rules": { | ||
// Additional, per-project rules... | ||
} | ||
} | ||
``` | ||
|
||
This would require defining the required dependencies in the project itself. | ||
|
||
## License | ||
|
||
This project is Copyright (c) 2021 and onwards Nimble. It is free software and may be redistributed under the terms specified in the [LICENSE] file. | ||
|
||
[LICENSE]: /LICENSE | ||
|
||
## About | ||
|
||
![Nimble](https://assets.nimblehq.co/logo/dark/logo-dark-text-160.png) | ||
|
||
This project is maintained and funded by [Nimble](https://nimblehq.co). | ||
|
||
We love open source and do our part in sharing our work with the community! | ||
See [our other projects][community] or [hire our team][hire] to help build your product. | ||
|
||
[community]: https://github.com/nimblehq | ||
[hire]: https://nimblehq.co/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* @fileoverview eslint typescript config | ||
* @author Nimble | ||
*/ | ||
'use strict'; | ||
|
||
module.exports = { | ||
extends: ['./rules/base', './rules/typescript'].map(require.resolve), | ||
rules: {}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
extends: '@nimblehq/eslint-config-nimble-core', | ||
}; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"name": "@nimblehq/eslint-config-nimble-typescript", | ||
"version": "1.0.0", | ||
"description": "ESLint config for TypeScript projects by Nimble", | ||
"keywords": [ | ||
"eslint", | ||
"eslintconfig", | ||
"eslint-config", | ||
"typescript", | ||
"nimble", | ||
"nimblehq" | ||
], | ||
"author": "Nimble", | ||
"main": "lib/index.js", | ||
"dependencies": { | ||
"@nimblehq/eslint-config-nimble-core": "2.8.0", | ||
"eslint-import-resolver-typescript": "^3.6.1" | ||
}, | ||
"scripts": { | ||
"lint": "eslint .", | ||
"lint:fix": "eslint . --fix" | ||
}, | ||
"license": "MIT", | ||
"directories": { | ||
"lib": "lib" | ||
}, | ||
"engines": { | ||
"node": "^14.18.2 || >=18" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/nimblehq/eslint-config-nimble.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/nimblehq/eslint-config-nimble/issues" | ||
}, | ||
"homepage": "https://github.com/nimblehq/eslint-config-nimble", | ||
"files": [ | ||
"lib" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^6.18.1", | ||
"@typescript-eslint/parser": "^6.18.1", | ||
"eslint": "^8.56.0" | ||
} | ||
} |