@qwezey/typescript 0.0.2 → 0.0.4
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.d.ts → eslint.d.ts} +1 -3
- package/dist/eslint.d.ts.map +1 -0
- package/dist/eslint.js +10 -0
- package/dist/eslint.js.map +1 -0
- package/dist/prettier.d.ts +3 -0
- package/dist/prettier.d.ts.map +1 -0
- package/dist/prettier.js +8 -0
- package/dist/prettier.js.map +1 -0
- package/package.json +6 -5
- package/src/eslint.ts +17 -0
- package/src/prettier.ts +9 -0
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -24
- package/dist/index.js.map +0 -1
- package/src/index.ts +0 -35
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import type { Config } from 'prettier';
|
|
2
1
|
export declare const qwezeyEslintConfig: import("@eslint/core", { with: { "resolution-mode": "require" } }).ConfigObject<import("@eslint/core", { with: { "resolution-mode": "require" } }).RulesConfig>[];
|
|
3
|
-
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
2
|
+
//# sourceMappingURL=eslint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint.d.ts","sourceRoot":"","sources":["../src/eslint.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB,mKAW9B,CAAC"}
|
package/dist/eslint.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import eslint from '@eslint/js';
|
|
2
|
+
import eslintPluginPrettier from 'eslint-plugin-prettier/recommended';
|
|
3
|
+
import { defineConfig } from 'eslint/config';
|
|
4
|
+
import tseslint from 'typescript-eslint';
|
|
5
|
+
export const qwezeyEslintConfig = defineConfig(eslint.configs.recommended, tseslint.configs.recommendedTypeChecked, tseslint.configs.stylisticTypeChecked, { languageOptions: { parserOptions: { projectService: true } } }, {
|
|
6
|
+
rules: {
|
|
7
|
+
'no-warning-comments': ['warn', { terms: ['todo'], location: 'start' }],
|
|
8
|
+
},
|
|
9
|
+
}, eslintPluginPrettier);
|
|
10
|
+
//# sourceMappingURL=eslint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint.js","sourceRoot":"","sources":["../src/eslint.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,YAAY,CAAC;AAChC,OAAO,oBAAoB,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAC3C,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AAEzC,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAC5C,MAAM,CAAC,OAAO,CAAC,WAAW,EAC1B,QAAQ,CAAC,OAAO,CAAC,sBAAsB,EACvC,QAAQ,CAAC,OAAO,CAAC,oBAAoB,EACrC,EAAC,eAAe,EAAE,EAAC,aAAa,EAAE,EAAC,cAAc,EAAE,IAAI,EAAC,EAAC,EAAC,EAC1D;IACE,KAAK,EAAE;QACL,qBAAqB,EAAE,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAC,CAAC;KACtE;CACF,EACD,oBAAoB,CACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../src/prettier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAErC,eAAO,MAAM,oBAAoB,EAAE,MAMlC,CAAC"}
|
package/dist/prettier.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prettier.js","sourceRoot":"","sources":["../src/prettier.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAW;IAC1C,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,KAAK;IACpB,WAAW,EAAE,OAAO;IACpB,UAAU,EAAE,UAAU;CACvB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qwezey/typescript",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"description": "QweZey's opinionated typescript/eslint/prettier config for any typescript project",
|
|
6
|
-
"
|
|
6
|
+
"exports": {
|
|
7
|
+
"eslint": "./dist/eslint.js",
|
|
8
|
+
"prettier": "./dist/prettier.js"
|
|
9
|
+
},
|
|
7
10
|
"scripts": {
|
|
8
|
-
"build": "tsc -p tsconfig.build.json"
|
|
9
|
-
"postinstall": "npm run build"
|
|
11
|
+
"build": "tsc -p tsconfig.build.json"
|
|
10
12
|
},
|
|
11
13
|
"repository": {
|
|
12
14
|
"type": "git",
|
|
@@ -30,7 +32,6 @@
|
|
|
30
32
|
"@eslint/js": "^9.37.0",
|
|
31
33
|
"eslint": "^9.37.0",
|
|
32
34
|
"eslint-config-prettier": "^10.1.8",
|
|
33
|
-
"eslint-plugin-import": "^2.32.0",
|
|
34
35
|
"eslint-plugin-prettier": "^5.5.4",
|
|
35
36
|
"jiti": "^2.6.1",
|
|
36
37
|
"prettier": "^3.6.2",
|
package/src/eslint.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import eslint from '@eslint/js';
|
|
2
|
+
import eslintPluginPrettier from 'eslint-plugin-prettier/recommended';
|
|
3
|
+
import {defineConfig} from 'eslint/config';
|
|
4
|
+
import tseslint from 'typescript-eslint';
|
|
5
|
+
|
|
6
|
+
export const qwezeyEslintConfig = defineConfig(
|
|
7
|
+
eslint.configs.recommended,
|
|
8
|
+
tseslint.configs.recommendedTypeChecked,
|
|
9
|
+
tseslint.configs.stylisticTypeChecked,
|
|
10
|
+
{languageOptions: {parserOptions: {projectService: true}}},
|
|
11
|
+
{
|
|
12
|
+
rules: {
|
|
13
|
+
'no-warning-comments': ['warn', {terms: ['todo'], location: 'start'}],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
eslintPluginPrettier,
|
|
17
|
+
);
|
package/src/prettier.ts
ADDED
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAOrC,eAAO,MAAM,kBAAkB,mKAmB9B,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAMlC,CAAC"}
|
package/dist/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import eslint from '@eslint/js';
|
|
2
|
-
import tseslint from 'typescript-eslint';
|
|
3
|
-
import eslintPluginPrettier from 'eslint-plugin-prettier/recommended';
|
|
4
|
-
import importPlugin from 'eslint-plugin-import';
|
|
5
|
-
import { defineConfig } from 'eslint/config';
|
|
6
|
-
export const qwezeyEslintConfig = defineConfig(eslint.configs.recommended, tseslint.configs.strictTypeChecked, tseslint.configs.stylisticTypeChecked, importPlugin.flatConfigs.recommended, importPlugin.flatConfigs.typescript, { languageOptions: { parserOptions: { projectService: true } } }, {
|
|
7
|
-
rules: {
|
|
8
|
-
'import/no-extraneous-dependencies': 'error',
|
|
9
|
-
'import/no-unresolved': 'off',
|
|
10
|
-
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
11
|
-
'@typescript-eslint/no-confusing-void-expression': 'off',
|
|
12
|
-
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
13
|
-
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
14
|
-
'no-warning-comments': ['warn', { terms: ['todo'], location: 'start' }],
|
|
15
|
-
},
|
|
16
|
-
}, eslintPluginPrettier);
|
|
17
|
-
export const qwezeyPrettierConfig = {
|
|
18
|
-
bracketSpacing: false,
|
|
19
|
-
singleQuote: true,
|
|
20
|
-
trailingComma: 'all',
|
|
21
|
-
arrowParens: 'avoid',
|
|
22
|
-
objectWrap: 'collapse',
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,YAAY,CAAC;AAChC,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,oBAAoB,MAAM,oCAAoC,CAAC;AACtE,OAAO,YAAY,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAE3C,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAC5C,MAAM,CAAC,OAAO,CAAC,WAAW,EAC1B,QAAQ,CAAC,OAAO,CAAC,iBAAiB,EAClC,QAAQ,CAAC,OAAO,CAAC,oBAAoB,EACrC,YAAY,CAAC,WAAW,CAAC,WAAW,EACpC,YAAY,CAAC,WAAW,CAAC,UAAU,EACnC,EAAC,eAAe,EAAE,EAAC,aAAa,EAAE,EAAC,cAAc,EAAE,IAAI,EAAC,EAAC,EAAC,EAC1D;IACE,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,KAAK;QAChD,iDAAiD,EAAE,KAAK;QACxD,0CAA0C,EAAE,KAAK;QACjD,kDAAkD,EAAE,KAAK;QACzD,qBAAqB,EAAE,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAC,CAAC;KACtE;CACF,EACD,oBAAoB,CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAW;IAC1C,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,KAAK;IACpB,WAAW,EAAE,OAAO;IACpB,UAAU,EAAE,UAAU;CACvB,CAAC"}
|
package/src/index.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type {Config} from 'prettier';
|
|
2
|
-
import eslint from '@eslint/js';
|
|
3
|
-
import tseslint from 'typescript-eslint';
|
|
4
|
-
import eslintPluginPrettier from 'eslint-plugin-prettier/recommended';
|
|
5
|
-
import importPlugin from 'eslint-plugin-import';
|
|
6
|
-
import {defineConfig} from 'eslint/config';
|
|
7
|
-
|
|
8
|
-
export const qwezeyEslintConfig = defineConfig(
|
|
9
|
-
eslint.configs.recommended,
|
|
10
|
-
tseslint.configs.strictTypeChecked,
|
|
11
|
-
tseslint.configs.stylisticTypeChecked,
|
|
12
|
-
importPlugin.flatConfigs.recommended,
|
|
13
|
-
importPlugin.flatConfigs.typescript,
|
|
14
|
-
{languageOptions: {parserOptions: {projectService: true}}},
|
|
15
|
-
{
|
|
16
|
-
rules: {
|
|
17
|
-
'import/no-extraneous-dependencies': 'error',
|
|
18
|
-
'import/no-unresolved': 'off',
|
|
19
|
-
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
20
|
-
'@typescript-eslint/no-confusing-void-expression': 'off',
|
|
21
|
-
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
22
|
-
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
23
|
-
'no-warning-comments': ['warn', {terms: ['todo'], location: 'start'}],
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
eslintPluginPrettier,
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
export const qwezeyPrettierConfig: Config = {
|
|
30
|
-
bracketSpacing: false,
|
|
31
|
-
singleQuote: true,
|
|
32
|
-
trailingComma: 'all',
|
|
33
|
-
arrowParens: 'avoid',
|
|
34
|
-
objectWrap: 'collapse',
|
|
35
|
-
};
|