@tpluscode/eslint-config 0.2.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.changeset/README.md +8 -0
- package/.changeset/config.json +10 -0
- package/.github/workflows/build.yml +14 -0
- package/.github/workflows/release.yml +35 -0
- package/.husky/pre-commit +4 -0
- package/CHANGELOG.md +31 -11
- package/README.md +4 -1
- package/index.js +24 -3
- package/package.json +13 -22
- package/.travis.yml +0 -10
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Changesets
|
|
2
|
+
|
|
3
|
+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
|
|
4
|
+
with multi-package repos, or single-package repos to help you version and publish your code. You can
|
|
5
|
+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
|
|
6
|
+
|
|
7
|
+
We have a quick list of common questions to get you started engaging with this project in
|
|
8
|
+
[our documentation](https://github.com/changesets/changesets/blob/master/docs/common-questions.md)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
release:
|
|
10
|
+
name: Release
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- name: Checkout Repo
|
|
14
|
+
uses: actions/checkout@master
|
|
15
|
+
with:
|
|
16
|
+
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
|
|
17
|
+
fetch-depth: 0
|
|
18
|
+
|
|
19
|
+
- name: Setup Node.js
|
|
20
|
+
uses: actions/setup-node@v2.1.2
|
|
21
|
+
with:
|
|
22
|
+
node-version: 13
|
|
23
|
+
|
|
24
|
+
- name: Install Dependencies
|
|
25
|
+
run: yarn
|
|
26
|
+
|
|
27
|
+
- name: Create Release Pull Request or Publish to npm
|
|
28
|
+
id: changesets
|
|
29
|
+
uses: changesets/action@master
|
|
30
|
+
with:
|
|
31
|
+
# This expects you to have a script called release which does a build for your packages and calls changeset publish
|
|
32
|
+
publish: yarn release
|
|
33
|
+
env:
|
|
34
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
35
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,28 +1,50 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4e98a01: Disable default `no-dupe-class-members`
|
|
8
|
+
|
|
9
|
+
## 0.3.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 0497e3b: Disable `no-unused-expression` in test files
|
|
14
|
+
|
|
15
|
+
## 0.3.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- bae8ca8: Make missing imports error
|
|
20
|
+
- 1e5852d: Update dependencies
|
|
21
|
+
|
|
3
22
|
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
23
|
|
|
5
|
-
###
|
|
24
|
+
### 0.2.0
|
|
25
|
+
|
|
26
|
+
### Features
|
|
6
27
|
|
|
28
|
+
- enable `impor/order` rule
|
|
29
|
+
|
|
30
|
+
### [0.1.1](https://github.com/tpluscode/eslint-config/compare/v0.1.0...v0.1.1) (2020-09-22)
|
|
7
31
|
|
|
8
32
|
### Features
|
|
9
33
|
|
|
10
|
-
|
|
11
|
-
|
|
34
|
+
- disable default ctor rule in ts files ([8f4ec82](https://github.com/tpluscode/eslint-config/commit/8f4ec8299c0d6cdf6146f4144645c7055efd460f))
|
|
35
|
+
- tweak import/no-extraneous-dependencies in test files ([d37be96](https://github.com/tpluscode/eslint-config/commit/d37be961db6ab82f40092f73cac37beee1571c82))
|
|
12
36
|
|
|
13
37
|
## [0.1.0](https://github.com/tpluscode/eslint-config/compare/v0.0.4...v0.1.0) (2020-04-23)
|
|
14
38
|
|
|
15
|
-
|
|
16
39
|
### Features
|
|
17
40
|
|
|
18
|
-
|
|
41
|
+
- set up import plugin ([13873d7](https://github.com/tpluscode/eslint-config/commit/13873d7ad82b3fb7b9669f4486272e3648672538))
|
|
19
42
|
|
|
20
43
|
### [0.0.4](https://github.com/tpluscode/eslint-config/compare/v0.0.3...v0.0.4) (2019-12-08)
|
|
21
44
|
|
|
22
|
-
|
|
23
45
|
### Features
|
|
24
46
|
|
|
25
|
-
|
|
47
|
+
- disallow console ([edb3849](https://github.com/tpluscode/eslint-config/commit/edb384909b732fcbdb025ec6532b72156d550bf8))
|
|
26
48
|
|
|
27
49
|
### [0.0.3](https://github.com/tpluscode/eslint-config/compare/v0.0.2...v0.0.3) (2019-11-30)
|
|
28
50
|
|
|
@@ -30,12 +52,10 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
30
52
|
|
|
31
53
|
### 0.0.1 (2019-11-30)
|
|
32
54
|
|
|
33
|
-
|
|
34
55
|
### Features
|
|
35
56
|
|
|
36
|
-
|
|
37
|
-
|
|
57
|
+
- first version based on current projects ([38c3443](https://github.com/tpluscode/eslint-config/commit/38c344312641f3b681ab6dde8ba783166537606c))
|
|
38
58
|
|
|
39
59
|
### Bug Fixes
|
|
40
60
|
|
|
41
|
-
|
|
61
|
+
- change parser option to work with vue ([ae5fc4b](https://github.com/tpluscode/eslint-config/commit/ae5fc4be1a11301f4e60ea16ae7e835b207a87fb))
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @tpluscode/eslint-config
|
|
2
2
|
|
|
3
|
-
Slightly customized `standard` config with TypeScript rules enabled.
|
|
3
|
+
Slightly customized `standard` config with TypeScript rules enabled.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -9,7 +9,10 @@ npm i --save-dev \
|
|
|
9
9
|
@tpluscode/eslint-config \
|
|
10
10
|
@typescript-eslint/eslint-plugin \
|
|
11
11
|
@typescript-eslint/parser \
|
|
12
|
+
eslint-import-resolver-typescript \
|
|
13
|
+
eslint-config-standard \
|
|
12
14
|
eslint-plugin-import \
|
|
15
|
+
eslint-plugin-node \
|
|
13
16
|
standard
|
|
14
17
|
```
|
|
15
18
|
|
package/index.js
CHANGED
|
@@ -16,7 +16,7 @@ module.exports = {
|
|
|
16
16
|
rules: {
|
|
17
17
|
indent: 'off',
|
|
18
18
|
'no-console': 'error',
|
|
19
|
-
'import/no-unresolved': '
|
|
19
|
+
'import/no-unresolved': 'error',
|
|
20
20
|
'import/extensions': 'off',
|
|
21
21
|
'import/order': 'error',
|
|
22
22
|
'space-before-function-paren': [
|
|
@@ -51,10 +51,20 @@ module.exports = {
|
|
|
51
51
|
],
|
|
52
52
|
optionalDependencies: false
|
|
53
53
|
}
|
|
54
|
-
]
|
|
54
|
+
],
|
|
55
|
+
'no-dupe-class-members': 'off',
|
|
56
|
+
'@typescript-eslint/no-dupe-class-members': ['error']
|
|
55
57
|
},
|
|
56
58
|
settings: {
|
|
57
|
-
'import/core-modules': ['rdf-js']
|
|
59
|
+
'import/core-modules': ['rdf-js'],
|
|
60
|
+
'import/parsers': {
|
|
61
|
+
'@typescript-eslint/parser': ['.ts', '.tsx']
|
|
62
|
+
},
|
|
63
|
+
'import/resolver': {
|
|
64
|
+
typescript: {
|
|
65
|
+
alwaysTryTypes: true
|
|
66
|
+
}
|
|
67
|
+
}
|
|
58
68
|
},
|
|
59
69
|
overrides: [
|
|
60
70
|
{
|
|
@@ -66,6 +76,17 @@ module.exports = {
|
|
|
66
76
|
'@typescript-eslint/no-var-requires': 'off'
|
|
67
77
|
}
|
|
68
78
|
},
|
|
79
|
+
{
|
|
80
|
+
files: [
|
|
81
|
+
'*.test.js',
|
|
82
|
+
'*.spec.js',
|
|
83
|
+
'*.test.ts',
|
|
84
|
+
'*.spec.ts'
|
|
85
|
+
],
|
|
86
|
+
rules: {
|
|
87
|
+
'no-unused-expressions': 'off'
|
|
88
|
+
}
|
|
89
|
+
},
|
|
69
90
|
{
|
|
70
91
|
files: '*.ts',
|
|
71
92
|
rules: {
|
package/package.json
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tpluscode/eslint-config",
|
|
3
|
-
"version": "0.2
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
+
"prepare": "husky install",
|
|
7
8
|
"test": "eslint .",
|
|
8
|
-
"release": "
|
|
9
|
+
"release": "changeset publish"
|
|
9
10
|
},
|
|
10
11
|
"peerDependencies": {
|
|
11
12
|
"eslint": ">=6",
|
|
13
|
+
"eslint-import-resolver-typescript": ">=2",
|
|
12
14
|
"@typescript-eslint/eslint-plugin": ">=2",
|
|
13
15
|
"@typescript-eslint/parser": ">=2",
|
|
14
16
|
"standard": ">=11"
|
|
15
17
|
},
|
|
16
18
|
"devDependencies": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
19
|
+
"@changesets/cli": "^2.15.0",
|
|
20
|
+
"eslint": "^7.23.0",
|
|
21
|
+
"eslint-config-standard": "^16.0.2",
|
|
22
|
+
"eslint-plugin-import": "^2.22.1",
|
|
23
|
+
"eslint-plugin-node": "^11.1.0",
|
|
24
|
+
"standard": "^16.0.3",
|
|
25
|
+
"lint-staged": "^10.5.4",
|
|
26
|
+
"husky": "^6.0.0"
|
|
24
27
|
},
|
|
25
28
|
"repository": {
|
|
26
29
|
"type": "git",
|
|
@@ -38,21 +41,9 @@
|
|
|
38
41
|
"access": "public"
|
|
39
42
|
},
|
|
40
43
|
"homepage": "https://github.com/tpluscode/eslint-config#readme",
|
|
41
|
-
"husky": {
|
|
42
|
-
"hooks": {
|
|
43
|
-
"pre-commit": "lint-staged",
|
|
44
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
44
|
"lint-staged": {
|
|
48
45
|
"*.js": [
|
|
49
|
-
"eslint --fix --quiet"
|
|
50
|
-
"git add"
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
"commitlint": {
|
|
54
|
-
"extends": [
|
|
55
|
-
"@commitlint/config-conventional"
|
|
46
|
+
"eslint --fix --quiet"
|
|
56
47
|
]
|
|
57
48
|
}
|
|
58
49
|
}
|
package/.travis.yml
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
language: node_js
|
|
2
|
-
node_js: 12
|
|
3
|
-
deploy:
|
|
4
|
-
provider: npm
|
|
5
|
-
email: npm@t-code.pl
|
|
6
|
-
api_key:
|
|
7
|
-
secure: n7vx5qHF71MXgRttJCQzZU85ekxnfTUmW1et3I38LN67xutmLGJJgsbjeKdwcqVyKe6tL3lyHAd9+cHqWgpUKJnnH07yoQt1dluDJ/cGNihdLWKcwM8VATimMAFcc7i8gWbp0nbukDmC3guJ0COIu4DFtSo8pJ0rt7vLs4Uzxd6aQt/SdFJyKGKocyYvyfimtZdvBnJVsneqHY/a5cCi1PM+qSAwUMCPjKDnrrmX3s11QOBdtFN4VqsgQCana82eQ4TbU33mOSnJqqMRcGijvzgXGISJwXIRLl1NebS2FLfVlGW/srP3wvIkotmOc+iCGkRIPcAaYyZ6XLta8qYxT5FGWTCvrWzWVZ1kRZ2p6t8EvacXhE/YwBx3eE5oB9wVa904ctOfz4SFDtQ0aYKfmqWXsqZLRCiiZJYRdBttog/5nlKBOVyP9yJcUJfp/ClsAcUS9NMv3iQ0shpYSbQDfB0U0FVpsdGts2iS6+orwoj/90OEROpC5AcN9SyOuznvu60pXeYX/j4QfPT1lQegXd1l7MdLGsKFeR447jD425GeRVzSdszn7XRP1AFlj15rMRl6BAIEDjn0iKoHloUfAJeg83b403pxYzDL/MFTjfpT/Jcwu65wEzXySXkgGh26calKTDYscaVgjie/M1ZItessS1sBdqmYqhK6ynaPNHk=
|
|
8
|
-
on:
|
|
9
|
-
tags: true
|
|
10
|
-
repo: tpluscode/eslint-config
|