Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintrc.js

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ env:
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: ["master", "beta"]
branches: [master, beta]
pull_request:
branches: ["master", "beta"]
branches: [master, beta]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -25,7 +25,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [24.x]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 24

- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
Expand Down
4 changes: 2 additions & 2 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const fabric = require('@shlab/fabric');
const fabric = require('@shlab/fabric')

module.exports = {
...fabric.prettier,
tabWidth: 2,
printWidth: 120,
singleQuote: true,
};
}
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"recommendations": [
"editorconfig.editorconfig",
"editorconfig.editorconfig"
]
}
28 changes: 14 additions & 14 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
34 changes: 17 additions & 17 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"editor.wordWrap": "off",
// Turns on auto format on save for all files types.
// This is also required to allow Prettier to auto format files on save.
"editor.formatOnSave": true,
// Turns it off for JavaScript since we use Prettier to auto format on save.
"javascript.format.enable": false,
"javascript.validate.enable": true,
"json.format.enable": false,
// Required to allow auto format on save with Prettier + ESLint + Vetur.
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.alwaysShowStatus": true,
"sort-imports.suppress-warnings": true,
"search.exclude": {
"**/node_modules*": true
}
"editor.wordWrap": "off",
// Turns on auto format on save for all files types.
// This is also required to allow Prettier to auto format files on save.
"editor.formatOnSave": true,
// Turns it off for JavaScript since we use Prettier to auto format on save.
"javascript.format.enable": false,
"javascript.validate.enable": true,
"json.format.enable": false,
// Required to allow auto format on save with Prettier + ESLint + Vetur.
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.alwaysShowStatus": true,
"sort-imports.suppress-warnings": true,
"search.exclude": {
"**/node_modules*": true
}
}
19 changes: 19 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import antfu from '@antfu/eslint-config'

export default antfu({
react: true,
ignores: ['dist', 'node_modules', '*.min.js'],
}, {
files: ['server/**/*.js'],
rules: {
'no-console': 'off',
'node/prefer-global/process': 'off',
'ts/no-var-requires': 'off',
'unused-imports/no-unused-vars': 'off',
},
}, {
files: ['vite.config.ts'],
rules: {
'node/prefer-global/process': 'off',
},
})
4 changes: 4 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@
"128": "icons/candi-tab@3x.png"
}
},
"options_ui": {
"page": "src/options.html",
"open_in_tab": false
},
"permissions": ["storage"]
}
Loading