eslint-config-txo-app-graphql 1.0.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/CHANGELOG.md +6 -0
- package/README.md +5 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +68 -0
- package/lib/index.js.map +1 -0
- package/package.json +63 -0
- package/src/index.ts +87 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
## 1.0.0 (2025-02-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* initial implementation ([#1](https://github.com/technology-studio/eslint-config-txo-app-graphql/issues/1)) ([c62f4ea](https://github.com/technology-studio/eslint-config-txo-app-graphql/commit/c62f4ea2ed456ea2e216f196b8a5d778ad805da1))
|
package/README.md
ADDED
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @Author: Erik Slovak <erik.slovak@technologystudio.sk>
|
|
3
|
+
* @Date: 2024-02-07T15:21:12+01:00
|
|
4
|
+
* @Copyright: Technology Studio
|
|
5
|
+
**/
|
|
6
|
+
import { stylisticConfig, typescriptConfigList, typescriptEslintConfig, jestConfig, } from 'eslint-config-txo-typescript';
|
|
7
|
+
const defaultConfigList = typescriptEslintConfig({
|
|
8
|
+
files: ['**/*.js', '**/*.ts'],
|
|
9
|
+
extends: [
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- remove when migrated to prettier
|
|
11
|
+
stylisticConfig,
|
|
12
|
+
...typescriptConfigList,
|
|
13
|
+
],
|
|
14
|
+
}, {
|
|
15
|
+
files: ['seed/**/*.ts', 'seed/**/*.tsx'],
|
|
16
|
+
languageOptions: {
|
|
17
|
+
parserOptions: {
|
|
18
|
+
project: './seed/tsconfig.json',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
settings: {
|
|
22
|
+
'import/resolver': {
|
|
23
|
+
typescript: {
|
|
24
|
+
project: './seed/tsconfig.json',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
}, {
|
|
29
|
+
files: ['app/**/*.ts', 'app/**/*.tsx'],
|
|
30
|
+
languageOptions: {
|
|
31
|
+
parserOptions: {
|
|
32
|
+
project: './app/tsconfig.json',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
settings: {
|
|
36
|
+
'import/resolver': {
|
|
37
|
+
typescript: {
|
|
38
|
+
project: './app/tsconfig.json',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
const jestConfigList = typescriptEslintConfig({
|
|
44
|
+
files: ['__tests__/**/*.ts'],
|
|
45
|
+
extends: [
|
|
46
|
+
jestConfig,
|
|
47
|
+
],
|
|
48
|
+
});
|
|
49
|
+
export const configList = typescriptEslintConfig(...defaultConfigList, ...jestConfigList, {
|
|
50
|
+
ignores: [
|
|
51
|
+
'.releaserc.js',
|
|
52
|
+
'cli.js',
|
|
53
|
+
'commitlint.config.js',
|
|
54
|
+
'coverage/**/*',
|
|
55
|
+
'eslint-ci.config.js',
|
|
56
|
+
'eslint.config.js',
|
|
57
|
+
'jest.config.js',
|
|
58
|
+
'lib/**/*',
|
|
59
|
+
'node_modules',
|
|
60
|
+
'release.config.js',
|
|
61
|
+
'__tests__/GraphqlCodeGen/index.ts',
|
|
62
|
+
'webpack.config.js',
|
|
63
|
+
'.serverless/',
|
|
64
|
+
'.warmup/',
|
|
65
|
+
'.webpack/',
|
|
66
|
+
],
|
|
67
|
+
});
|
|
68
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,UAAU,GACX,MAAM,8BAA8B,CAAA;AAErC,MAAM,iBAAiB,GAAG,sBAAsB,CAC9C;IACE,KAAK,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;IAC7B,OAAO,EAAE;QACP,gGAAgG;QAChG,eAAe;QACf,GAAG,oBAAoB;KACxB;CACF,EACD;IACE,KAAK,EAAE,CAAC,cAAc,EAAE,eAAe,CAAC;IACxC,eAAe,EAAE;QACf,aAAa,EAAE;YACb,OAAO,EAAE,sBAAsB;SAChC;KACF;IACD,QAAQ,EAAE;QACR,iBAAiB,EAAE;YACjB,UAAU,EAAE;gBACV,OAAO,EAAE,sBAAsB;aAChC;SACF;KACF;CACF,EACD;IACE,KAAK,EAAE,CAAC,aAAa,EAAE,cAAc,CAAC;IACtC,eAAe,EAAE;QACf,aAAa,EAAE;YACb,OAAO,EAAE,qBAAqB;SAC/B;KACF;IACD,QAAQ,EAAE;QACR,iBAAiB,EAAE;YACjB,UAAU,EAAE;gBACV,OAAO,EAAE,qBAAqB;aAC/B;SACF;KACF;CACF,CACF,CAAA;AAED,MAAM,cAAc,GAAG,sBAAsB,CAC3C;IACE,KAAK,EAAE,CAAC,mBAAmB,CAAC;IAC5B,OAAO,EAAE;QACP,UAAU;KACX;CACF,CAEF,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,sBAAsB,CAC9C,GAAG,iBAAiB,EACpB,GAAG,cAAc,EACjB;IACE,OAAO,EAAE;QACP,eAAe;QACf,QAAQ;QACR,sBAAsB;QACtB,eAAe;QACf,qBAAqB;QACrB,kBAAkB;QAClB,gBAAgB;QAChB,UAAU;QACV,cAAc;QACd,mBAAmB;QACnB,mCAAmC;QACnC,mBAAmB;QACnB,cAAc;QACd,UAAU;QACV,WAAW;KACZ;CACF,CACF,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "eslint-config-txo-app-graphql",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Technology Studio - Eslint config txo app graphql",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"typings": "lib/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/technology-studio/eslint-config-txo-app-graphql.git"
|
|
11
|
+
},
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "Technology Studio",
|
|
14
|
+
"email": "npm@technologystudio.sk",
|
|
15
|
+
"url": "https://github.com/technology-studio/"
|
|
16
|
+
},
|
|
17
|
+
"license": "UNLICENSED",
|
|
18
|
+
"private": false,
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build:clean": "yarn rimraf lib",
|
|
21
|
+
"build:lib": "yarn tsc",
|
|
22
|
+
"build:watch": "yarn tsc --watch",
|
|
23
|
+
"build": "yarn build:clean && yarn build:lib",
|
|
24
|
+
"compare-boilerplate-version": "./scripts/compare-boilerplate-version.sh",
|
|
25
|
+
"coverage": "jest --coverage && open coverage/lcov-report/index.html || xdg-open coverage/lcov-report/index.html",
|
|
26
|
+
"lint:ci": "yarn eslint -c eslint-ci.config.js --cache . && yarn txo-eslint ccr --cache",
|
|
27
|
+
"lint:fix": "eslint . --fix",
|
|
28
|
+
"lint": "eslint --max-warnings 0 .",
|
|
29
|
+
"prepare": "husky && yarn build",
|
|
30
|
+
"print-txo-packages": "yarn list 2> /dev/null|grep @txo|sed 's/.*\\(@txo[^@]*\\)@^*\\([^ ]*\\).*/\\1@\\2/g'|sort|uniq",
|
|
31
|
+
"sanity": "yarn lint:ci && yarn build && tsc --noEmit && yarn test --coverage && yarn compare-boilerplate-version && echo 'success'",
|
|
32
|
+
"semantic-release": "semantic-release",
|
|
33
|
+
"test:watch": "concurrently \"yarn build:watch\" \"yarn test --watch\"",
|
|
34
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
35
|
+
"type-check": "tsc --noEmit",
|
|
36
|
+
"update-boilerplate-version": "./scripts/update-boilerplate-version.sh"
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=18.0.0"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"eslint-config-txo-typescript": "^7.4.10"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@txo-peer-dep/log": "^4.0.4",
|
|
46
|
+
"@txo/commitlint": "^1.0.22",
|
|
47
|
+
"@txo/log-console": "^3.0.0",
|
|
48
|
+
"@txo/semantic-release": "^2.0.10",
|
|
49
|
+
"@txo/tsconfig": "^2.0.0",
|
|
50
|
+
"@types/jest": "^29.5.14",
|
|
51
|
+
"@types/node": "^22.13.1",
|
|
52
|
+
"concurrently": "^9.1.2",
|
|
53
|
+
"depcheck": "^1.4.7",
|
|
54
|
+
"eslint-config-txo-package-typescript": "^1.0.31",
|
|
55
|
+
"husky": "^9.1.7",
|
|
56
|
+
"jest": "^29.7.0",
|
|
57
|
+
"lint-staged": "^15.4.3",
|
|
58
|
+
"npm-check-updates": "^17.1.14",
|
|
59
|
+
"rimraf": "^6.0.1",
|
|
60
|
+
"ts-jest": "^29.2.5",
|
|
61
|
+
"typescript": "^5.7.3"
|
|
62
|
+
}
|
|
63
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @Author: Erik Slovak <erik.slovak@technologystudio.sk>
|
|
3
|
+
* @Date: 2024-02-07T15:21:12+01:00
|
|
4
|
+
* @Copyright: Technology Studio
|
|
5
|
+
**/
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
stylisticConfig,
|
|
9
|
+
typescriptConfigList,
|
|
10
|
+
typescriptEslintConfig,
|
|
11
|
+
jestConfig,
|
|
12
|
+
} from 'eslint-config-txo-typescript'
|
|
13
|
+
|
|
14
|
+
const defaultConfigList = typescriptEslintConfig(
|
|
15
|
+
{
|
|
16
|
+
files: ['**/*.js', '**/*.ts'],
|
|
17
|
+
extends: [
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- remove when migrated to prettier
|
|
19
|
+
stylisticConfig,
|
|
20
|
+
...typescriptConfigList,
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
files: ['seed/**/*.ts', 'seed/**/*.tsx'],
|
|
25
|
+
languageOptions: {
|
|
26
|
+
parserOptions: {
|
|
27
|
+
project: './seed/tsconfig.json',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
settings: {
|
|
31
|
+
'import/resolver': {
|
|
32
|
+
typescript: {
|
|
33
|
+
project: './seed/tsconfig.json',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
files: ['app/**/*.ts', 'app/**/*.tsx'],
|
|
40
|
+
languageOptions: {
|
|
41
|
+
parserOptions: {
|
|
42
|
+
project: './app/tsconfig.json',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
settings: {
|
|
46
|
+
'import/resolver': {
|
|
47
|
+
typescript: {
|
|
48
|
+
project: './app/tsconfig.json',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
const jestConfigList = typescriptEslintConfig(
|
|
56
|
+
{
|
|
57
|
+
files: ['__tests__/**/*.ts'],
|
|
58
|
+
extends: [
|
|
59
|
+
jestConfig,
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
export const configList = typescriptEslintConfig(
|
|
66
|
+
...defaultConfigList,
|
|
67
|
+
...jestConfigList,
|
|
68
|
+
{
|
|
69
|
+
ignores: [
|
|
70
|
+
'.releaserc.js',
|
|
71
|
+
'cli.js',
|
|
72
|
+
'commitlint.config.js',
|
|
73
|
+
'coverage/**/*',
|
|
74
|
+
'eslint-ci.config.js',
|
|
75
|
+
'eslint.config.js',
|
|
76
|
+
'jest.config.js',
|
|
77
|
+
'lib/**/*',
|
|
78
|
+
'node_modules',
|
|
79
|
+
'release.config.js',
|
|
80
|
+
'__tests__/GraphqlCodeGen/index.ts',
|
|
81
|
+
'webpack.config.js',
|
|
82
|
+
'.serverless/',
|
|
83
|
+
'.warmup/',
|
|
84
|
+
'.webpack/',
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
)
|