@touchspot/eslint-config 1.0.6 → 1.2.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/dist/src/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM,kBAET;IACF,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM,kBAET;IACF,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC,wEA8CC,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
package/dist/src/config.js
CHANGED
|
@@ -16,7 +16,9 @@ const config = ({ ignores = [".cache", ".turbo", "dist"], } = {}) => TSESLint.co
|
|
|
16
16
|
parser: TSESLint.parser,
|
|
17
17
|
parserOptions: {
|
|
18
18
|
ecmaVersion: "latest",
|
|
19
|
-
projectService:
|
|
19
|
+
projectService: {
|
|
20
|
+
allowDefaultProject: ["*.{js,jsx,mjs,cjs}"],
|
|
21
|
+
},
|
|
20
22
|
},
|
|
21
23
|
},
|
|
22
24
|
}, {
|
package/dist/src/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,GAAG,CAAC,EACf,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,MAGnC,EAAE,EAAE,EAAE,CACT,QA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ACD,EACD;IACC,IAAI,EAAE,qCAAqC;IAC3C,KAAK,EAAE,CAAC,8BAA8B,CAAC;IACvC,eAAe,EAAE;QAChB,aAAa,EAAE;YACd,UAAU,EAAE,QAAQ;SACpB;KACD;CACD,EACD;IACC,IAAI,EAAE,qCAAqC;IAC3C,KAAK,EAAE,CAAC,gBAAgB,CAAC;IACzB,eAAe,EAAE;QAChB,aAAa,EAAE;YACd,UAAU,EAAE,UAAU;SACtB;KACD;CACD,EACD,GAAG,SAAS,CAAC,UAAU,EAAE,EACzB,GAAG,SAAS,CAAC,UAAU,EAAE,EACzB,QAAQ,CACR,CAAC;AAEH,eAAe,MAAM,CAAC,CAAC,iDAAiD"}
|
package/dist/src/frameworks.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
import type { TSESLint } from "@typescript-eslint/utils";
|
|
2
|
+
export declare const react: () => TSESLint.FlatConfig.ConfigArray;
|
|
3
|
+
export declare const next: () => TSESLint.FlatConfig.ConfigArray;
|
|
4
|
+
export declare const tailwindcss: () => TSESLint.FlatConfig.ConfigArray;
|
|
4
5
|
//# sourceMappingURL=frameworks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frameworks.d.ts","sourceRoot":"","sources":["../../src/frameworks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"frameworks.d.ts","sourceRoot":"","sources":["../../src/frameworks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAUzD,eAAO,MAAM,KAAK,uCA+DhB,CAAC;AAEH,eAAO,MAAM,IAAI,uCAuCf,CAAC;AAEH,eAAO,MAAM,WAAW,uCAoBrB,CAAC"}
|
package/dist/src/frameworks.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
// @ts-check
|
|
2
1
|
import Next from "@next/eslint-plugin-next";
|
|
3
2
|
import CheckFile from "eslint-plugin-check-file";
|
|
4
3
|
import Functional from "eslint-plugin-functional";
|
|
5
4
|
import React from "eslint-plugin-react";
|
|
6
5
|
import ReactHooks from "eslint-plugin-react-hooks";
|
|
7
6
|
import TailwindCSS from "eslint-plugin-tailwindcss";
|
|
8
|
-
import
|
|
7
|
+
import { config } from "typescript-eslint";
|
|
9
8
|
import * as env from "./env.js";
|
|
10
|
-
export const react = () =>
|
|
9
|
+
export const react = () => config({
|
|
11
10
|
name: "@touchspot/eslint-config/frameworks/react/parser",
|
|
12
11
|
files: ["**/*.{js,jsx,tsx}"],
|
|
13
12
|
languageOptions: {
|
|
@@ -34,17 +33,16 @@ export const react = () => TSESLint.config({
|
|
|
34
33
|
}, {
|
|
35
34
|
name: "@touchspot/eslint-config/frameworks/react/react",
|
|
36
35
|
files: ["**/*.{js,jsx,tsx}"],
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
extends: [
|
|
37
|
+
React.configs.flat.recommended, // eslint-disable-line import-x/no-named-as-default-member
|
|
38
|
+
React.configs.flat["jsx-runtime"],
|
|
39
|
+
],
|
|
40
40
|
settings: {
|
|
41
41
|
react: {
|
|
42
42
|
version: "detect",
|
|
43
43
|
},
|
|
44
44
|
},
|
|
45
45
|
rules: {
|
|
46
|
-
...React.configs.recommended.rules,
|
|
47
|
-
...React.configs["jsx-runtime"].rules,
|
|
48
46
|
"react/button-has-type": "error",
|
|
49
47
|
"react/iframe-missing-sandbox": "error",
|
|
50
48
|
"react/jsx-boolean-value": "error",
|
|
@@ -66,7 +64,7 @@ export const react = () => TSESLint.config({
|
|
|
66
64
|
"react-hooks/exhaustive-deps": "error",
|
|
67
65
|
},
|
|
68
66
|
});
|
|
69
|
-
export const next = () =>
|
|
67
|
+
export const next = () => config({
|
|
70
68
|
name: "@touchspot/eslint-config/frameworks/next/ignore",
|
|
71
69
|
ignores: [".next/**"],
|
|
72
70
|
}, {
|
|
@@ -99,7 +97,7 @@ export const next = () => TSESLint.config({
|
|
|
99
97
|
"import-x/no-default-export": "off",
|
|
100
98
|
},
|
|
101
99
|
});
|
|
102
|
-
export const tailwindcss = () =>
|
|
100
|
+
export const tailwindcss = () => config({
|
|
103
101
|
name: "@touchspot/eslint-config/frameworks/tailwindcss/tailwindcss",
|
|
104
102
|
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}"],
|
|
105
103
|
plugins: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frameworks.js","sourceRoot":"","sources":["../../src/frameworks.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"frameworks.js","sourceRoot":"","sources":["../../src/frameworks.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,0BAA0B,CAAC;AAE5C,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAEhC,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,EAAE,CACzB,MAAM,CACL;IACC,IAAI,EAAE,kDAAkD;IACxD,KAAK,EAAE,CAAC,mBAAmB,CAAC;IAC5B,eAAe,EAAE;QAChB,aAAa,EAAE;YACd,SAAS,EAAE,IAAI;SACf;KACD;CACD,EACD;IACC,IAAI,EAAE,sDAAsD;IAC5D,KAAK,EAAE,CAAC,sCAAsC,CAAC;IAC/C,OAAO,EAAE;QACR,UAAU,EAAE,UAAU;KACtB;IACD,KAAK,EAAE;QACN,2BAA2B,EAAE;YAC5B,OAAO;YACP;gBACC,uBAAuB,EAAE,IAAI;gBAC7B,0BAA0B,EAAE,EAAE,sBAAsB,EAAE,IAAI,EAAE;gBA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
|
2
2
|
"name": "@touchspot/eslint-config",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "TOUCHSPOT ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -31,23 +31,23 @@
|
|
|
31
31
|
],
|
|
32
32
|
"prettier": "@touchspot/prettier-config",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@eslint/js": "^9.
|
|
34
|
+
"@eslint/js": "^9.12.0",
|
|
35
35
|
"@next/eslint-plugin-next": "canary",
|
|
36
|
-
"@typescript-eslint/utils": "^8.
|
|
36
|
+
"@typescript-eslint/utils": "^8.8.1",
|
|
37
37
|
"eslint-config-prettier": "^9.1.0",
|
|
38
38
|
"eslint-import-resolver-typescript": "^3.6.3",
|
|
39
39
|
"eslint-plugin-check-file": "^2.8.0",
|
|
40
40
|
"eslint-plugin-functional": "^7.0.2",
|
|
41
|
-
"eslint-plugin-import-x": "^4.3.
|
|
41
|
+
"eslint-plugin-import-x": "^4.3.1",
|
|
42
42
|
"eslint-plugin-no-relative-import-paths": "^1.5.5",
|
|
43
|
-
"eslint-plugin-perfectionist": "^3.
|
|
44
|
-
"eslint-plugin-react": "^7.37.
|
|
45
|
-
"eslint-plugin-react-hooks": "
|
|
46
|
-
"eslint-plugin-tailwindcss": "^3.17.
|
|
47
|
-
"eslint-plugin-unicorn": "^
|
|
43
|
+
"eslint-plugin-perfectionist": "^3.8.0",
|
|
44
|
+
"eslint-plugin-react": "^7.37.1",
|
|
45
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
46
|
+
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
47
|
+
"eslint-plugin-unicorn": "^56.0.0",
|
|
48
48
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
49
|
-
"globals": "^15.
|
|
50
|
-
"typescript-eslint": "^8.
|
|
49
|
+
"globals": "^15.11.0",
|
|
50
|
+
"typescript-eslint": "^8.8.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@commitlint/cli": "^19.5.0",
|
|
@@ -61,21 +61,21 @@
|
|
|
61
61
|
"@tsconfig/strictest": "^2.0.5",
|
|
62
62
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
63
63
|
"@types/eslint__js": "^8.42.3",
|
|
64
|
-
"@types/node": "^22.7.
|
|
65
|
-
"@types/react": "^18.3.
|
|
64
|
+
"@types/node": "^22.7.5",
|
|
65
|
+
"@types/react": "^18.3.11",
|
|
66
66
|
"better-typescript-lib": "^2.9.0",
|
|
67
67
|
"commitizen": "^4.3.1",
|
|
68
|
-
"eslint": "^9.
|
|
68
|
+
"eslint": "^9.12.0",
|
|
69
69
|
"husky": "^9.1.6",
|
|
70
70
|
"inquirer": "^9.3.7",
|
|
71
|
-
"knip": "^5.
|
|
71
|
+
"knip": "^5.33.3",
|
|
72
72
|
"lint-staged": "^15.2.10",
|
|
73
|
-
"next": "^14.2.
|
|
73
|
+
"next": "^14.2.15",
|
|
74
74
|
"prettier": "^3.3.3",
|
|
75
75
|
"react": "^18.3.1",
|
|
76
76
|
"tailwindcss": "^3.4.13",
|
|
77
77
|
"ts-patch": "^3.2.1",
|
|
78
|
-
"turbo": "^2.1.
|
|
78
|
+
"turbo": "^2.1.3",
|
|
79
79
|
"typescript": "5.5.4",
|
|
80
80
|
"typescript-transform-paths": "^3.5.1"
|
|
81
81
|
},
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"access": "public"
|
|
101
101
|
},
|
|
102
102
|
"scripts": {
|
|
103
|
-
"build": "tspc --project
|
|
103
|
+
"build": "tspc --project .",
|
|
104
104
|
"check:format": "prettier --check .",
|
|
105
105
|
"check:lint": "eslint .",
|
|
106
106
|
"check:type": "tsc --noEmit",
|