Skip to content

Commit 61f9cf6

Browse files
committed
Initial commit
0 parents  commit 61f9cf6

File tree

9 files changed

+1685
-0
lines changed

9 files changed

+1685
-0
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Unix-style newlines with a newline ending every file
5+
[*]
6+
end_of_line = lf
7+
charset = utf-8
8+
insert_final_newline = true
9+
indent_style = space
10+
indent_size = 2
11+
trim_trailing_whitespace = true

.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"root": true,
3+
"extends": [
4+
"@jenssimon/base"
5+
]
6+
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
yarn-error.log

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
sudo: false
2+
language: node_js
3+
node_js:
4+
- "10"
5+
cache:
6+
- yarn: true
7+
script:
8+
- yarn lint

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Jens Simon
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[![NPM version][npm-image]][npm-url] [![Downloads][npm-downloads-image]][npm-url] [![Dependencies][deps-image]][deps-url] [![star this repo][gh-stars-image]][gh-url] [![fork this repo][gh-forks-image]][gh-url] [![Build Status][travis-image]][travis-url] ![Code Style][codestyle-image]
2+
3+
# eslint-config-typescript
4+
5+
> ESLint configuration for usage with TypeScript
6+
7+
## Installation
8+
9+
```sh
10+
$ yarn add @jenssimon/eslint-config-typescript
11+
```
12+
13+
## General
14+
15+
Configuration for TypeScript to use with [@jenssimon/eslint-config-base](https://github.com/jenssimon/eslint-config-base#readme).
16+
17+
## License
18+
19+
MIT © 2019 [Jens Simon](https://github.com/jenssimon)
20+
21+
[npm-url]: https://www.npmjs.com/package/@jenssimon/eslint-config-typescript
22+
[npm-image]: https://badgen.net/npm/v/@jenssimon/eslint-config-typescript
23+
[npm-downloads-image]: https://badgen.net/npm/dw/@jenssimon/eslint-config-typescript
24+
25+
[deps-url]: https://david-dm.org/jenssimon/eslint-config-typescript
26+
[deps-image]: https://badgen.net/david/dep/jenssimon/eslint-config-typescript
27+
28+
[gh-url]: https://github.com/jenssimon/eslint-config-typescript
29+
[gh-stars-image]: https://badgen.net/github/stars/jenssimon/eslint-config-typescript
30+
[gh-forks-image]: https://badgen.net/github/forks/jenssimon/eslint-config-typescript
31+
32+
[travis-url]: https://travis-ci.com/jenssimon/eslint-config-typescript
33+
[travis-image]: https://travis-ci.com/jenssimon/eslint-config-typescript.svg?branch=master
34+
35+
[codestyle-image]: https://badgen.net/badge/code%20style/airbnb/f2a

index.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
plugins: [
4+
'@typescript-eslint',
5+
],
6+
settings: {
7+
'import/parsers': {
8+
'@typescript-eslint/parser': ['.ts', '.tsx'],
9+
},
10+
},
11+
extends: [
12+
'plugin:@typescript-eslint/recommended',
13+
],
14+
rules: {
15+
'brace-style': 'off',
16+
'func-call-spacing': 'off',
17+
indent: 'off',
18+
'@typescript-eslint/brace-style': ['error', '1tbs', { allowSingleLine: true }],
19+
'@typescript-eslint/no-use-before-define': 'off',
20+
'@typescript-eslint/array-type': 'error',
21+
'@typescript-eslint/func-call-spacing': ['error'],
22+
'@typescript-eslint/indent': ['error', 2],
23+
'@typescript-eslint/no-empty-function': 'off',
24+
},
25+
overrides: [
26+
{
27+
files: [
28+
'**/*.js',
29+
],
30+
rules: {
31+
'@typescript-eslint/explicit-function-return-type': 'off',
32+
},
33+
},
34+
],
35+
};

package.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "@jenssimon/eslint-config-typescript",
3+
"version": "1.0.0",
4+
"description": "ESLint configuration for usage with TypeScript",
5+
"main": "index.js",
6+
"author": "Jens Simon <https://github.com/jenssimon>",
7+
"keywords": [
8+
"eslint",
9+
"eslintconfig",
10+
"typescript"
11+
],
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/jenssimon/eslint-config-typescript"
15+
},
16+
"license": "MIT",
17+
"scripts": {
18+
"lint": "eslint --fix ./"
19+
},
20+
"devDependencies": {
21+
"@jenssimon/eslint-config-base": "^1.4.0",
22+
"babel-eslint": "^10.0.3",
23+
"eslint": "^6.5.0",
24+
"eslint-config-airbnb": "^18.0.1",
25+
"eslint-config-airbnb-base": "^14.0.0",
26+
"eslint-plugin-dollar-sign": "^1.0.2",
27+
"eslint-plugin-eslint-comments": "^3.1.2",
28+
"eslint-plugin-import": "^2.18.2",
29+
"eslint-plugin-jest": "^22.17.0",
30+
"eslint-plugin-jquery": "^1.5.1",
31+
"eslint-plugin-jsx-a11y": "^6.2.3",
32+
"eslint-plugin-optimize-regex": "^1.1.7",
33+
"eslint-plugin-promise": "^4.2.1",
34+
"eslint-plugin-react": "^7.14.3",
35+
"eslint-plugin-react-hooks": "^2.1.1",
36+
"eslint-plugin-you-dont-need-lodash-underscore": "^6.7.0"
37+
},
38+
"peerDependencies": {
39+
"@typescript-eslint/eslint-plugin": ">=2.3.1",
40+
"@typescript-eslint/parser": ">=2.3.1"
41+
},
42+
"private": false
43+
}

0 commit comments

Comments
 (0)