@yoshinani/style-guide 0.0.5 → 0.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/eslint/base.js +1 -1
- package/eslint/library.js +0 -12
- package/eslint/next.js +0 -12
- package/eslint/react-internal.js +0 -19
- package/package.json +1 -2
package/eslint/base.js
CHANGED
|
@@ -11,7 +11,7 @@ module.exports = {
|
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
|
-
plugins: ["@typescript-eslint", "
|
|
14
|
+
plugins: ["@typescript-eslint", "import", "eslint-comments", "functional"],
|
|
15
15
|
rules: {
|
|
16
16
|
// [比較演算子禁止](https://www.notion.so/yoshinani-note/1dff5577f5838145acfcca9176913b79)
|
|
17
17
|
eqeqeq: ["error", "always", { null: "ignore" }],
|
package/eslint/library.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
const { resolve } = require("node:path")
|
|
2
|
-
|
|
3
|
-
const project = resolve(process.cwd(), "tsconfig.json")
|
|
4
|
-
|
|
5
1
|
/** @type {import("eslint").Linter.Config} */
|
|
6
2
|
module.exports = {
|
|
7
3
|
extends: [
|
|
@@ -11,7 +7,6 @@ module.exports = {
|
|
|
11
7
|
require.resolve("@vercel/style-guide/eslint/typescript"),
|
|
12
8
|
require.resolve("./base"),
|
|
13
9
|
],
|
|
14
|
-
plugins: ["only-warn"],
|
|
15
10
|
globals: {
|
|
16
11
|
React: true,
|
|
17
12
|
JSX: true,
|
|
@@ -19,13 +14,6 @@ module.exports = {
|
|
|
19
14
|
env: {
|
|
20
15
|
node: true,
|
|
21
16
|
},
|
|
22
|
-
settings: {
|
|
23
|
-
"import/resolver": {
|
|
24
|
-
typescript: {
|
|
25
|
-
project,
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
17
|
ignorePatterns: [
|
|
30
18
|
// Ignore dotfiles
|
|
31
19
|
".*.js",
|
package/eslint/next.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
const { resolve } = require("node:path")
|
|
2
|
-
|
|
3
|
-
const project = resolve(process.cwd(), "tsconfig.json")
|
|
4
|
-
|
|
5
1
|
/** @type {import("eslint").Linter.Config} */
|
|
6
2
|
module.exports = {
|
|
7
3
|
extends: [
|
|
@@ -18,14 +14,6 @@ module.exports = {
|
|
|
18
14
|
node: true,
|
|
19
15
|
browser: true,
|
|
20
16
|
},
|
|
21
|
-
plugins: ["only-warn"],
|
|
22
|
-
settings: {
|
|
23
|
-
"import/resolver": {
|
|
24
|
-
typescript: {
|
|
25
|
-
project,
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
17
|
ignorePatterns: [
|
|
30
18
|
// Ignore dotfiles
|
|
31
19
|
".*.js",
|
package/eslint/react-internal.js
CHANGED
|
@@ -1,36 +1,17 @@
|
|
|
1
|
-
const { resolve } = require("node:path")
|
|
2
|
-
|
|
3
|
-
const project = resolve(process.cwd(), "tsconfig.json")
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
* This is a custom ESLint configuration for use with
|
|
7
|
-
* internal (bundled by their consumer) libraries
|
|
8
|
-
* that utilize React.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
1
|
/** @type {import("eslint").Linter.Config} */
|
|
12
2
|
module.exports = {
|
|
13
3
|
extends: [
|
|
14
4
|
"eslint:recommended",
|
|
15
5
|
"prettier",
|
|
16
|
-
"turbo",
|
|
17
6
|
require.resolve("@vercel/style-guide/eslint/react"),
|
|
18
7
|
require.resolve("./base"),
|
|
19
8
|
],
|
|
20
|
-
plugins: ["only-warn"],
|
|
21
9
|
globals: {
|
|
22
10
|
React: true,
|
|
23
11
|
},
|
|
24
12
|
env: {
|
|
25
13
|
browser: true,
|
|
26
14
|
},
|
|
27
|
-
settings: {
|
|
28
|
-
"import/resolver": {
|
|
29
|
-
typescript: {
|
|
30
|
-
project,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
15
|
ignorePatterns: [
|
|
35
16
|
// Ignore dotfiles
|
|
36
17
|
".*.js",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoshinani/style-guide",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Yoshinani's Style Guide",
|
|
5
5
|
"homepage": "https://github.com/yoshinani-dev/style-guide#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
29
29
|
"eslint-plugin-functional": "6.6.3",
|
|
30
30
|
"eslint-plugin-import": "^2.31.0",
|
|
31
|
-
"eslint-plugin-only-warn": "^1.1.0",
|
|
32
31
|
"eslint-plugin-tailwindcss": "^3.17.5"
|
|
33
32
|
},
|
|
34
33
|
"devDependencies": {
|