@mlaursen/eslint-config 1.3.0 → 1.6.0
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/.env.github +2 -0
- package/CHANGELOG.md +23 -0
- package/README.md +8 -2
- package/index.js +2 -0
- package/package.json +26 -9
- package/.prettierrc +0 -9
- package/.versionrc.js +0 -1
- package/changelog.config.js +0 -28
package/.env.github
ADDED
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
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
4
|
|
|
5
|
+
## [1.6.0](https://github.com/mlaursen/eslint-config/compare/v1.5.0...v1.6.0) (2022-03-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **typescript:** disable @typescript-eslint/consistent-type-imports ([1720116](https://github.com/mlaursen/eslint-config/commit/17201169a3a454901b69226312a0f29174f876a5))
|
|
11
|
+
|
|
12
|
+
## [1.5.0](https://github.com/mlaursen/eslint-config/compare/v1.4.0...v1.5.0) (2022-03-09)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* force braces ([f6d3f69](https://github.com/mlaursen/eslint-config/commit/f6d3f69cb8644746f7db8e6d562fbdd3a20c8d19))
|
|
18
|
+
* Force consistent type imports for typescript 3.8 or greater ([880217f](https://github.com/mlaursen/eslint-config/commit/880217fb7ad258acc6601218bb649c0928d97ade))
|
|
19
|
+
* Upgrade eslint dependencies to latest ([7551d04](https://github.com/mlaursen/eslint-config/commit/7551d0457be41ca3844a35b45a1eb11b9a510ffc))
|
|
20
|
+
|
|
21
|
+
## [1.4.0](https://github.com/mlaursen/eslint-config/compare/v1.3.0...v1.4.0) (2022-01-11)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* **deps:** bump all dependencies to latest ([0e7b8f5](https://github.com/mlaursen/eslint-config/commit/0e7b8f5042d5b99bceaa47d10e0316496e857944))
|
|
27
|
+
|
|
5
28
|
## [1.3.0](https://github.com/mlaursen/eslint-config/compare/v1.2.0...v1.3.0) (2022-01-01)
|
|
6
29
|
|
|
7
30
|
|
package/README.md
CHANGED
|
@@ -5,9 +5,13 @@ A reusable eslint config that I use for most of my projects.
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```js
|
|
8
|
-
module.exports =
|
|
8
|
+
module.exports = {
|
|
9
|
+
extends: "@mlaursen/eslint-config",
|
|
10
|
+
};
|
|
9
11
|
```
|
|
10
12
|
|
|
13
|
+
## Additional Type Checking
|
|
14
|
+
|
|
11
15
|
Or if I want to do additional rules and strict type checking linting rules:
|
|
12
16
|
|
|
13
17
|
```js
|
|
@@ -23,7 +27,9 @@ module.exports = {
|
|
|
23
27
|
overrides: [
|
|
24
28
|
{
|
|
25
29
|
files: ["**/*.ts", "**/*.tsx"],
|
|
26
|
-
extends: [
|
|
30
|
+
extends: [
|
|
31
|
+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
32
|
+
],
|
|
27
33
|
},
|
|
28
34
|
// any custom overrides for this project
|
|
29
35
|
],
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,29 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mlaursen/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "An eslint config used by mlaursen for most projects.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": "https://github.com/mlaursen/eslint-config.git",
|
|
7
7
|
"author": "Mikkel Laursen <mlaursen03@gmail.com>",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"
|
|
10
|
+
"test": "eslint -c index.js \"test/**/*.{js,jsx,ts,tsx}\"",
|
|
11
|
+
"run-script": "ts-node -T -P tsconfig.node.json",
|
|
12
|
+
"release": "yarn run-script scripts/release.ts"
|
|
11
13
|
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/mlaursen/eslint-config/issues"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"eslint",
|
|
19
|
+
"typescript"
|
|
20
|
+
],
|
|
12
21
|
"dependencies": {
|
|
13
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
14
|
-
"@typescript-eslint/parser": "^5.
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
|
23
|
+
"@typescript-eslint/parser": "^5.14.0",
|
|
15
24
|
"confusing-browser-globals": "^1.0.11",
|
|
16
|
-
"eslint-config-prettier": "^8.
|
|
17
|
-
"eslint-plugin-import": "^2.25.
|
|
18
|
-
"eslint-plugin-jest": "^
|
|
25
|
+
"eslint-config-prettier": "^8.5.0",
|
|
26
|
+
"eslint-plugin-import": "^2.25.4",
|
|
27
|
+
"eslint-plugin-jest": "^26.1.1",
|
|
19
28
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
20
|
-
"eslint-plugin-react": "^7.
|
|
29
|
+
"eslint-plugin-react": "^7.29.3",
|
|
21
30
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
22
31
|
"eslint-plugin-tsdoc": "^0.2.14"
|
|
23
32
|
},
|
|
24
33
|
"devDependencies": {
|
|
25
34
|
"@mlaursen/changelog-preset": "^1.1.0",
|
|
26
|
-
"
|
|
35
|
+
"@octokit/core": "^3.5.1",
|
|
36
|
+
"@types/inquirer": "^8.2.0",
|
|
37
|
+
"@types/node": "^17.0.21",
|
|
38
|
+
"dotenv": "^16.0.0",
|
|
39
|
+
"eslint": "^8.10.0",
|
|
40
|
+
"inquirer": "^8.2.1",
|
|
41
|
+
"standard-version": "^9.3.2",
|
|
42
|
+
"ts-node": "^10.7.0",
|
|
43
|
+
"typescript": "^4.6.2"
|
|
27
44
|
},
|
|
28
45
|
"peerDependencies": {
|
|
29
46
|
"eslint": ">= 8.0.0",
|
package/.prettierrc
DELETED
package/.versionrc.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('@mlaursen/changelog-preset');
|
package/changelog.config.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const packageJson = require('./package.json');
|
|
2
|
-
const {
|
|
3
|
-
createConfig,
|
|
4
|
-
defaultGetCommitType,
|
|
5
|
-
} = require('@mlaursen/changelog-preset/createConfig');
|
|
6
|
-
|
|
7
|
-
module.exports = createConfig({
|
|
8
|
-
tokens: Array.from(
|
|
9
|
-
new Set([
|
|
10
|
-
...Object.keys(packageJson.dependencies),
|
|
11
|
-
...Object.keys(packageJson.devDependencies),
|
|
12
|
-
])
|
|
13
|
-
),
|
|
14
|
-
ignoreDeps: false,
|
|
15
|
-
getCommitType: (commit) => {
|
|
16
|
-
const { scope = '' } = commit;
|
|
17
|
-
if (scope === 'deps') {
|
|
18
|
-
return 'Dependencies';
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (scope === 'dev-deps') {
|
|
22
|
-
// don't include dev-deps
|
|
23
|
-
return '';
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
return defaultGetCommitType(commit);
|
|
27
|
-
},
|
|
28
|
-
});
|