@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 ADDED
@@ -0,0 +1,2 @@
1
+ GITHUB_TOKEN=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
2
+
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 = require("@mlaursen/eslint-config");
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: ["@typescript-eslint/recommended-requiring-type-checking"],
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
@@ -54,6 +54,8 @@ module.exports = {
54
54
 
55
55
  // too many false positives with aliases/root dirs
56
56
  'import/no-unresolved': 0,
57
+
58
+ curly: 'error',
57
59
  },
58
60
  overrides: [
59
61
  {
package/package.json CHANGED
@@ -1,29 +1,46 @@
1
1
  {
2
2
  "name": "@mlaursen/eslint-config",
3
- "version": "1.3.0",
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
- "release": "standard-version && npm publish && git push --follow-tags origin main"
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.8.1",
14
- "@typescript-eslint/parser": "^5.8.1",
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.2.0",
17
- "eslint-plugin-import": "^2.25.3",
18
- "eslint-plugin-jest": "^25.3.3",
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.28.0",
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
- "standard-version": "^9.3.2"
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
@@ -1,9 +0,0 @@
1
- printWidth: 80
2
- trailingComma: es5
3
- overrides:
4
- - files: "*.{js,jsx,scss}"
5
- options:
6
- singleQuote: true
7
- - files: "*.md"
8
- options:
9
- proseWrap: always
package/.versionrc.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require('@mlaursen/changelog-preset');
@@ -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
- });