Skip to content

Commit bcefdc5

Browse files
authored
Release (#19)
2 parents 132c730 + 203d603 commit bcefdc5

File tree

9 files changed

+236
-22
lines changed

9 files changed

+236
-22
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: "npm" # See documentation for possible values
9-
directory: "/" # Location of package manifests
8+
- package-ecosystem: 'npm' # See documentation for possible values
9+
directory: '/' # Location of package manifests
1010
schedule:
11-
interval: "monthly"
12-
- package-ecosystem: "github-actions"
13-
directory: "/"
11+
interval: 'monthly'
12+
- package-ecosystem: 'github-actions'
13+
directory: '/'
1414
schedule:
15-
interval: "monthly"
15+
interval: 'monthly'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Auto Author Assign
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, reopened]
6+
7+
permissions:
8+
pull-requests: write
9+
10+
jobs:
11+
assign-author:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: toshimaru/[email protected]

.github/workflows/pr-check.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: PR Check
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
8+
jobs:
9+
pr-check:
10+
name: PR Check
11+
runs-on: ubuntu-latest
12+
env:
13+
HUSKY: 0
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 'lts/*'
23+
- name: Install dependencies
24+
run: npm ci
25+
- name: Lint
26+
run: npm run lint
27+
- name: Type check
28+
run: npm run type-check
29+
- name: Build
30+
run: npm run build
31+
# - name: Test
32+
# run: npm run test

package-lock.json

Lines changed: 160 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,32 @@
1010
"lint": "prettier --check .",
1111
"pre-commit": "lint-staged",
1212
"prepare": "husky",
13-
"semantic-release": "semantic-release"
13+
"semantic-release": "semantic-release",
14+
"type-check": "tsc --pretty --noEmit"
1415
},
1516
"bugs": "https://github.com/capitnflam/eslint-plugin/issues",
1617
"dependencies": {
18+
"@eslint-community/eslint-plugin-eslint-comments": "4.1.0",
1719
"@typescript-eslint/eslint-plugin": "7.2.0",
1820
"@typescript-eslint/parser": "7.2.0",
1921
"eslint-config-prettier": "9.1.0",
2022
"eslint-plugin-import": "2.29.1",
2123
"eslint-plugin-jsx-a11y": "6.8.0",
22-
"eslint-plugin-react": "7.34.0",
24+
"eslint-plugin-n": "16.6.2",
25+
"eslint-plugin-no-unsanitized": "4.0.2",
26+
"eslint-plugin-react": "7.34.1",
2327
"eslint-plugin-react-hooks": "4.6.0",
24-
"eslint-plugin-unicorn": "51.0.1"
28+
"eslint-plugin-security": "2.1.1",
29+
"eslint-plugin-sonarjs": "0.24.0",
30+
"eslint-plugin-unicorn": "51.0.1",
31+
"eslint-plugin-xss": "0.1.12"
2532
},
2633
"devDependencies": {
2734
"@commitlint/cli": "19.2.0",
2835
"@commitlint/config-conventional": "19.1.0",
2936
"@commitlint/types": "19.0.3",
3037
"@types/eslint": "8.56.5",
31-
"@types/node": "20.11.27",
38+
"@types/node": "20.11.28",
3239
"husky": "9.0.11",
3340
"lint-staged": "15.2.2",
3441
"prettier": "3.2.5",

src/configs/node.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { type ESLintConfig } from '../types'
2+
3+
export const node: ESLintConfig = {
4+
plugins: ['@flaminc'],
5+
extends: ['plugin:n/recommended'],
6+
}

0 commit comments

Comments
 (0)