Skip to content

Commit 7a5ee90

Browse files
committed
chore: linter, copy config from new template
1 parent 495fbd3 commit 7a5ee90

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1024
-2682
lines changed

CITATION.cff

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cff-version: 1.2.0
2-
title: Pawnilim
2+
title: Unilim
33
message: >-
44
If you use this software, please cite it using the
55
metadata from this file.
@@ -8,9 +8,9 @@ authors:
88
- name: LiterateInk
99
website: "https://literate.ink"
1010
email: contact@literate.ink
11-
repository-code: 'https://github.com/LiterateInk/Pawnilim'
12-
url: 'https://docs.literate.ink/pawnilim'
13-
repository-artifact: 'https://www.npmjs.com/package/pawnilim'
11+
repository-code: "https://github.com/LiterateInk/Unilim.JS"
12+
url: "https://unilim.docs.literate.ink/"
13+
repository-artifact: "https://www.npmjs.com/package/unilim"
1414
abstract: >-
1515
A purrfect API wrapper for Unilim.
1616
keywords:
@@ -20,4 +20,4 @@ keywords:
2020
- wrapper
2121
- student
2222
- university
23-
license: GPL-3.0-or-later
23+
license: GPL-3.0-or-later

CONTRIBUTING.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
11
<img alt="Unilim: A purrfect API wrapper for Unilim" src="https://raw.githubusercontent.com/LiterateInk/Unilim.JS/main/.github/assets/banner.svg" width="100%" />
22

3-
*This library **is not** affiliated with [Unilim](https://unilim.fr/) in any way.*
3+
*This library **is not** affiliated with [&nearr;&nbsp;University of Limoges](https://unilim.fr/) in any way.*
44

55
## What is "Unilim" ?
66

7-
Unilim is a French university located in Limoges, France. It offers a wide range of courses in various fields. You can find more information about it on their [official website](https://unilim.fr/).
7+
University of Limoges (Unilim) is a French university that offers a wide range of courses in various fields. You can find more information about it on their [&nearr;&nbsp;official website](https://unilim.fr/).
88

99
## Installation
1010

11-
Use your favorite package manager to install this library from NPM.
11+
Use your favorite package manager to install this library from the npm registry.
1212

1313
```bash
1414
# pnpm
15-
pnpm add pawnilim
15+
pnpm add unilim
1616

1717
# Yarn
18-
yarn add pawnilim
18+
yarn add unilim
1919

2020
# npm
21-
npm install pawnilim
21+
npm add unilim
2222

2323
# Bun
24-
bun add pawnilim
24+
bun add unilim
2525
```
2626

27-
## Documentation
27+
## Quick Start
2828

29-
You can find documentation with guides at [docs.literate.ink/pawnilim](https://docs.literate.ink/pawnilim).
29+
> TODO
3030
31-
If it's not enough you can also take a look at the [`examples`](https://github.com/LiterateInk/Pawnilim/tree/js/examples) folder in the GitHub repository for inspiration.
31+
You can find guides at [**&nearr;&nbsp;unilim.docs.literate.ink**](https://unilim.docs.literate.ink) and if it's not enough you can also take a look at the [**&nearr;&nbsp;examples** directory on the GitHub repository](https://github.com/LiterateInk/Unilim.JS/tree/main/examples) for inspiration.
3232

33-
If none of those are helpful, you can always [open an issue](https://github.com/LiterateInk/Pawnilim/issues) to ask for help or join the [LiterateInk Discord server](https://literate.ink/discord).
33+
If none of those are helpful, you can always [&nearr;&nbsp;open an issue](https://github.com/LiterateInk/Unilim.JS/issues) to ask for help or join the [&nearr;&nbsp;LiterateInk Discord server](https://literate.ink/discord).
34+
35+
## License
36+
37+
This project is licensed under the GPL-3.0 License - see the [LICENSE.md](LICENSE.md) file for details.

bun.lock

Lines changed: 530 additions & 0 deletions
Large diffs are not rendered by default.

eslint.config.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

eslint.config.ts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import stylistic from "@stylistic/eslint-plugin";
2+
import typescript from "@typescript-eslint/parser";
3+
import perfectionist from "eslint-plugin-perfectionist";
4+
5+
export default [
6+
{ // Ignore the `dist` directory.
7+
ignores: [
8+
"dist/*"
9+
]
10+
},
11+
{ // Apply to `cjs`, `.mjs` and `.js` files.
12+
files: ["**/*.?([cm])js"]
13+
},
14+
{ // Apply to `.ts` files.
15+
files: ["**/*.ts"],
16+
languageOptions: {
17+
parser: typescript,
18+
parserOptions: {
19+
sourceType: "module"
20+
}
21+
}
22+
},
23+
{
24+
plugins: {
25+
"@stylistic": stylistic
26+
},
27+
rules: {
28+
"@stylistic/array-bracket-spacing": ["error", "never"],
29+
"@stylistic/arrow-parens": ["error", "always"],
30+
"@stylistic/arrow-spacing": "error",
31+
"@stylistic/block-spacing": ["error", "always"],
32+
"@stylistic/brace-style": ["error", "stroustrup"],
33+
"@stylistic/comma-dangle": ["error", "never"],
34+
"@stylistic/comma-spacing": ["error", { after: true, before: false }],
35+
"@stylistic/dot-location": ["error", "property"],
36+
"@stylistic/eol-last": ["error", "always"],
37+
"@stylistic/function-call-spacing": ["error", "never"],
38+
"@stylistic/indent": ["error", 2],
39+
"@stylistic/no-trailing-spaces": "error",
40+
"@stylistic/quotes": ["error", "double"],
41+
"@stylistic/semi": ["error", "always"]
42+
}
43+
},
44+
perfectionist.configs["recommended-alphabetical"]
45+
];

examples/_credentials.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ if (!process.env.BIOME_USERNAME || !process.env.BIOME_PASSWORD) {
88
}
99

1010
export const credentials = {
11-
username: process.env.BIOME_USERNAME,
12-
password: process.env.BIOME_PASSWORD
11+
password: process.env.BIOME_PASSWORD,
12+
username: process.env.BIOME_USERNAME
1313
};

examples/biome/profile.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { credentials } from "../_credentials";
2-
3-
import * as cas from "~/cas";
41
import * as biome from "~/biome";
2+
import * as cas from "~/cas";
3+
4+
import { credentials } from "../_credentials";
55

66
void async function main () {
77
// we authenticate to the CAS.

examples/cas/login.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { credentials } from "../_credentials";
21
import * as cas from "~/cas";
32

3+
import { credentials } from "../_credentials";
4+
45
void async function main () {
56
// 1. we authenticate to the CAS.
67
const cookie = await cas.login(credentials.username, credentials.password);

examples/cas/service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { credentials } from "../_credentials";
21
import * as cas from "~/cas";
32

3+
import { credentials } from "../_credentials";
4+
45
void async function main () {
56
// 1. we authenticate to the CAS.
67
const cookie = await cas.login(credentials.username, credentials.password);

0 commit comments

Comments
 (0)