@slashnephy/eslint-config 1.0.5 → 1.0.7
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/dist/index.js
CHANGED
|
@@ -2,9 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const path_1 = require("path");
|
|
4
4
|
require("@rushstack/eslint-patch/modern-module-resolution.js");
|
|
5
|
+
const eslint_gitignore_1 = require("eslint-gitignore");
|
|
5
6
|
module.exports = {
|
|
6
7
|
root: true,
|
|
7
8
|
extends: ['eslint:recommended'],
|
|
9
|
+
ignorePatterns: [
|
|
10
|
+
'**/node_modules/**',
|
|
11
|
+
'**/.yarn/**',
|
|
12
|
+
...(0, eslint_gitignore_1.readGitignoreFiles)({ cwd: __dirname }),
|
|
13
|
+
],
|
|
8
14
|
overrides: [
|
|
9
15
|
{
|
|
10
16
|
files: '**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}',
|
|
@@ -27,7 +33,10 @@ module.exports = {
|
|
|
27
33
|
extends: (0, path_1.resolve)(__dirname, 'framework/react.js'),
|
|
28
34
|
},
|
|
29
35
|
{
|
|
30
|
-
files:
|
|
36
|
+
files: [
|
|
37
|
+
'**/pages/**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}',
|
|
38
|
+
'**/src/app/**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}',
|
|
39
|
+
],
|
|
31
40
|
extends: (0, path_1.resolve)(__dirname, 'framework/next.js.js'),
|
|
32
41
|
},
|
|
33
42
|
{
|
|
@@ -56,13 +65,18 @@ module.exports = {
|
|
|
56
65
|
files: '**/bin/**/*.{js,mjs,cjs,ts,mts,cts}',
|
|
57
66
|
extends: (0, path_1.resolve)(__dirname, 'presets/node.js'),
|
|
58
67
|
},
|
|
68
|
+
{
|
|
69
|
+
files: ['**/src/worker.{js,ts}', '**/functions/**/*.{js,ts}'],
|
|
70
|
+
extends: (0, path_1.resolve)(__dirname, 'presets/allow-default-export.js'),
|
|
71
|
+
},
|
|
59
72
|
{
|
|
60
73
|
files: [
|
|
61
74
|
'**/{webpack,rollup,vite}.config.{js,mjs,cjs,ts,mts,cts}',
|
|
62
75
|
'**/codegen.{js,mjs,cjs,ts,mts,cts}',
|
|
63
76
|
],
|
|
64
77
|
extends: [
|
|
65
|
-
(0, path_1.resolve)(__dirname, 'presets/
|
|
78
|
+
(0, path_1.resolve)(__dirname, 'presets/allow-default-export.js'),
|
|
79
|
+
(0, path_1.resolve)(__dirname, 'presets/build-configuration.js'),
|
|
66
80
|
(0, path_1.resolve)(__dirname, 'presets/node.js'),
|
|
67
81
|
],
|
|
68
82
|
},
|
|
@@ -79,5 +93,4 @@ module.exports = {
|
|
|
79
93
|
extends: (0, path_1.resolve)(__dirname, 'presets/style.js'),
|
|
80
94
|
},
|
|
81
95
|
],
|
|
82
|
-
ignorePatterns: ['**/node_modules/**'],
|
|
83
96
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slashnephy/eslint-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "SlashNephy <spica@starry.blue> (https://spica.starry.blue/)",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"files": [
|
|
14
14
|
"package.json",
|
|
15
|
-
"dist/**/*.js"
|
|
15
|
+
"dist/**/*.js",
|
|
16
|
+
"README.md"
|
|
16
17
|
],
|
|
17
18
|
"publishConfig": {
|
|
18
19
|
"access": "public"
|
|
@@ -39,6 +40,7 @@
|
|
|
39
40
|
"eslint-config-next": "13.4.12",
|
|
40
41
|
"eslint-config-prettier": "8.9.0",
|
|
41
42
|
"eslint-config-standard": "17.1.0",
|
|
43
|
+
"eslint-gitignore": "0.1.0",
|
|
42
44
|
"eslint-import-resolver-node": "0.3.7",
|
|
43
45
|
"eslint-import-resolver-typescript": "3.5.5",
|
|
44
46
|
"eslint-plugin-css-import-order": "1.1.0",
|
|
@@ -56,9 +58,10 @@
|
|
|
56
58
|
"eslint-plugin-node": "11.1.0",
|
|
57
59
|
"eslint-plugin-package-json": "0.1.4",
|
|
58
60
|
"eslint-plugin-promise": "6.1.1",
|
|
59
|
-
"eslint-plugin-react": "7.33.
|
|
61
|
+
"eslint-plugin-react": "7.33.1",
|
|
60
62
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
61
63
|
"eslint-plugin-react-refresh": "0.4.3",
|
|
64
|
+
"eslint-plugin-relay": "1.8.3",
|
|
62
65
|
"eslint-plugin-storybook": "0.6.13",
|
|
63
66
|
"eslint-plugin-tsdoc": "0.2.17",
|
|
64
67
|
"eslint-plugin-unused-imports": "3.0.0",
|
|
@@ -73,7 +76,7 @@
|
|
|
73
76
|
"eslint": "^8"
|
|
74
77
|
},
|
|
75
78
|
"devDependencies": {
|
|
76
|
-
"@slashnephy/prettier-config": "0.1.
|
|
79
|
+
"@slashnephy/prettier-config": "0.1.27",
|
|
77
80
|
"@types/eslint": "8.44.1",
|
|
78
81
|
"@types/node": "20.4.5",
|
|
79
82
|
"concurrently": "8.2.0",
|