@mscharley/eslint-config 1.8.5 → 2.0.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/CHANGELOG.json +40 -0
- package/CHANGELOG.md +15 -1
- package/eslint.json +13 -1
- package/package.json +69 -63
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mscharley/eslint-config",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "2.0.2",
|
|
6
|
+
"tag": "@mscharley/eslint-config_v2.0.2",
|
|
7
|
+
"date": "Sun, 02 Jul 2023 02:35:52 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Better support for esm projects"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"dependency": [
|
|
15
|
+
{
|
|
16
|
+
"comment": "Updating dependency \"@mscharley/prettier-config\" to `2.0.2`"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"comment": "Updating dependency \"@mscharley/prettier-config\" to `2.0.2`"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"version": "2.0.1",
|
|
26
|
+
"tag": "@mscharley/eslint-config_v2.0.1",
|
|
27
|
+
"date": "Mon, 20 Mar 2023 15:00:56 GMT",
|
|
28
|
+
"comments": {
|
|
29
|
+
"patch": [
|
|
30
|
+
{
|
|
31
|
+
"comment": "Bump to typescript 5.x"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"dependency": [
|
|
35
|
+
{
|
|
36
|
+
"comment": "Updating dependency \"@mscharley/prettier-config\" to `2.0.1`"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"comment": "Updating dependency \"@mscharley/prettier-config\" to `2.0.1`"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
4
44
|
{
|
|
5
45
|
"version": "1.8.5",
|
|
6
46
|
"tag": "@mscharley/eslint-config_v1.8.5",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
# Change Log - @mscharley/eslint-config
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Sun, 02 Jul 2023 02:35:52 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 2.0.2
|
|
6
|
+
Sun, 02 Jul 2023 02:35:52 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- Better support for esm projects
|
|
11
|
+
|
|
12
|
+
## 2.0.1
|
|
13
|
+
Mon, 20 Mar 2023 15:00:56 GMT
|
|
14
|
+
|
|
15
|
+
### Patches
|
|
16
|
+
|
|
17
|
+
- Bump to typescript 5.x
|
|
4
18
|
|
|
5
19
|
## 1.8.5
|
|
6
20
|
Wed, 14 Sep 2022 21:08:45 GMT
|
package/eslint.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": ["eslint:recommended", "./prettier"],
|
|
2
|
+
"extends": ["eslint:recommended", "./prettier", "plugin:import/recommended", "plugin:import/typescript"],
|
|
3
3
|
"parser": "espree",
|
|
4
4
|
"env": {
|
|
5
5
|
"commonjs": true,
|
|
@@ -7,6 +7,12 @@
|
|
|
7
7
|
"es2017": true
|
|
8
8
|
},
|
|
9
9
|
"rules": {
|
|
10
|
+
"import/first": ["warn"],
|
|
11
|
+
"import/no-cycle": ["error", { "ignoreExternal": true }],
|
|
12
|
+
"import/no-duplicates": "off",
|
|
13
|
+
"import/no-useless-path-segments": ["warn"],
|
|
14
|
+
"node/no-missing-import": "off",
|
|
15
|
+
"node/no-missing-require": "off",
|
|
10
16
|
"array-callback-return": "error",
|
|
11
17
|
"arrow-spacing": "error",
|
|
12
18
|
"block-scoped-var": "warn",
|
|
@@ -107,5 +113,11 @@
|
|
|
107
113
|
"rest-spread-spacing": ["error", "never"],
|
|
108
114
|
"sort-imports": ["warn", { "allowSeparatedGroups": true, "ignoreCase": true }],
|
|
109
115
|
"symbol-description": "error"
|
|
116
|
+
},
|
|
117
|
+
"settings": {
|
|
118
|
+
"import/resolver": {
|
|
119
|
+
"typescript": true,
|
|
120
|
+
"node": true
|
|
121
|
+
}
|
|
110
122
|
}
|
|
111
123
|
}
|
package/package.json
CHANGED
|
@@ -1,64 +1,70 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
2
|
+
"name": "@mscharley/eslint-config",
|
|
3
|
+
"version": "2.0.2",
|
|
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
|
+
"dependencies": {},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"@mscharley/prettier-config": "2.0.2",
|
|
31
|
+
"@typescript-eslint/parser": "^5.55.0",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^5.55.0",
|
|
33
|
+
"eslint": "^8.36.0",
|
|
34
|
+
"eslint-config-prettier": "^8.7.0",
|
|
35
|
+
"eslint-import-resolver-typescript": "^3.5.5",
|
|
36
|
+
"eslint-plugin-deprecation": "^1.4.1",
|
|
37
|
+
"eslint-plugin-import": "^2.27.5",
|
|
38
|
+
"eslint-plugin-node": "^11.1.0",
|
|
39
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
40
|
+
"eslint-plugin-react": "^7.32.2",
|
|
41
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
42
|
+
"prettier": "^2.8.5",
|
|
43
|
+
"typescript": "^5.0.2"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@mscharley/prettier-config": "2.0.2",
|
|
47
|
+
"@typescript-eslint/parser": "^5.60.1",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^5.60.1",
|
|
49
|
+
"eslint": "^8.44.0",
|
|
50
|
+
"eslint-config-prettier": "^8.8.0",
|
|
51
|
+
"eslint-import-resolver-typescript": "^3.5.5",
|
|
52
|
+
"eslint-plugin-deprecation": "^1.4.1",
|
|
53
|
+
"eslint-plugin-import": "^2.27.5",
|
|
54
|
+
"eslint-plugin-node": "^11.1.0",
|
|
55
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
56
|
+
"eslint-plugin-react": "^7.32.2",
|
|
57
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
58
|
+
"prettier": "^2.8.8",
|
|
59
|
+
"lint-staged": "~13.2.3",
|
|
60
|
+
"typescript": "~5.1.6",
|
|
61
|
+
"npm-check-updates": "~16.10.13"
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"build": "",
|
|
65
|
+
"precommit": "lint-staged",
|
|
66
|
+
"check-updates": "npm-check-updates 2>&1",
|
|
67
|
+
"test": "eslint -c index.js --max-warnings 0 *.js examples"
|
|
68
|
+
},
|
|
69
|
+
"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"
|
|
70
|
+
}
|