Skip to content

Commit 7b828b5

Browse files
authored
Merge pull request #42 from eryue0220/chore/lint-update
chore: lint update
2 parents 65be937 + 70b103b commit 7b828b5

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
.github/
22
dist/
33
node_modules/
4-
examples/

examples/rollup-example/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { readFileSync } from 'fs';
1+
import { readFileSync } from 'fs'
22
import nodeResolve from '@rollup/plugin-node-resolve'
33
import commonjs from '@rollup/plugin-commonjs'
44
import babel from '@rollup/plugin-babel'
@@ -48,7 +48,7 @@ export default {
4848
title: 'Stylex With Rollup',
4949
template: ({ attributes, files, publicPath, title }) => {
5050
const htmlTemplate = 'public/index.html'
51-
const { css, js } = files;
51+
const { css, js } = files
5252
const scripts = (js || [])
5353
.map(({ fileName }) =>
5454
`<script src="${publicPath}${fileName}" ${makeHtmlAttributes(attributes.script)}></script>`

examples/rsbuild-example/rsbuild.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { defineConfig } from '@rsbuild/core';
2-
import { pluginReact } from '@rsbuild/plugin-react';
3-
import stylexPlugin from 'unplugin-stylex/rspack';
1+
import { defineConfig } from '@rsbuild/core'
2+
import { pluginReact } from '@rsbuild/plugin-react'
3+
import stylexPlugin from 'unplugin-stylex/rspack'
44

55
export default defineConfig({
66
plugins: [
@@ -23,4 +23,4 @@ export default defineConfig({
2323
],
2424
},
2525
},
26-
});
26+
})

examples/rsbuild-example/src/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react';
21
import { createRoot } from 'react-dom/client'
32
import * as stylex from '@stylexjs/stylex'
43
import { colors } from '@stylexjs/open-props/lib/colors.stylex'

examples/vue-example/src/vite-env.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference types="vite/client" />
22

3-
declare module "*.vue" {
4-
import type { DefineComponent } from "vue"
3+
declare module '*.vue' {
4+
import type { DefineComponent } from 'vue'
55
const component: DefineComponent<object, object, any>
66
export default component
77
}

examples/webpack-example/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
'use strict';
1+
'use strict'
22

33
const path = require('path')
4-
const HtmlWebpackPlugin = require('html-webpack-plugin');
4+
const HtmlWebpackPlugin = require('html-webpack-plugin')
55
const { default: stylexWebpackPlugin } = require('unplugin-stylex/webpack')
66

77
const isDev = process.env.NODE_ENV === 'development'

0 commit comments

Comments
 (0)