@mscharley/eslint-config 1.6.3 → 1.8.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/CHANGELOG.json CHANGED
@@ -1,6 +1,66 @@
1
1
  {
2
2
  "name": "@mscharley/eslint-config",
3
3
  "entries": [
4
+ {
5
+ "version": "1.8.0",
6
+ "tag": "@mscharley/eslint-config_v1.8.0",
7
+ "date": "Wed, 02 Mar 2022 00:45:39 GMT",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "comment": "feat: add support for linting react apps"
12
+ }
13
+ ],
14
+ "dependency": [
15
+ {
16
+ "comment": "Updating dependency \"@mscharley/prettier-config\" to `1.2.2`"
17
+ },
18
+ {
19
+ "comment": "Updating dependency \"@mscharley/prettier-config\" to `1.2.2`"
20
+ }
21
+ ]
22
+ }
23
+ },
24
+ {
25
+ "version": "1.7.1",
26
+ "tag": "@mscharley/eslint-config_v1.7.1",
27
+ "date": "Tue, 25 Jan 2022 14:41:46 GMT",
28
+ "comments": {
29
+ "dependency": [
30
+ {
31
+ "comment": "Updating dependency \"@mscharley/prettier-config\" to `1.2.1`"
32
+ },
33
+ {
34
+ "comment": "Updating dependency \"@mscharley/prettier-config\" to `1.2.1`"
35
+ }
36
+ ]
37
+ }
38
+ },
39
+ {
40
+ "version": "1.7.0",
41
+ "tag": "@mscharley/eslint-config_v1.7.0",
42
+ "date": "Fri, 10 Dec 2021 13:24:54 GMT",
43
+ "comments": {
44
+ "patch": [
45
+ {
46
+ "comment": "fix: add tests for styling and reasonings why"
47
+ }
48
+ ],
49
+ "minor": [
50
+ {
51
+ "comment": "feat: bump to typescript-eslint 5.x"
52
+ }
53
+ ],
54
+ "dependency": [
55
+ {
56
+ "comment": "Updating dependency \"@mscharley/prettier-config\" to `1.2.0`"
57
+ },
58
+ {
59
+ "comment": "Updating dependency \"@mscharley/prettier-config\" to `1.2.0`"
60
+ }
61
+ ]
62
+ }
63
+ },
4
64
  {
5
65
  "version": "1.6.3",
6
66
  "tag": "@mscharley/eslint-config_v1.6.3",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,29 @@
1
1
  # Change Log - @mscharley/eslint-config
2
2
 
3
- This log was last generated on Thu, 16 Sep 2021 18:50:52 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 02 Mar 2022 00:45:39 GMT and should not be manually modified.
4
+
5
+ ## 1.8.0
6
+ Wed, 02 Mar 2022 00:45:39 GMT
7
+
8
+ ### Minor changes
9
+
10
+ - feat: add support for linting react apps
11
+
12
+ ## 1.7.1
13
+ Tue, 25 Jan 2022 14:41:46 GMT
14
+
15
+ _Version update only_
16
+
17
+ ## 1.7.0
18
+ Fri, 10 Dec 2021 13:24:54 GMT
19
+
20
+ ### Minor changes
21
+
22
+ - feat: bump to typescript-eslint 5.x
23
+
24
+ ### Patches
25
+
26
+ - fix: add tests for styling and reasonings why
4
27
 
5
28
  ## 1.6.3
6
29
  Thu, 16 Sep 2021 18:50:52 GMT
package/README.md CHANGED
@@ -27,7 +27,8 @@ module.exports = {
27
27
  extends: [
28
28
  '@mscharley', // For TS projects or mixed TS/JS projects.
29
29
  // '@mscharley/eslint-config/eslint', // For JS-only projects.
30
- '@mscharley/eslint-config/node', // For projects running on node.
30
+ '@mscharley/eslint-config/node', // For projects running on NodeJS.
31
+ // '@mscharley/eslint-config/react', // For projects running React.
31
32
  ],
32
33
  };
33
34
  ```
@@ -58,4 +59,4 @@ module.exports = {
58
59
 
59
60
  [gh-contrib]: https://github.com/mscharley/node-presets/graphs/contributors
60
61
  [gh-issues]: https://github.com/mscharley/node-presets/issues
61
- [license]: https://github.com/mscharley/node-presets/blob/master/LICENSE
62
+ [license]: https://github.com/mscharley/node-presets/blob/main/LICENSE
package/eslint.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": ["eslint:recommended", "./prettier"],
2
+ "extends": ["eslint:recommended", "./prettier", "./testing"],
3
3
  "parser": "espree",
4
4
  "env": {
5
5
  "commonjs": true,
@@ -50,10 +50,7 @@
50
50
  "ignoreArrayIndexes": true
51
51
  }
52
52
  ],
53
- "no-multi-spaces": [
54
- "error",
55
- { "exceptions": { "VariableDeclarator": true } }
56
- ],
53
+ "no-multi-spaces": ["error", { "exceptions": { "VariableDeclarator": true } }],
57
54
  "no-multi-str": "error",
58
55
  "no-new": "error",
59
56
  "no-new-func": "error",
@@ -103,19 +100,12 @@
103
100
  "prefer-rest-params": "error",
104
101
  "prefer-spread": "error",
105
102
  "prefer-template": "error",
106
- "quotes": [
107
- "warn",
108
- "single",
109
- { "avoidEscape": true, "allowTemplateLiterals": false }
110
- ],
103
+ "quotes": ["warn", "single", { "avoidEscape": true, "allowTemplateLiterals": false }],
111
104
  "require-atomic-updates": "warn",
112
105
  "require-await": "error",
113
106
  "require-unicode-regexp": "warn",
114
107
  "rest-spread-spacing": ["error", "never"],
115
- "sort-imports": [
116
- "warn",
117
- { "allowSeparatedGroups": true, "ignoreCase": true }
118
- ],
108
+ "sort-imports": ["warn", { "allowSeparatedGroups": true, "ignoreCase": true }],
119
109
  "symbol-description": "error"
120
110
  }
121
111
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@mscharley/eslint-config",
3
- "version": "1.6.3",
3
+ "version": "1.8.0",
4
4
  "description": "ESLint presets that I use a lot",
5
5
  "main": "index.json",
6
6
  "scripts": {
7
7
  "build": "",
8
8
  "precommit": "lint-staged",
9
9
  "check-updates": "npm-check-updates 2>&1",
10
- "test": "eslint -c index.js *.js"
10
+ "test": "eslint -c index.js --max-warnings 0 *.js examples"
11
11
  },
12
12
  "lint-staged": {
13
13
  "*.{js,jsx,ts,tsx}": "eslint -c index.js --fix",
@@ -32,29 +32,29 @@
32
32
  },
33
33
  "homepage": "https://github.com/mscharley/node-presets#readme",
34
34
  "peerDependencies": {
35
- "@mscharley/prettier-config": "1.1.2",
36
- "@typescript-eslint/parser": "^4.31.1",
37
- "@typescript-eslint/eslint-plugin": "^4.31.1",
38
- "eslint": "^7.32.0",
39
- "eslint-config-prettier": "^8.3.0",
40
- "eslint-plugin-deprecation": "^1.2.1",
35
+ "@mscharley/prettier-config": "1.2.2",
36
+ "@typescript-eslint/parser": "^5.13.0",
37
+ "@typescript-eslint/eslint-plugin": "^5.13.0",
38
+ "eslint": "^8.10.0",
39
+ "eslint-config-prettier": "^8.4.0",
40
+ "eslint-plugin-deprecation": "^1.3.2",
41
41
  "eslint-plugin-node": "^11.1.0",
42
42
  "eslint-plugin-prettier": "^4.0.0",
43
- "prettier": "^2.4.0",
44
- "typescript": "^4.4.3"
43
+ "prettier": "^2.5.1",
44
+ "typescript": "^4.5.3"
45
45
  },
46
46
  "devDependencies": {
47
- "@mscharley/prettier-config": "1.1.2",
48
- "@typescript-eslint/parser": "^4.31.1",
49
- "@typescript-eslint/eslint-plugin": "^4.31.1",
50
- "eslint": "^7.32.0",
51
- "eslint-config-prettier": "^8.3.0",
52
- "eslint-plugin-deprecation": "^1.2.1",
47
+ "@mscharley/prettier-config": "1.2.2",
48
+ "@typescript-eslint/parser": "^5.13.0",
49
+ "@typescript-eslint/eslint-plugin": "^5.13.0",
50
+ "eslint": "^8.10.0",
51
+ "eslint-config-prettier": "^8.4.0",
52
+ "eslint-plugin-deprecation": "^1.3.2",
53
53
  "eslint-plugin-node": "^11.1.0",
54
54
  "eslint-plugin-prettier": "^4.0.0",
55
- "prettier": "^2.4.0",
56
- "lint-staged": "~11.1.2",
57
- "typescript": "~4.4.3",
58
- "npm-check-updates": "~11.8.5"
55
+ "prettier": "^2.5.1",
56
+ "lint-staged": "~12.3.4",
57
+ "typescript": "~4.6.2",
58
+ "npm-check-updates": "~12.5.0"
59
59
  }
60
60
  }
package/react.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": ["plugin:react/recommended", "plugin:react/jsx-runtime", "plugin:react-hooks/recommended"],
3
+ "rules": {
4
+ "react/prefer-stateless-function": "error",
5
+ "react/prop-types": "off"
6
+ }
7
+ }
package/testing.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "overrides": [
3
+ {
4
+ // Viteshot support.
5
+ "files": ["**/*.screenshot.{jsx,tsx}"],
6
+ "rules": {
7
+ "@typescript-eslint/explicit-function-return-type": "off",
8
+ "@typescript-eslint/explicit-module-boundary-types": "off"
9
+ }
10
+ },
11
+ {
12
+ // Jest support.
13
+ "files": ["**/__tests__/**/*.{ts,js,tsx,jsx}"],
14
+ "rules": {
15
+ "@typescript-eslint/consistent-type-assertions": "off"
16
+ }
17
+ }
18
+ ]
19
+ }