Skip to content

Commit 6d602f4

Browse files
@jotadevelopersergiohgz
authored andcommitted
feat(eslint-config): import eslint-config-verdaccio package
- chore: initial commit - chore: update version - chore(release): 0.0.1 - chore: update readme - Update README.md - Update README.md
1 parent 98f0de7 commit 6d602f4

File tree

8 files changed

+2153
-0
lines changed

8 files changed

+2153
-0
lines changed

tools/eslint-config/.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
npm-debug.log
2+
.DS_Store
3+
4+
_storage/
5+
lib/
6+
node_modules/
7+
coverage/
8+
9+
# Istanbul
10+
.nyc*
11+
tests-report
12+
13+
# IDE
14+
.vscode/*
15+
.idea/
16+
*.log
17+
*.tar
18+
*.gz
19+
*.tmp-*

tools/eslint-config/.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
yarn.lock
2+
package-lock.json
3+
.idea/
4+
.npmignore

tools/eslint-config/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4+
5+
## 0.0.1 (2019-04-27)

tools/eslint-config/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) 2017 Verdaccio
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.

tools/eslint-config/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# @verdaccio/eslint-config
2+
3+
eslint shareable configuration for Verdaccio that uses Typescript.
4+
5+
```
6+
npm install -D @verdaccio/eslint-config
7+
```
8+
9+
## Usage
10+
11+
```
12+
// .eslintrc
13+
{
14+
"extends": [
15+
"@verdaccio"
16+
]
17+
}
18+
```
19+
20+
21+
## License
22+
23+
[MIT](http://www.opensource.org/licenses/mit-license.php)

tools/eslint-config/index.js

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
module.exports = {
2+
3+
plugins: [
4+
"verdaccio",
5+
"@typescript-eslint",
6+
"jest"
7+
],
8+
9+
extends: [
10+
"eslint:recommended",
11+
"google",
12+
"plugin:jest/recommended",
13+
"plugin:prettier/recommended",
14+
"plugin:verdaccio/recommended",
15+
"plugin:@typescript-eslint/recommended"
16+
],
17+
18+
parser: "@typescript-eslint/parser",
19+
parserOptions: {
20+
"sourceType": "module",
21+
"ecmaVersion": 7,
22+
"ecmaFeatures": {
23+
"impliedStrict": true,
24+
"jsx": true
25+
}
26+
},
27+
28+
env: {
29+
"node": true,
30+
"es6": true,
31+
"jest": true
32+
},
33+
34+
globals: {
35+
__APP_VERSION__: true
36+
},
37+
38+
rules: {
39+
"prettier/prettier": ["error", { "singleQuote": true }],
40+
"@typescript-eslint/camelcase": 0,
41+
"@typescript-eslint/indent": ["error", 2],
42+
"@typescript-eslint/explicit-member-accessibility": ["warn"],
43+
"no-tabs": 0,
44+
"keyword-spacing": 0,
45+
"padded-blocks": 0,
46+
"no-useless-escape": 0,
47+
"handle-callback-err": 2,
48+
"no-debugger": 2,
49+
"no-fallthrough": 2,
50+
"curly": 2,
51+
"eol-last": 1,
52+
"no-irregular-whitespace": 1,
53+
"no-mixed-spaces-and-tabs": [
54+
1,
55+
"smart-tabs"
56+
],
57+
"no-trailing-spaces": 1,
58+
"no-new-require": 2,
59+
"no-undef": 2,
60+
"no-unreachable": 2,
61+
"no-unused-vars": [
62+
2,
63+
{
64+
"vars": "all",
65+
"args": "none"
66+
}
67+
],
68+
"max-len": [
69+
1,
70+
160
71+
],
72+
"semi": [
73+
2,
74+
"always"
75+
],
76+
"camelcase": 0,
77+
"require-jsdoc": 0,
78+
"valid-jsdoc": 0,
79+
"prefer-spread": 1,
80+
"prefer-rest-params": 1,
81+
"no-var": 2,
82+
"no-constant-condition": 2,
83+
"no-empty": 2,
84+
"guard-for-in": 2,
85+
"no-invalid-this": 2,
86+
"new-cap": 2,
87+
"one-var": 2,
88+
"no-console": [
89+
2,
90+
{
91+
"allow": [
92+
"warn"
93+
]
94+
}
95+
]
96+
}
97+
98+
};

tools/eslint-config/package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "@verdaccio/eslint-config",
3+
"version": "0.0.1",
4+
"description": "verdaccio eslint shareable config",
5+
"main": "index.js",
6+
"scripts": {
7+
"release": "standard-version -a -s"
8+
},
9+
"dependencies": {
10+
"@typescript-eslint/eslint-plugin": "1.7.0",
11+
"babel-eslint": "10.0.1",
12+
"eslint-config-google": "0.12.0",
13+
"eslint-config-prettier": "4.2.0",
14+
"eslint-plugin-babel": "5.3.0",
15+
"eslint-plugin-import": "2.17.2",
16+
"eslint-plugin-jest": "22.5.1",
17+
"eslint-plugin-prettier": "3.0.1",
18+
"eslint-plugin-verdaccio": "0.0.5",
19+
"prettier": "1.17.0"
20+
},
21+
"devDependencies": {
22+
"standard-version": "5.0.2"
23+
},
24+
"peerDependencies": {
25+
"eslint": ">=5.16.0"
26+
},
27+
"engines": {
28+
"node": ">= 6"
29+
},
30+
"keywords": [],
31+
"author": "Juan Picado <juanpicado19@gmail.com>",
32+
"license": "MIT"
33+
}

0 commit comments

Comments
 (0)