Skip to content

Commit

Permalink
Merge pull request #304 from frouriojs/develop
Browse files Browse the repository at this point in the history
release v1.1.0
  • Loading branch information
solufa authored Jul 21, 2024
2 parents b487b47 + f69d233 commit 5b8bd49
Show file tree
Hide file tree
Showing 40 changed files with 3,342 additions and 6,319 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16, 18, 20]
node-version: [18, 20]
os: [ubuntu-latest]
include:
- os: windows-latest
node-version: 18
node-version: 20
steps:
- uses: actions/checkout@v3
- name: setup Node.js ${{ matrix.node-version }}
Expand Down Expand Up @@ -41,13 +41,13 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
registry-url: "https://registry.npmjs.org"
- uses: actions/cache@v2
id: npm-cache
with:
path: "node_modules"
key: ${{ runner.os }}-node-v18-npm-${{ hashFiles('package-lock.json') }}
key: ${{ runner.os }}-node-v20-npm-${{ hashFiles('package-lock.json') }}
- run: npm install
if: steps.npm-cache.outputs.cache-hit != 'true'
- run: npm run build
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
dist
coverage
tmp
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules
dist
coverage
$*.ts
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"printWidth": 100,
"singleQuote": true,
"arrowParens": "avoid",
"plugins": ["prettier-plugin-organize-imports"]
}
45 changes: 45 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import js from '@eslint/js';
import gitignore from 'eslint-config-flat-gitignore';
import prettierConfig from 'eslint-config-prettier';
import globals from 'globals';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{ files: ['**/*.(ts,js)'] },
gitignore({ files: '.prettierignore' }),
js.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.es2020,
},
},
rules: {
eqeqeq: 'error',
'no-param-reassign': 'error',
'object-shorthand': ['error', 'always'],
'prefer-template': 'error',
'no-empty': 'off',
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
},
],
},
},
prettierConfig,
);
13 changes: 0 additions & 13 deletions jest.config.ts

This file was deleted.

Loading

0 comments on commit 5b8bd49

Please sign in to comment.