Skip to content

Commit

Permalink
chore(dependencies): Update all dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Jagget authored and rwaskiewicz committed Apr 26, 2024
1 parent 18f3b01 commit 5c295de
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 27 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = false
max_line_length = 180
tab_width = 2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
node_modules/
dist/
*.swp
Expand Down
13 changes: 13 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// @ts-check
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
'@typescript-eslint/no-explicit-any': "off",
}
}
);
33 changes: 18 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,29 @@
"rollup": "rollup -c",
"version": "npm run build",
"release": "np",
"lint": "tslint --project tsconfig.json",
"lint": "eslint ./src",
"test": "jest",
"test.watch": "jest --watch"
},
"dependencies": {
"less": "^3.9.0"
"less": "^4.2.0"
},
"peerDependencies": {
"@stencil/core": "^1.0.2"
"@stencil/core": "^4.17.1"
},
"devDependencies": {
"@stencil/core": "^1.0.2",
"@types/jest": "^24.0.13",
"@types/node": "^12.0.7",
"@types/less": "^3.0.0",
"jest": "^24.8.0",
"np": "^2.20.1",
"rimraf": "^2.6.2",
"rollup": "^1.14.4",
"tslint": "^5.9.1",
"tslint-ionic-rules": "0.0.21",
"typescript": "^3.5.1"
"@eslint/js": "^9.1.1",
"@stencil/core": "^4.17.1",
"@types/jest": "^29.5.12",
"@types/less": "^3.0.6",
"@types/node": "^20.12.7",
"eslint": "^8.57.0",
"jest": "^29.7.0",
"np": "^10.0.5",
"rimraf": "^5.0.5",
"rollup": "^4.16.4",
"typescript": "^5.4.5",
"typescript-eslint": "^7.7.1"
},
"repository": {
"type": "git",
Expand All @@ -61,6 +62,8 @@
"json",
"jsx"
],
"testURL": "http://localhost"
"testEnvironmentOptions": {
"url": "http://localhost"
}
}
}
8 changes: 4 additions & 4 deletions rollup.config.js → rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pkg from './package.json';
import pkg from './package.json' assert {type: "json"};


export default {
Expand All @@ -10,9 +10,9 @@ export default {
],

output: [{
format: 'cjs',
file: pkg.main
},
format: 'cjs',
file: pkg.main
},
{
format: 'es',
file: pkg.module
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render } from 'less';
import { loadDiagnostic } from './diagnostics';
import {render} from 'less';
import {loadDiagnostic} from './diagnostics';
import * as d from './declarations';
import * as util from './util';

Expand Down Expand Up @@ -42,7 +42,7 @@ export function less(opts: d.PluginOptions = {}): d.Plugin {
// write this css content to memory only so it can be referenced
// later by other plugins (autoprefixer)
// but no need to actually write to disk
context.fs.writeFile(results.id, results.code, { inMemoryOnly: true }).then(() => {
context.fs.writeFile(results.id, results.code, {inMemoryOnly: true}).then(() => {
resolve(results);
});
}
Expand Down
4 changes: 2 additions & 2 deletions test/jest.preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ tsConfig.compilerOptions.module = 'commonjs';
module.exports = {
process(src, path) {
if (path.endsWith('.ts') || path.endsWith('.tsx')) {
return tsc.transpile(src, tsConfig.compilerOptions, path, []);
return {code: tsc.transpile(src, tsConfig.compilerOptions, path, [])};
}
return src;
return {code: src};
},
};
3 changes: 0 additions & 3 deletions tslint.json

This file was deleted.

0 comments on commit 5c295de

Please sign in to comment.