Skip to content

Commit

Permalink
update according to eslint-lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NingW101 committed Oct 9, 2024
1 parent a043ba8 commit 4be4617
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 26 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default [
"error",
{ destructuredArrayIgnorePattern: "^_", argsIgnorePattern: "^_" }
],
"prettier/prettier":["error", prettierConfig]
"prettier/prettier": ["error", prettierConfig]
}
},
{
Expand Down
28 changes: 14 additions & 14 deletions samples/phi3-webgpu/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended"
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react-refresh'],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
settings: { react: { version: "18.2" } },
plugins: ["react-refresh"],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true }
],
'react/prop-types': 'off'
},
}
"react/prop-types": "off"
}
};
6 changes: 3 additions & 3 deletions samples/phi3-webgpu/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
autoprefixer: {}
}
};
12 changes: 4 additions & 8 deletions samples/phi3-webgpu/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
extend: {}
},
plugins: [],
}

plugins: []
};
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*-----------------------------------------------------------------------------------------------*/

/* eslint-disable no-undef */
import { defineConfig } from "vite";
import basicSsl from "@vitejs/plugin-basic-ssl";
import { existsSync } from "fs";
Expand Down

0 comments on commit 4be4617

Please sign in to comment.