@mscharley/eslint-config 1.8.4 → 2.0.1

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,46 @@
1
1
  {
2
2
  "name": "@mscharley/eslint-config",
3
3
  "entries": [
4
+ {
5
+ "version": "2.0.1",
6
+ "tag": "@mscharley/eslint-config_v2.0.1",
7
+ "date": "Mon, 20 Mar 2023 15:00:56 GMT",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "Bump to typescript 5.x"
12
+ }
13
+ ],
14
+ "dependency": [
15
+ {
16
+ "comment": "Updating dependency \"@mscharley/prettier-config\" to `2.0.1`"
17
+ },
18
+ {
19
+ "comment": "Updating dependency \"@mscharley/prettier-config\" to `2.0.1`"
20
+ }
21
+ ]
22
+ }
23
+ },
24
+ {
25
+ "version": "1.8.5",
26
+ "tag": "@mscharley/eslint-config_v1.8.5",
27
+ "date": "Wed, 14 Sep 2022 21:08:45 GMT",
28
+ "comments": {
29
+ "patch": [
30
+ {
31
+ "comment": "fix: updates"
32
+ }
33
+ ],
34
+ "dependency": [
35
+ {
36
+ "comment": "Updating dependency \"@mscharley/prettier-config\" to `1.2.4`"
37
+ },
38
+ {
39
+ "comment": "Updating dependency \"@mscharley/prettier-config\" to `1.2.4`"
40
+ }
41
+ ]
42
+ }
43
+ },
4
44
  {
5
45
  "version": "1.8.4",
6
46
  "tag": "@mscharley/eslint-config_v1.8.4",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,20 @@
1
1
  # Change Log - @mscharley/eslint-config
2
2
 
3
- This log was last generated on Fri, 18 Mar 2022 07:40:16 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 20 Mar 2023 15:00:56 GMT and should not be manually modified.
4
+
5
+ ## 2.0.1
6
+ Mon, 20 Mar 2023 15:00:56 GMT
7
+
8
+ ### Patches
9
+
10
+ - Bump to typescript 5.x
11
+
12
+ ## 1.8.5
13
+ Wed, 14 Sep 2022 21:08:45 GMT
14
+
15
+ ### Patches
16
+
17
+ - fix: updates
4
18
 
5
19
  ## 1.8.4
6
20
  Fri, 18 Mar 2022 07:40:16 GMT
package/package.json CHANGED
@@ -1,64 +1,65 @@
1
1
  {
2
- "name": "@mscharley/eslint-config",
3
- "version": "1.8.4",
4
- "description": "ESLint presets that I use a lot",
5
- "main": "index.json",
6
- "scripts": {
7
- "build": "",
8
- "precommit": "lint-staged",
9
- "check-updates": "npm-check-updates 2>&1",
10
- "test": "eslint -c index.js --max-warnings 0 *.js examples"
11
- },
12
- "lint-staged": {
13
- "*.{js,jsx,ts,tsx}": "eslint -c index.js --fix",
14
- "*.json": "prettier -w"
15
- },
16
- "repository": {
17
- "type": "git",
18
- "url": "git+https://github.com/mscharley/node-presets.git"
19
- },
20
- "keywords": [
21
- "eslint",
22
- "eslint-presets"
23
- ],
24
- "author": "Matthew Scharley <matt@scharley.me>",
25
- "funding": {
26
- "type": "individual",
27
- "url": "https://github.com/sponsors/mscharley"
28
- },
29
- "license": "MIT",
30
- "bugs": {
31
- "url": "https://github.com/mscharley/node-presets/issues"
32
- },
33
- "homepage": "https://github.com/mscharley/node-presets#readme",
34
- "peerDependencies": {
35
- "@mscharley/prettier-config": "1.2.3",
36
- "@typescript-eslint/parser": "^5.15.0",
37
- "@typescript-eslint/eslint-plugin": "^5.15.0",
38
- "eslint": "^8.11.0",
39
- "eslint-config-prettier": "^8.5.0",
40
- "eslint-plugin-deprecation": "^1.3.2",
41
- "eslint-plugin-node": "^11.1.0",
42
- "eslint-plugin-prettier": "^4.0.0",
43
- "eslint-plugin-react": "^7.29.4",
44
- "eslint-plugin-react-hooks": "^4.3.0",
45
- "prettier": "^2.6.0",
46
- "typescript": "^4.5.3"
47
- },
48
- "devDependencies": {
49
- "@mscharley/prettier-config": "1.2.3",
50
- "@typescript-eslint/parser": "^5.15.0",
51
- "@typescript-eslint/eslint-plugin": "^5.15.0",
52
- "eslint": "^8.11.0",
53
- "eslint-config-prettier": "^8.5.0",
54
- "eslint-plugin-deprecation": "^1.3.2",
55
- "eslint-plugin-node": "^11.1.0",
56
- "eslint-plugin-prettier": "^4.0.0",
57
- "eslint-plugin-react": "^7.29.4",
58
- "eslint-plugin-react-hooks": "^4.3.0",
59
- "prettier": "^2.6.0",
60
- "lint-staged": "~12.3.7",
61
- "typescript": "~4.6.2",
62
- "npm-check-updates": "~12.5.4"
63
- }
64
- }
2
+ "name": "@mscharley/eslint-config",
3
+ "version": "2.0.1",
4
+ "description": "ESLint presets that I use a lot",
5
+ "main": "index.json",
6
+ "lint-staged": {
7
+ "*.{js,jsx,ts,tsx}": "eslint -c index.js --fix",
8
+ "*.json": "prettier -w"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/mscharley/node-presets.git"
13
+ },
14
+ "keywords": [
15
+ "eslint",
16
+ "eslint-presets"
17
+ ],
18
+ "author": "Matthew Scharley <matt@scharley.me>",
19
+ "funding": {
20
+ "type": "individual",
21
+ "url": "https://github.com/sponsors/mscharley"
22
+ },
23
+ "license": "MIT",
24
+ "bugs": {
25
+ "url": "https://github.com/mscharley/node-presets/issues"
26
+ },
27
+ "homepage": "https://github.com/mscharley/node-presets#readme",
28
+ "peerDependencies": {
29
+ "@mscharley/prettier-config": "2.0.1",
30
+ "@typescript-eslint/parser": "^5.55.0",
31
+ "@typescript-eslint/eslint-plugin": "^5.55.0",
32
+ "eslint": "^8.36.0",
33
+ "eslint-config-prettier": "^8.7.0",
34
+ "eslint-plugin-deprecation": "^1.4.0-next.1",
35
+ "eslint-plugin-node": "^11.1.0",
36
+ "eslint-plugin-prettier": "^4.2.1",
37
+ "eslint-plugin-react": "^7.32.2",
38
+ "eslint-plugin-react-hooks": "^4.6.0",
39
+ "prettier": "^2.8.5",
40
+ "typescript": "^5.0.2"
41
+ },
42
+ "devDependencies": {
43
+ "@mscharley/prettier-config": "2.0.1",
44
+ "@typescript-eslint/parser": "^5.55.0",
45
+ "@typescript-eslint/eslint-plugin": "^5.55.0",
46
+ "eslint": "^8.36.0",
47
+ "eslint-config-prettier": "^8.7.0",
48
+ "eslint-plugin-deprecation": "^1.4.0-next.1",
49
+ "eslint-plugin-node": "^11.1.0",
50
+ "eslint-plugin-prettier": "^4.2.1",
51
+ "eslint-plugin-react": "^7.32.2",
52
+ "eslint-plugin-react-hooks": "^4.6.0",
53
+ "prettier": "^2.8.5",
54
+ "lint-staged": "~13.2.0",
55
+ "typescript": "~5.0.2",
56
+ "npm-check-updates": "~16.7.13"
57
+ },
58
+ "scripts": {
59
+ "build": "",
60
+ "precommit": "lint-staged",
61
+ "check-updates": "npm-check-updates 2>&1",
62
+ "test": "eslint -c index.js --max-warnings 0 *.js examples"
63
+ },
64
+ "readme": "# @mscharley/eslint-config\n\n**Source:** [https://github.com/mscharley/node-presets](https://github.com/mscharley/node-presets) \n**Author:** Matthew Scharley \n**Contributors:** [See contributors on GitHub][gh-contrib] \n**Bugs/Support:** [Github Issues][gh-issues] \n**Copyright:** 2020 \n**License:** [MIT license][license] \n**Status:** Active\n\n## Synopsis\n\nThis is a preset for eslint for use with TypeScript or JavaScript projects.\n\n## Installation\n\n```console\n$ npm install --save-dev @mscharley/eslint-config @mscharley/prettier-config\n```\n\n## Usage\n\n```js\n// .eslintrc.js\nmodule.exports = {\n root: true,\n extends: [\n '@mscharley', // Baseline rules for any TS or JS project.\n '@mscharley/eslint-config/node', // For projects running on NodeJS.\n // '@mscharley/eslint-config/react', // For projects running React.\n ],\n};\n```\n\n```jsonc\n// .prettierrc\n\"@mscharley/prettier-config\"\n```\n\n## Extras\n\n### Deprecation warnings for JavaScript files\n\nAs a general rule we can't enable the `deprecation/deprecation` rule for JavaScript files because this rule requires TypeScript type information to work. If you have a mixed TypeScript/JavaScript project then you can enable it for the JavaScript files inside your TypeScript project using the following override:\n\n```js\n// .eslintrc.js\nmodule.exports = {\n overrides: [\n {\n // This must be a valid path inside your TypeScript source folders.\n files: [\"src/**/*.{js,jsx}\"],\n rules: { \"deprecation/deprecation\": \"warn\" },\n },\n ],\n};\n```\n\n[gh-contrib]: https://github.com/mscharley/node-presets/graphs/contributors\n[gh-issues]: https://github.com/mscharley/node-presets/issues\n[license]: https://github.com/mscharley/node-presets/blob/main/LICENSE\n"
65
+ }