Skip to content

Commit

Permalink
Fix vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jan 2, 2023
1 parent f92c813 commit c9c6fdf
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 1,244 deletions.
22 changes: 12 additions & 10 deletions .eslintrc.js
Expand Up @@ -9,8 +9,9 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
// Disabled until security issues of eslint-plugin-import have been resolved
// 'plugin:import/recommended',
// 'plugin:import/typescript',
'plugin:unicorn/recommended'
],
ignorePatterns: [
Expand Down Expand Up @@ -80,14 +81,15 @@ module.exports = {
],
'arrow-body-style': ['error', 'as-needed'],
'dot-notation': 'error',
'import/no-unresolved': [
'error',
{
// 'fsevents' is ony available on macOS, and not installed on linux/windows
ignore: ['fsevents', 'help.md', 'is-reference', 'package.json', 'types']
}
],
'import/order': ['error', { alphabetize: { order: 'asc' } }],
// Disabled until security issues of eslint-plugin-import have been resolved
// 'import/no-unresolved': [
// 'error',
// {
// // 'fsevents' is ony available on macOS, and not installed on linux/windows
// ignore: ['fsevents', 'help.md', 'is-reference', 'package.json', 'types']
// }
// ],
// 'import/order': ['error', { alphabetize: { order: 'asc' } }],
'no-constant-condition': ['error', { checkLoops: false }],
'no-prototype-builtins': 'off',
'object-shorthand': 'error',
Expand Down
8 changes: 6 additions & 2 deletions docs/999-big-list-of-options.md
Expand Up @@ -268,7 +268,7 @@ The following will add minification to one of the outputs:
```js
// rollup.config.js
import { terser } from 'rollup-plugin-terser';
import terser from '@rollup/plugin-terser';

export default {
input: 'main.js',
Expand Down Expand Up @@ -301,7 +301,11 @@ const isProduction = process.env.NODE_ENV === 'production';

export default (async () => ({
input: 'main.js',
plugins: [resolve(), commonjs(), isProduction && (await import('rollup-plugin-terser')).terser()],
plugins: [
resolve(),
commonjs(),
isProduction && (await import('@rollup/plugin-terser')).default()
],
output: {
file: 'bundle.js',
format: 'cjs'
Expand Down

0 comments on commit c9c6fdf

Please sign in to comment.