Skip to content

Commit

Permalink
Turn on workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Oct 26, 2021
1 parent 7198663 commit 817f69f
Show file tree
Hide file tree
Showing 5 changed files with 198 additions and 83 deletions.
19 changes: 19 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
> 1%
last 2 versions
not dead
chrome > 84
edge > 84
firefox > 80
safari > 14.1
not and_chr > 0
not and_ff > 0
not and_qq > 0
not and_uc > 0
not android > 0
not baidu > 0
not ios_saf > 0
not kaios > 0
not op_mob > 0
not op_mini > 0
not samsung > 0
not ie > 0
100 changes: 100 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
module.exports = {
env: {
browser: true,
es2020: true,
},
extends: [
'plugin:vue/recommended',
'plugin:@typescript-eslint/recommended',
'airbnb-base',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 2020,
parser: '@typescript-eslint/parser',
sourceType: 'module',
},
plugins: [
'vue',
'@typescript-eslint',
],
rules: {
'import/no-unresolved': 'off',
'import/extensions': 'off',
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'off',
'import/no-default-export': 'error',
'import/no-named-default': 'off',

'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-shadow': ['error', { builtinGlobals: false }],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-use-before-define': ['error'],
'@typescript-eslint/no-redeclare': 'error',

'vue/max-attributes-per-line': 'off',
'vue/html-self-closing': 'off',
'vue/no-v-html': 'off',
'vue/require-prop-types': 'off',
'vue/one-component-per-file': 'off',

// 使用 @typescript-eslint/no-unused-vars, 否则 interface 都是 unused
'no-unused-vars': 'off',
'no-console': 'off',
'no-undef': 'off',
'no-param-reassign': 'off',
'no-continue': 'off',
'no-plusplus': 'off',
'no-eval': 'off',
'no-useless-constructor': 'off',
'no-unused-expressions': 'off',
'no-await-in-loop': 'off',
'no-restricted-syntax': 'off',
'no-useless-escape': 'off',
'no-empty-function': ['error', { 'allow': ['constructors'] }],
'no-return-assign': ['error', 'except-parens'],
'no-redeclare': 'off',
'no-script-url': 'off',
'no-shadow': 'off',
'no-use-before-define': 'off',
'no-alert': 'off',
'no-restricted-globals': 'off',

'arrow-parens': ['error', 'as-needed'],
'semi': ['error', 'never'],
'linebreak-style': 'off',
'camelcase': 'off',
'lines-between-class-members': 'off',
'radix': ['error', 'as-needed'],
'max-len': 'warn',
'max-classes-per-file': 'off',
'prefer-destructuring': ['error',
{
'VariableDeclarator': {
'array': false,
'object': true
},
'AssignmentExpression': {
'array': false,
'object': false
}
},
],
'curly': ['error', 'all'],
},
overrides: [
{
files: ['*.vue', 'shims.d.ts'],
rules: {
'import/no-default-export': 'off',
}
}
]
};
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Build
# events but only for the v2 branch
on:
push:
branches: [ v2 ]
branches: [ v2, preview ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down
80 changes: 39 additions & 41 deletions dist/bilibili-evolved.preview.user.js

Large diffs are not rendered by default.

80 changes: 39 additions & 41 deletions dist/bilibili-evolved.user.js

Large diffs are not rendered by default.

0 comments on commit 817f69f

Please sign in to comment.