Skip to content

Commit e693598

Browse files
Migrate dependencies and fix broken Perl::Critics config, bump version to 0.0.4 (#3)
* Update dependencies, migrate from TSLint to ESLint. * Add scope: window for configurations * Reformat linter.ts * remove tslint.json * rebuild project * Bump minimal vscode version to 1.47 * Properly map severity * Remove creation of tempfiles * Set cwd properly when spawning perlcritic * Bump version to 0.0.4
1 parent 8d6ff9e commit e693598

11 files changed

+1417
-870
lines changed

.eslintrc.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**@type {import('eslint').Linter.Config} */
2+
// eslint-disable-next-line no-undef
3+
module.exports = {
4+
root: true,
5+
parser: "@typescript-eslint/parser",
6+
parserOptions: {
7+
project: "./tsconfig.json",
8+
},
9+
plugins: ["@typescript-eslint"],
10+
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
11+
rules: {
12+
semi: [2, "always"],
13+
"@typescript-eslint/no-unused-vars": 0,
14+
"@typescript-eslint/no-explicit-any": 0,
15+
"@typescript-eslint/explicit-module-boundary-types": 0,
16+
"@typescript-eslint/no-non-null-assertion": 0,
17+
},
18+
};

README.md

+14-8
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,37 @@
22

33
## Features
44

5-
* Code snippets for common control structures used in Perl.
6-
* Code linting via `Perl::Critic`.
7-
* Code formatting via `Perl::Tidy`.
5+
- Code snippets for common control structures used in Perl.
6+
- Code linting via `Perl::Critic`.
7+
- Code formatting via `Perl::Tidy`.
88

99
It is a combination of [Perl extension](https://marketplace.visualstudio.com/items?itemName=henriiik.vscode-perl) by
1010
Henrik Sjööh and [Perl Toolbox](https://marketplace.visualstudio.com/items?itemName=d9705996.perl-toolbox) by David Walker.
1111

1212
## Installation
13+
1314
Just make sure you have `perlcritic` and `perltidy` available in `$PATH`.
14-
Customization `Perl::Critic` by modify your `.perlcritic` file, configuration in Visual Studio Code is not needed. Same is true for `Perl::Tidy`, it reads configuration from `.perltidyrc`.
15+
Customization `Perl::Critic` by modify your `.perlcriticrc` file, configuration in Visual Studio Code is not needed. Same is true for `Perl::Tidy`, it reads configuration from `.perltidyrc`.
1516

1617
## Extension Settings
1718

1819
| Setting | Default | Description |
19-
|--------------------------|--------------|------------------------------------|
20+
| ------------------------ | ------------ | ---------------------------------- |
2021
| `simple-perl.perltidy` | `perltidy` | Path to `Perl::Tidy` executable. |
2122
| `simple-perl.perlcritic` | `perlcritic` | Path to `Perl::Critic` executable. |
2223

2324
## Release Notes
2425

26+
### 0.0.4
27+
28+
Updated dependencies for the extension.
29+
Fix the problem that Perl::Critics does not look for `.perlcriticrc` in project folder.
30+
2531
### 0.0.3
2632

2733
Remove hardcoded severity `brutal`.
2834
Update dependencies.
29-
Credit: [@glauschwuffel](https://github.com/glauschwuffel) [issues](https://github.com/zhiyuan-lin/vscode-perl/issues/2)
35+
Credit: [@glauschwuffel](https://github.com/glauschwuffel) [issues](https://github.com/zhiyuan-lin/vscode-perl/issues/2)
3036

3137
### 0.0.2
3238

@@ -36,10 +42,10 @@ Refine README.md.
3642

3743
Initial release of Simple Perl.
3844

39-
-----------------------------------------------------------------------------------------------------------
40-
45+
---
4146

4247
**Enjoy!**
4348

4449
# License
50+
4551
[MIT](LICENSE)

out/linter.js

+37-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/linter.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)