Skip to content

Commit

Permalink
chore: spaces to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrawl committed Jun 30, 2021
1 parent 765e46d commit 35a3480
Show file tree
Hide file tree
Showing 24 changed files with 960 additions and 964 deletions.
48 changes: 24 additions & 24 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"extends": ["@commitlint/config-angular"],
"rules": {
"scope-case": [2, "always", "pascal-case"],
"type-enum": [
2,
"always",
[
"chore",
"build",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test",
"types",
"workflow",
"wip"
]
]
}
"extends": ["@commitlint/config-angular"],
"rules": {
"scope-case": [2, "always", "pascal-case"],
"type-enum": [
2,
"always",
[
"chore",
"build",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test",
"types",
"workflow",
"wip"
]
]
}
}
23 changes: 23 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": "marine/prettier/node",
"parserOptions": {
"project": "./tsconfig.eslint.json"
},
"env": {
"jest": true
},
"rules": {
"@typescript-eslint/naming-convention": 0,
"no-redeclare": 0
},
"overrides": [
{
"files": ["scripts/**/*.mjs"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
}
}
]
}
18 changes: 0 additions & 18 deletions .github/tsc.json

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/lint-cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Lint Cron
on:
schedule:
- cron: '0 */12 * * *'
jobs:
lint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Node v16
uses: actions/setup-node@v2
with:
node-version: 16

- name: Install dependencies
run: npm ci

- name: Build TypeScript
run: npm run build

- name: Run ESLint
run: npm run lint
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint
on: [push, pull_request]
jobs:
lint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Node v16
uses: actions/setup-node@v2
with:
node-version: 16

- name: Install dependencies
run: npm ci

- name: Build TypeScript
run: npm run build

- name: Run ESLint
run: npm run lint
28 changes: 0 additions & 28 deletions .github/workflows/publish-dev.yml

This file was deleted.

32 changes: 7 additions & 25 deletions .github/workflows/test-cron.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Testing
name: Tests Cron
on:
schedule:
- cron: '0 */12 * * *'
jobs:
lint:
name: ESLint
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -18,26 +18,8 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Run ESLint
run: npm run test:lint

typescript:
name: TypeScript
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Node v16
uses: actions/setup-node@v2
with:
node-version: 16

- name: Install dependencies
run: npm ci

- name: Register Problem Matcher
run: echo "##[add-matcher].github/tsc.json"

- name: Run TypeScript compiler
- name: Build TypeScript
run: npm run build

- name: Run Tests
run: npm run test:ci
41 changes: 1 addition & 40 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
name: Testing
name: Tests
on: [push, pull_request]
jobs:
lint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Node v16
uses: actions/setup-node@v2
with:
node-version: 16

- name: Install dependencies
run: npm ci

- name: Run ESLint
run: npm run test:lint

test:
name: Test
runs-on: ubuntu-latest
Expand All @@ -42,24 +24,3 @@ jobs:

- name: Upload Coverage
uses: codecov/codecov-action@v1

typescript:
name: TypeScript
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Node v16
uses: actions/setup-node@v2
with:
node-version: 16

- name: Install dependencies
run: npm ci

- name: Register Problem Matcher
run: echo "##[add-matcher].github/tsc.json"

- name: Run TypeScript compiler
run: npm run build
Empty file modified .husky/commit-msg
100644 → 100755
Empty file.
Empty file modified .husky/pre-commit
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*.{mjs,js}": "eslint --fix --ext mjs,js,ts",
"*.{ts,json,yml,yaml}": "prettier --write"
"*.{mjs,js}": "eslint --fix --ext mjs,js,ts",
"*.{ts,json,yml,yaml}": "prettier --write"
}
2 changes: 0 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
audit=false
fund=false
legacy-peer-deps=true
tag-version-prefix=""
message="chore(release): %s 🎉"
11 changes: 6 additions & 5 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"singleQuote": true,
"printWidth": 120,
"trailingComma": "all",
"endOfLine": "lf",
"arrowParens": "avoid"
"printWidth": 120,
"useTabs": true,
"singleQuote": true,
"quoteProps": "as-needed",
"trailingComma": "all",
"endOfLine": "lf"
}
3 changes: 3 additions & 0 deletions .versionrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"releaseCommitMessageFormat": "chore(Release): publish"
}
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# @discordjs/builders

[![GitHub](https://img.shields.io/github/license/discordjs/builders)](https://github.com/discordjs/builders/blob/main/LICENSE.md)
[![npm](https://img.shields.io/npm/v/@discordjs/builders?color=crimson&logo=npm)](https://www.npmjs.com/package/@discordjs/builders)

A collection of builders you can use while building your bot.
<div align="center">
<br />
<p>
<a href="https://discord.js.org"><img src="https://discord.js.org/static/logo.svg" width="546" alt="discord.js" /></a>
</p>
<br />
<p>
<a href="https://discord.gg/djs"><img src="https://img.shields.io/discord/222078108977594368?color=5865F2&logo=discord&logoColor=white" alt="Discord server" /></a>
<a href="https://github.com/discordjs/builders/actions"><img src="https://github.com/discordjs/builders/workflows/Tests/badge.svg" alt="Test status" /></a>
<a href="https://github.com/discordjs/builders/actions"><img src="https://github.com/discordjs/builders/workflows/Lint/badge.svg" alt="Lint status" /></a>
<a href="https://codecov.io/gh/discordjs/builders"><img src="https://codecov.io/gh/discordjs/builders/branch/master/graph/badge.svg" alt="Code coverage" /></a>
</p>
</div>

## Installation

Expand All @@ -15,6 +22,6 @@ yarn add @discordjs/builders
pnpm add @discordjs/builders
```

### Usage
## Contribution

To be done!
See [Contributing Guide](https://github.com/discordjs/discord.js-next/blob/master/.github/CONTRIBUTING.md).
24 changes: 12 additions & 12 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module.exports = {
parserOpts: { strictMode: true },
sourceMaps: 'inline',
presets: [
[
'@babel/preset-env',
{
targets: { node: 'current' },
modules: 'commonjs',
},
],
'@babel/preset-typescript',
],
parserOpts: { strictMode: true },
sourceMaps: 'inline',
presets: [
[
'@babel/preset-env',
{
targets: { node: 'current' },
modules: 'commonjs',
},
],
'@babel/preset-typescript',
],
};
26 changes: 13 additions & 13 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
module.exports = {
testMatch: ['<rootDir>/tests/**/*.test.ts'],
testEnvironment: 'node',
collectCoverage: true,
collectCoverageFrom: ['src/**/*.ts'],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'clover'],
coverageThreshold: {
global: {
branches: 70,
lines: 70,
statements: 70,
},
},
testMatch: ['<rootDir>/tests/**/*.test.ts'],
testEnvironment: 'node',
collectCoverage: true,
collectCoverageFrom: ['src/**/*.ts'],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'clover'],
coverageThreshold: {
global: {
branches: 70,
lines: 70,
statements: 70,
},
},
};
Loading

0 comments on commit 35a3480

Please sign in to comment.