Skip to content

Commit 769ea0b

Browse files
refactor: move all the config files to root (#8033)
1 parent 8b979c0 commit 769ea0b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+123
-413
lines changed

Diff for: .eslintrc.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"root": true,
3+
"extends": "marine/prettier/node",
4+
"parserOptions": {
5+
"project": "./tsconfig.eslint.json",
6+
"extraFileExtensions": [".mjs"]
7+
},
8+
"ignorePatterns": ["**/dist/*"],
9+
"env": {
10+
"jest": true
11+
}
12+
}

Diff for: packages/actions/.eslintrc.json

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
11
{
2-
"root": true,
3-
"extends": "marine/prettier/node",
4-
"parserOptions": {
5-
"project": "./tsconfig.eslint.json",
6-
"extraFileExtensions": [".mjs"]
7-
},
8-
"ignorePatterns": ["**/dist/*"],
9-
"env": {
10-
"jest": true
11-
}
2+
"extends": "../../.eslintrc.json"
123
}

Diff for: packages/actions/.prettierrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('../../.prettierrc.json');

Diff for: packages/actions/.prettierrc.json

-8
This file was deleted.

Diff for: packages/actions/tsconfig.eslint.json

+1-18
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"allowJs": true
5-
},
6-
"include": [
7-
"**/*.ts",
8-
"**/*.tsx",
9-
"**/*.js",
10-
"**/*.mjs",
11-
"**/*.jsx",
12-
"**/*.test.ts",
13-
"**/*.test.js",
14-
"**/*.test.mjs",
15-
"**/*.spec.ts",
16-
"**/*.spec.js",
17-
"**/*.spec.mjs"
18-
],
19-
"exclude": []
2+
"extends": "../../tsconfig.eslint.json"
203
}

Diff for: packages/actions/tsup.config.ts

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
import { defineConfig } from 'tsup';
1+
import { createTsupConfig } from '../../tsup.config';
22

3-
export default defineConfig({
4-
clean: true,
5-
dts: true,
6-
entryPoints: ['src/index.ts', 'src/formatTag/index.ts'],
3+
export default createTsupConfig({
4+
entry: ['src/index.ts', 'src/formatTag/index.ts'],
75
format: ['cjs'],
8-
minify: true,
96
skipNodeModulesBundle: false,
107
noExternal: ['@actions/core'],
11-
sourcemap: true,
12-
target: 'es2021',
8+
minify: true,
139
});

Diff for: packages/builders/.eslintrc.json

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
11
{
2-
"root": true,
3-
"extends": "marine/prettier/node",
4-
"parserOptions": {
5-
"project": "./tsconfig.eslint.json",
6-
"extraFileExtensions": [".mjs"]
7-
},
8-
"ignorePatterns": ["**/dist/*"],
9-
"env": {
10-
"jest": true
11-
}
2+
"extends": "../../.eslintrc.json"
123
}

Diff for: packages/builders/.prettierrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('../../.prettierrc.json');

Diff for: packages/builders/.prettierrc.json

-8
This file was deleted.

Diff for: packages/builders/tsconfig.eslint.json

+1-18
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"allowJs": true
5-
},
6-
"include": [
7-
"**/*.ts",
8-
"**/*.tsx",
9-
"**/*.js",
10-
"**/*.mjs",
11-
"**/*.jsx",
12-
"**/*.test.ts",
13-
"**/*.test.js",
14-
"**/*.test.mjs",
15-
"**/*.spec.ts",
16-
"**/*.spec.js",
17-
"**/*.spec.mjs"
18-
],
19-
"exclude": []
2+
"extends": "../../tsconfig.eslint.json"
203
}

Diff for: packages/builders/tsup.config.ts

+2-19
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
import { defineConfig } from 'tsup';
1+
import { createTsupConfig } from '../../tsup.config';
22

3-
export default defineConfig({
4-
clean: true,
5-
dts: true,
6-
entryPoints: ['src/index.ts'],
7-
format: ['esm', 'cjs'],
8-
minify: false,
9-
keepNames: true,
10-
skipNodeModulesBundle: true,
11-
sourcemap: true,
12-
target: 'es2021',
13-
esbuildOptions: (options, context) => {
14-
if (context.format === 'cjs') {
15-
options.banner = {
16-
js: '"use strict";',
17-
};
18-
}
19-
},
20-
});
3+
export default createTsupConfig();

Diff for: packages/collection/.eslintrc.json

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
11
{
2-
"root": true,
3-
"extends": "marine/prettier/node",
4-
"parserOptions": {
5-
"project": "./tsconfig.eslint.json",
6-
"extraFileExtensions": [".mjs"]
7-
},
8-
"ignorePatterns": ["**/dist/*"],
9-
"env": {
10-
"jest": true
11-
}
2+
"extends": "../../.eslintrc.json"
123
}

Diff for: packages/collection/.prettierrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('../../.prettierrc.json');

Diff for: packages/collection/.prettierrc.json

-8
This file was deleted.

Diff for: packages/collection/tsconfig.eslint.json

+1-18
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"allowJs": true
5-
},
6-
"include": [
7-
"**/*.ts",
8-
"**/*.tsx",
9-
"**/*.js",
10-
"**/*.mjs",
11-
"**/*.jsx",
12-
"**/*.test.ts",
13-
"**/*.test.js",
14-
"**/*.test.mjs",
15-
"**/*.spec.ts",
16-
"**/*.spec.js",
17-
"**/*.spec.mjs"
18-
],
19-
"exclude": []
2+
"extends": "../../tsconfig.eslint.json"
203
}

Diff for: packages/collection/tsup.config.ts

+2-20
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
import { defineConfig } from 'tsup';
1+
import { createTsupConfig } from '../../tsup.config';
22

3-
export default defineConfig({
4-
clean: true,
5-
dts: true,
6-
entryPoints: ['src/index.ts'],
7-
format: ['esm', 'cjs'],
8-
minify: false,
9-
// if false: causes Collection.constructor to be a minified value like: 'o'
10-
keepNames: true,
11-
skipNodeModulesBundle: true,
12-
sourcemap: true,
13-
target: 'es2021',
14-
esbuildOptions: (options, context) => {
15-
if (context.format === 'cjs') {
16-
options.banner = {
17-
js: '"use strict";',
18-
};
19-
}
20-
},
21-
});
3+
export default createTsupConfig();

Diff for: packages/discord.js/.eslintrc.json

-11
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@
1919
}
2020
}
2121
],
22-
"prettier/prettier": [
23-
2,
24-
{
25-
"printWidth": 120,
26-
"singleQuote": true,
27-
"quoteProps": "as-needed",
28-
"trailingComma": "all",
29-
"endOfLine": "lf",
30-
"arrowParens": "avoid"
31-
}
32-
],
3322
"strict": ["error", "global"],
3423
"no-await-in-loop": "warn",
3524
"no-compare-neg-zero": "error",

Diff for: packages/docgen/.eslintrc.json

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
11
{
2-
"root": true,
3-
"extends": "marine/prettier/node",
4-
"parserOptions": {
5-
"project": "./tsconfig.eslint.json",
6-
"extraFileExtensions": [".mjs"]
7-
},
8-
"ignorePatterns": ["**/dist/*"],
9-
"env": {
10-
"jest": true
11-
}
2+
"extends": "../../.eslintrc.json"
123
}

Diff for: packages/docgen/.prettierrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('../../.prettierrc.json');

Diff for: packages/docgen/.prettierrc.json

-8
This file was deleted.

Diff for: packages/docgen/tsconfig.eslint.json

+1-18
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"allowJs": true
5-
},
6-
"include": [
7-
"**/*.ts",
8-
"**/*.tsx",
9-
"**/*.js",
10-
"**/*.mjs",
11-
"**/*.jsx",
12-
"**/*.test.ts",
13-
"**/*.test.js",
14-
"**/*.test.mjs",
15-
"**/*.spec.ts",
16-
"**/*.spec.js",
17-
"**/*.spec.mjs"
18-
],
19-
"exclude": []
2+
"extends": "../../tsconfig.eslint.json"
203
}

Diff for: packages/docgen/tsup.config.ts

+3-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
import { defineConfig } from 'tsup';
1+
import { createTsupConfig } from '../../tsup.config';
22

3-
export default defineConfig({
4-
clean: true,
5-
dts: true,
6-
entryPoints: ['src/index.ts'],
7-
format: ['esm', 'cjs'],
8-
keepNames: true,
9-
minify: false,
10-
skipNodeModulesBundle: true,
11-
sourcemap: true,
12-
target: 'es2021',
3+
export default createTsupConfig({
4+
minify: true,
135
});

Diff for: packages/proxy/.eslintrc.json

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
11
{
2-
"root": true,
3-
"extends": "marine/prettier/node",
4-
"parserOptions": {
5-
"project": "./tsconfig.eslint.json",
6-
"extraFileExtensions": [".mjs"]
7-
},
8-
"ignorePatterns": ["**/dist/*"],
9-
"env": {
10-
"jest": true
11-
}
2+
"extends": "../../.eslintrc.json"
123
}

Diff for: packages/proxy/.prettierrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('../../.prettierrc.json');

Diff for: packages/proxy/.prettierrc.json

-8
This file was deleted.

Diff for: packages/proxy/tsconfig.eslint.json

+1-18
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"allowJs": true
5-
},
6-
"include": [
7-
"**/*.ts",
8-
"**/*.tsx",
9-
"**/*.js",
10-
"**/*.mjs",
11-
"**/*.jsx",
12-
"**/*.test.ts",
13-
"**/*.test.js",
14-
"**/*.test.mjs",
15-
"**/*.spec.ts",
16-
"**/*.spec.js",
17-
"**/*.spec.mjs"
18-
],
19-
"exclude": []
2+
"extends": "../../tsconfig.eslint.json"
203
}

Diff for: packages/proxy/tsup.config.ts

+2-19
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
import { defineConfig } from 'tsup';
1+
import { createTsupConfig } from '../../tsup.config';
22

3-
export default defineConfig({
4-
clean: true,
5-
dts: true,
6-
entryPoints: ['src/index.ts'],
7-
format: ['esm', 'cjs'],
8-
minify: false,
9-
keepNames: true,
10-
skipNodeModulesBundle: true,
11-
sourcemap: true,
12-
target: 'es2021',
13-
esbuildOptions: (options, context) => {
14-
if (context.format === 'cjs') {
15-
options.banner = {
16-
js: '"use strict";',
17-
};
18-
}
19-
},
20-
});
3+
export default createTsupConfig();

Diff for: packages/rest/.eslintrc.json

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
11
{
2-
"root": true,
3-
"extends": "marine/prettier/node",
4-
"parserOptions": {
5-
"project": "./tsconfig.eslint.json",
6-
"extraFileExtensions": [".mjs"]
7-
},
8-
"ignorePatterns": ["**/dist/*"],
9-
"env": {
10-
"jest": true
11-
}
2+
"extends": "../../.eslintrc.json"
123
}

Diff for: packages/rest/.prettierrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('../../.prettierrc.json');

Diff for: packages/rest/.prettierrc.json

-8
This file was deleted.

0 commit comments

Comments
 (0)