Skip to content

Commit 5b8bd49

Browse files
authored
Merge pull request #304 from frouriojs/develop
release v1.1.0
2 parents b487b47 + f69d233 commit 5b8bd49

File tree

40 files changed

+3342
-6319
lines changed

40 files changed

+3342
-6319
lines changed

.eslintignore

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

.github/workflows/nodejs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
node-version: [16, 18, 20]
11+
node-version: [18, 20]
1212
os: [ubuntu-latest]
1313
include:
1414
- os: windows-latest
15-
node-version: 18
15+
node-version: 20
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: setup Node.js ${{ matrix.node-version }}
@@ -41,13 +41,13 @@ jobs:
4141
- name: Use Node.js
4242
uses: actions/setup-node@v3
4343
with:
44-
node-version: 18
44+
node-version: 20
4545
registry-url: "https://registry.npmjs.org"
4646
- uses: actions/cache@v2
4747
id: npm-cache
4848
with:
4949
path: "node_modules"
50-
key: ${{ runner.os }}-node-v18-npm-${{ hashFiles('package-lock.json') }}
50+
key: ${{ runner.os }}-node-v20-npm-${{ hashFiles('package-lock.json') }}
5151
- run: npm install
5252
if: steps.npm-cache.outputs.cache-hit != 'true'
5353
- run: npm run build

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
node_modules
22
dist
3-
coverage
3+
tmp

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
node_modules
22
dist
3-
coverage
43
$*.ts

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 100,
3+
"singleQuote": true,
4+
"arrowParens": "avoid",
5+
"plugins": ["prettier-plugin-organize-imports"]
6+
}

eslint.config.mjs

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import js from '@eslint/js';
2+
import gitignore from 'eslint-config-flat-gitignore';
3+
import prettierConfig from 'eslint-config-prettier';
4+
import globals from 'globals';
5+
import tseslint from 'typescript-eslint';
6+
7+
export default tseslint.config(
8+
{ files: ['**/*.(ts,js)'] },
9+
gitignore({ files: '.prettierignore' }),
10+
js.configs.recommended,
11+
...tseslint.configs.recommended,
12+
{
13+
languageOptions: {
14+
globals: {
15+
...globals.browser,
16+
...globals.node,
17+
...globals.es2020,
18+
},
19+
},
20+
rules: {
21+
eqeqeq: 'error',
22+
'no-param-reassign': 'error',
23+
'object-shorthand': ['error', 'always'],
24+
'prefer-template': 'error',
25+
'no-empty': 'off',
26+
'@typescript-eslint/consistent-type-imports': 'error',
27+
'@typescript-eslint/explicit-module-boundary-types': 'off',
28+
'@typescript-eslint/no-non-null-assertion': 'error',
29+
'@typescript-eslint/ban-ts-comment': 'off',
30+
'@typescript-eslint/ban-types': 'off',
31+
'@typescript-eslint/no-explicit-any': 'off',
32+
'@typescript-eslint/no-var-requires': 'off',
33+
'@typescript-eslint/no-unused-vars': [
34+
'warn',
35+
{
36+
argsIgnorePattern: '^_',
37+
varsIgnorePattern: '^_',
38+
caughtErrorsIgnorePattern: '^_',
39+
destructuredArrayIgnorePattern: '^_',
40+
},
41+
],
42+
},
43+
},
44+
prettierConfig,
45+
);

jest.config.ts

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

0 commit comments

Comments
 (0)