Skip to content

Commit 15d483a

Browse files
authored
Update dependencies. Closes #231 (#275)
1 parent 574d2c9 commit 15d483a

File tree

5 files changed

+1147
-896
lines changed

5 files changed

+1147
-896
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Install Node.js
1818
uses: actions/setup-node@v4
1919
with:
20-
node-version: 18.x
20+
node-version: 20.x
2121
- run: npm install
2222
- run: xvfb-run -a npm test
2323
if: runner.os == 'Linux'

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install Node.js
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: 18.x
19+
node-version: 20.x
2020

2121
- name: Install Dependencies
2222
run: npm ci

eslint.config.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
const typescriptEslint = require('@typescript-eslint/eslint-plugin');
2+
const typescriptParser = require('@typescript-eslint/parser');
3+
4+
module.exports = [
5+
{
6+
files: ['**/*.ts', '**/*.tsx'],
7+
languageOptions: {
8+
parser: typescriptParser,
9+
parserOptions: {
10+
ecmaVersion: 6,
11+
sourceType: 'module',
12+
},
13+
},
14+
plugins: {
15+
'@typescript-eslint': typescriptEslint,
16+
},
17+
rules: {
18+
'@typescript-eslint/naming-convention': [
19+
'warn',
20+
{
21+
selector: 'import',
22+
format: ['camelCase', 'PascalCase'],
23+
},
24+
],
25+
curly: 'warn',
26+
eqeqeq: 'warn',
27+
'no-throw-literal': 'warn',
28+
},
29+
},
30+
{
31+
ignores: ['out/**', 'dist/**', '**/*.d.ts', 'build/**'],
32+
},
33+
];

0 commit comments

Comments
 (0)