Skip to content

Commit

Permalink
ci: fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
RozmarinUS committed Jul 12, 2023
1 parent 271252d commit 4483960
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 52 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Node v14
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: 18

- name: Install dependencies
run: npm ci
- name: Install dependencies
run: npm ci

- name: Run ESLint
run: npm run lint
- name: Run ESLint
run: npm run lint

- name: Run TSC
run: npm run build
- name: Run TSC
run: npm run build
80 changes: 40 additions & 40 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,44 @@ const TerserPlugin = require('terser-webpack-plugin');

/** @type {import('webpack').Configuration} */
module.exports = {
target: 'node',
entry: './src/extension.ts',
output: {
filename: 'extension.js',
libraryTarget: 'commonjs2',
path: path.resolve(process.cwd(), 'dist'),
},
devtool: 'source-map',
externals: {
vscode: 'commonjs vscode',
},
resolve: {
extensions: ['.ts', '.js', '.json'],
},
plugins: [new CleanWebpackPlugin()],
optimization: {
minimize: true,
minimizer: [
new TerserPlugin({
extractComments: true,
terserOptions: {
output: {
comments: false,
},
mangle: false,
keep_classnames: true,
keep_fnames: true,
},
}),
],
},
module: {
rules: [
{
test: /\.ts$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
}
target: 'node',
entry: './src/extension.ts',
output: {
filename: 'extension.js',
libraryTarget: 'commonjs2',
path: path.resolve(process.cwd(), 'dist'),
},
devtool: 'source-map',
externals: {
vscode: 'commonjs vscode',
},
resolve: {
extensions: ['.ts', '.js', '.json'],
},
plugins: [new CleanWebpackPlugin()],
optimization: {
minimize: true,
minimizer: [
new TerserPlugin({
extractComments: true,
terserOptions: {
output: {
comments: false,
},
mangle: false,
keep_classnames: true,
keep_fnames: true,
},
}),
],
},
module: {
rules: [
{
test: /\.ts$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
};

0 comments on commit 4483960

Please sign in to comment.