Skip to content

Commit

Permalink
refactor: move all the config files to root (#8033)
Browse files Browse the repository at this point in the history
  • Loading branch information
imranbarbhuiya authored Jun 7, 2022
1 parent 8b979c0 commit 769ea0b
Show file tree
Hide file tree
Showing 43 changed files with 123 additions and 413 deletions.
12 changes: 12 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"root": true,
"extends": "marine/prettier/node",
"parserOptions": {
"project": "./tsconfig.eslint.json",
"extraFileExtensions": [".mjs"]
},
"ignorePatterns": ["**/dist/*"],
"env": {
"jest": true
}
}
11 changes: 1 addition & 10 deletions packages/actions/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"root": true,
"extends": "marine/prettier/node",
"parserOptions": {
"project": "./tsconfig.eslint.json",
"extraFileExtensions": [".mjs"]
},
"ignorePatterns": ["**/dist/*"],
"env": {
"jest": true
}
"extends": "../../.eslintrc.json"
}
1 change: 1 addition & 0 deletions packages/actions/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../../.prettierrc.json');
8 changes: 0 additions & 8 deletions packages/actions/.prettierrc.json

This file was deleted.

19 changes: 1 addition & 18 deletions packages/actions/tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true
},
"include": [
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.mjs",
"**/*.jsx",
"**/*.test.ts",
"**/*.test.js",
"**/*.test.mjs",
"**/*.spec.ts",
"**/*.spec.js",
"**/*.spec.mjs"
],
"exclude": []
"extends": "../../tsconfig.eslint.json"
}
12 changes: 4 additions & 8 deletions packages/actions/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import { defineConfig } from 'tsup';
import { createTsupConfig } from '../../tsup.config';

export default defineConfig({
clean: true,
dts: true,
entryPoints: ['src/index.ts', 'src/formatTag/index.ts'],
export default createTsupConfig({
entry: ['src/index.ts', 'src/formatTag/index.ts'],
format: ['cjs'],
minify: true,
skipNodeModulesBundle: false,
noExternal: ['@actions/core'],
sourcemap: true,
target: 'es2021',
minify: true,
});
11 changes: 1 addition & 10 deletions packages/builders/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"root": true,
"extends": "marine/prettier/node",
"parserOptions": {
"project": "./tsconfig.eslint.json",
"extraFileExtensions": [".mjs"]
},
"ignorePatterns": ["**/dist/*"],
"env": {
"jest": true
}
"extends": "../../.eslintrc.json"
}
1 change: 1 addition & 0 deletions packages/builders/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../../.prettierrc.json');
8 changes: 0 additions & 8 deletions packages/builders/.prettierrc.json

This file was deleted.

19 changes: 1 addition & 18 deletions packages/builders/tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true
},
"include": [
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.mjs",
"**/*.jsx",
"**/*.test.ts",
"**/*.test.js",
"**/*.test.mjs",
"**/*.spec.ts",
"**/*.spec.js",
"**/*.spec.mjs"
],
"exclude": []
"extends": "../../tsconfig.eslint.json"
}
21 changes: 2 additions & 19 deletions packages/builders/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
import { defineConfig } from 'tsup';
import { createTsupConfig } from '../../tsup.config';

export default defineConfig({
clean: true,
dts: true,
entryPoints: ['src/index.ts'],
format: ['esm', 'cjs'],
minify: false,
keepNames: true,
skipNodeModulesBundle: true,
sourcemap: true,
target: 'es2021',
esbuildOptions: (options, context) => {
if (context.format === 'cjs') {
options.banner = {
js: '"use strict";',
};
}
},
});
export default createTsupConfig();
11 changes: 1 addition & 10 deletions packages/collection/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"root": true,
"extends": "marine/prettier/node",
"parserOptions": {
"project": "./tsconfig.eslint.json",
"extraFileExtensions": [".mjs"]
},
"ignorePatterns": ["**/dist/*"],
"env": {
"jest": true
}
"extends": "../../.eslintrc.json"
}
1 change: 1 addition & 0 deletions packages/collection/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../../.prettierrc.json');
8 changes: 0 additions & 8 deletions packages/collection/.prettierrc.json

This file was deleted.

19 changes: 1 addition & 18 deletions packages/collection/tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true
},
"include": [
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.mjs",
"**/*.jsx",
"**/*.test.ts",
"**/*.test.js",
"**/*.test.mjs",
"**/*.spec.ts",
"**/*.spec.js",
"**/*.spec.mjs"
],
"exclude": []
"extends": "../../tsconfig.eslint.json"
}
22 changes: 2 additions & 20 deletions packages/collection/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
import { defineConfig } from 'tsup';
import { createTsupConfig } from '../../tsup.config';

export default defineConfig({
clean: true,
dts: true,
entryPoints: ['src/index.ts'],
format: ['esm', 'cjs'],
minify: false,
// if false: causes Collection.constructor to be a minified value like: 'o'
keepNames: true,
skipNodeModulesBundle: true,
sourcemap: true,
target: 'es2021',
esbuildOptions: (options, context) => {
if (context.format === 'cjs') {
options.banner = {
js: '"use strict";',
};
}
},
});
export default createTsupConfig();
11 changes: 0 additions & 11 deletions packages/discord.js/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@
}
}
],
"prettier/prettier": [
2,
{
"printWidth": 120,
"singleQuote": true,
"quoteProps": "as-needed",
"trailingComma": "all",
"endOfLine": "lf",
"arrowParens": "avoid"
}
],
"strict": ["error", "global"],
"no-await-in-loop": "warn",
"no-compare-neg-zero": "error",
Expand Down
11 changes: 1 addition & 10 deletions packages/docgen/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"root": true,
"extends": "marine/prettier/node",
"parserOptions": {
"project": "./tsconfig.eslint.json",
"extraFileExtensions": [".mjs"]
},
"ignorePatterns": ["**/dist/*"],
"env": {
"jest": true
}
"extends": "../../.eslintrc.json"
}
1 change: 1 addition & 0 deletions packages/docgen/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../../.prettierrc.json');
8 changes: 0 additions & 8 deletions packages/docgen/.prettierrc.json

This file was deleted.

19 changes: 1 addition & 18 deletions packages/docgen/tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true
},
"include": [
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.mjs",
"**/*.jsx",
"**/*.test.ts",
"**/*.test.js",
"**/*.test.mjs",
"**/*.spec.ts",
"**/*.spec.js",
"**/*.spec.mjs"
],
"exclude": []
"extends": "../../tsconfig.eslint.json"
}
14 changes: 3 additions & 11 deletions packages/docgen/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import { defineConfig } from 'tsup';
import { createTsupConfig } from '../../tsup.config';

export default defineConfig({
clean: true,
dts: true,
entryPoints: ['src/index.ts'],
format: ['esm', 'cjs'],
keepNames: true,
minify: false,
skipNodeModulesBundle: true,
sourcemap: true,
target: 'es2021',
export default createTsupConfig({
minify: true,
});
11 changes: 1 addition & 10 deletions packages/proxy/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"root": true,
"extends": "marine/prettier/node",
"parserOptions": {
"project": "./tsconfig.eslint.json",
"extraFileExtensions": [".mjs"]
},
"ignorePatterns": ["**/dist/*"],
"env": {
"jest": true
}
"extends": "../../.eslintrc.json"
}
1 change: 1 addition & 0 deletions packages/proxy/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../../.prettierrc.json');
8 changes: 0 additions & 8 deletions packages/proxy/.prettierrc.json

This file was deleted.

19 changes: 1 addition & 18 deletions packages/proxy/tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true
},
"include": [
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.mjs",
"**/*.jsx",
"**/*.test.ts",
"**/*.test.js",
"**/*.test.mjs",
"**/*.spec.ts",
"**/*.spec.js",
"**/*.spec.mjs"
],
"exclude": []
"extends": "../../tsconfig.eslint.json"
}
21 changes: 2 additions & 19 deletions packages/proxy/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
import { defineConfig } from 'tsup';
import { createTsupConfig } from '../../tsup.config';

export default defineConfig({
clean: true,
dts: true,
entryPoints: ['src/index.ts'],
format: ['esm', 'cjs'],
minify: false,
keepNames: true,
skipNodeModulesBundle: true,
sourcemap: true,
target: 'es2021',
esbuildOptions: (options, context) => {
if (context.format === 'cjs') {
options.banner = {
js: '"use strict";',
};
}
},
});
export default createTsupConfig();
11 changes: 1 addition & 10 deletions packages/rest/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"root": true,
"extends": "marine/prettier/node",
"parserOptions": {
"project": "./tsconfig.eslint.json",
"extraFileExtensions": [".mjs"]
},
"ignorePatterns": ["**/dist/*"],
"env": {
"jest": true
}
"extends": "../../.eslintrc.json"
}
1 change: 1 addition & 0 deletions packages/rest/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../../.prettierrc.json');
8 changes: 0 additions & 8 deletions packages/rest/.prettierrc.json

This file was deleted.

Loading

0 comments on commit 769ea0b

Please sign in to comment.