Skip to content

Commit

Permalink
Merge pull request #4 from rbxts-flamework/feature/ci
Browse files Browse the repository at this point in the history
Update Style and add CI workflows.
  • Loading branch information
christopher-buss authored Oct 14, 2024
2 parents cf595b5 + 6aa8871 commit d194618
Show file tree
Hide file tree
Showing 17 changed files with 1,158 additions and 714 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* text=auto
*.* text eol=lf
38 changes: 38 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
pull_request:
branches:
- master
workflow_dispatch:

permissions:
contents: write
packages: write

env:
CI: true

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- name: Install npm
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Build
run: npm run build
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"roblox-ts.vscode-roblox-ts",
"dbaeumer.vscode-eslint"
]
}
}
5 changes: 2 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
{ "rule": "*semi", "severity": "off", "fixable": true }
],
// Enable eslint for all supported languages
"eslint.validate": ["typescript", "typescriptreact", "markdown", "json", "jsonc", "yaml", "toml", "luau"],
"eslint.validate": ["typescript", "typescriptreact", "json", "jsonc", "yaml", "toml", "luau"],
// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always",
"source.organizeImports": "never"
},
"eslint.options": { "flags": ["unstable_ts_config"] },
"editor.defaultFormatter": "esbenp.prettier-vscode"
"eslint.options": { "flags": ["unstable_ts_config"] }
}
116 changes: 0 additions & 116 deletions archetypeTree.luau

This file was deleted.

2 changes: 2 additions & 0 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ language: en
words:
- despawn
- fireboltofdeath
- jecs
- metatable
- topo
42 changes: 26 additions & 16 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
import style from "@isentinel/eslint-config";
import style, { GLOB_MARKDOWN } from "@isentinel/eslint-config";

export default style({
rules: {
"@typescript-eslint/no-empty-interface": ["error", { allowInterfaces: true }],
"import/no-namespace": "off",
"max-lines": "error",
"max-lines-per-function": "off",
"no-param-reassign": "off",
"sonar/cognitive-complexity": "off",
"ts/no-non-null-assertion": "off",
},
typescript: {
parserOptions: {
project: "tsconfig.eslint.json",
export default style(
{
rules: {
"import/no-namespace": "off",
"max-lines": "error",
"max-lines-per-function": "off",
"no-param-reassign": "off",
"sonar/cognitive-complexity": "off",
"ts/no-empty-object-type": [
"error",
{
allowInterfaces: "always",
},
],
"ts/no-non-null-assertion": "off",
},
typescript: {
parserOptions: {
project: "tsconfig.eslint.json",
},
tsconfigPath: "tsconfig.eslint.json",
},
tsconfigPath: "tsconfig.eslint.json",
},
});
{
ignores: ["src/jecs/**", GLOB_MARKDOWN],
},
);
Loading

0 comments on commit d194618

Please sign in to comment.