-
Notifications
You must be signed in to change notification settings - Fork 660
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #663 from frappe/use-vite
build: use vite
- Loading branch information
Showing
251 changed files
with
4,617 additions
and
11,069 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,62 @@ | ||
module.exports = { | ||
root: true, | ||
|
||
env: { | ||
node: true, | ||
browser: true, | ||
es2018: true, | ||
}, | ||
|
||
rules: { | ||
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
'no-console': 'warn', | ||
'no-debugger': 'warn', | ||
'arrow-body-style': 'off', | ||
'prefer-arrow-callback': 'off', | ||
'prettier/prettier': 'warn', | ||
'prefer-arrow-callback': 'warn', | ||
'vue/no-mutating-props': 'off', | ||
'vue/multi-word-component-names': 'off', | ||
'vue/no-useless-template-attributes': 'off', | ||
'vue/one-component-per-file': 'off', | ||
'vue/no-reserved-component-names': 'off', | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/no-floating-promises': 'warn', | ||
'@typescript-eslint/no-misused-promises': 'warn', | ||
}, | ||
|
||
parser: 'vue-eslint-parser', | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser', | ||
project: true, | ||
tsconfigRootDir: __dirname, | ||
sourceType: 'module', | ||
extraFileExtensions: ['.vue'], | ||
}, | ||
|
||
extends: ['plugin:vue/vue3-essential', '@vue/typescript'], | ||
plugins: ['@typescript-eslint', 'prettier'], | ||
extends: [ | ||
'plugin:vue/vue3-recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/recommended-requiring-type-checking', | ||
'plugin:prettier/recommended', | ||
], | ||
overrides: [ | ||
{ | ||
files: ['*.vue'], | ||
rules: { | ||
'@typescript-eslint/no-misused-promises': 'off', | ||
'@typescript-eslint/no-unsafe-assignment': 'off', | ||
'@typescript-eslint/no-unsafe-member-access': 'off', | ||
'@typescript-eslint/no-unsafe-call': 'off', | ||
}, | ||
}, | ||
], | ||
ignorePatterns: [ | ||
'*.mjs', | ||
'.eslintrc.js', | ||
'tailwind.config.js', | ||
'node_modules', | ||
'dist_electron', | ||
'*.spec.ts', | ||
'vite.config.ts', | ||
'postcss.config.js', | ||
'src/components/**/*.vue', // Incrementally fix these | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: [$default-branch] | ||
paths-ignore: | ||
- '**.md' | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
setup_and_lint: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16.14.0' | ||
|
||
- name: Set yarn version | ||
run: yarn set version 1.22.18 | ||
|
||
- name: Checkout Books | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Dependencies | ||
run: yarn | ||
|
||
- name: Lint | ||
run: yarn lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.