-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2317 from demergent-labs/update_package_json
update versions
- Loading branch information
Showing
41 changed files
with
8,438 additions
and
26,770 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
#!/usr/bin/env bash | ||
|
||
npx lint-staged --allow-empty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import eslint from '@eslint/js'; | ||
import tseslintParser from '@typescript-eslint/parser'; | ||
import prettier from 'eslint-config-prettier'; | ||
import simpleImportSort from 'eslint-plugin-simple-import-sort'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
tseslint.configs.recommended, | ||
prettier, | ||
{ | ||
ignores: [ | ||
'docs/**', | ||
'the_azle_book/**', | ||
'tests/property/candid_rpc/**/src/**', | ||
'**/.azle/**', | ||
'**/.dfx/**', | ||
'**/declarations/**', | ||
'**/dfx_generate/**', | ||
'**/dfx_generated/**', | ||
'**/dist/**', | ||
'**/node_modules/**', | ||
'**/run_time_errors/**', | ||
'**/target/**', | ||
'**/webpack.config.js' | ||
] | ||
}, | ||
{ | ||
files: ['**/*.{js,mjs,cjs,ts}'], | ||
languageOptions: { | ||
parser: tseslintParser, | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module' | ||
} | ||
}, | ||
plugins: { | ||
'simple-import-sort': simpleImportSort | ||
}, | ||
rules: { | ||
'simple-import-sort/exports': 'error', | ||
'simple-import-sort/imports': 'error', | ||
'func-style': [ | ||
'error', | ||
'declaration', | ||
{ allowArrowFunctions: true } | ||
], | ||
'array-callback-return': 'error', | ||
'no-template-curly-in-string': 'error', | ||
'prefer-template': 'error', | ||
'no-param-reassign': 'error', | ||
'@typescript-eslint/prefer-for-of': 'error', | ||
'prefer-arrow-callback': 'error', | ||
'no-var': 'error', | ||
'@typescript-eslint/explicit-function-return-type': ['error'], | ||
eqeqeq: 'error', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
argsIgnorePattern: '^_', | ||
caughtErrorsIgnorePattern: '^_', | ||
destructuredArrayIgnorePattern: '^_', | ||
varsIgnorePattern: '^_' | ||
} | ||
], | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'prefer-const': 'off', // For azle let is used to indicate mutability not only re-assignability | ||
'no-undef': 'off', // TS compiler handles this for us | ||
'@typescript-eslint/no-explicit-any': 'off' // TODO https://github.com/demergent-labs/azle/issues/1737 | ||
} | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.