Skip to content

Commit

Permalink
Merge pull request #925 from Yoctol/release/1.5
Browse files Browse the repository at this point in the history
Release/1.5
  • Loading branch information
chentsulin authored Sep 13, 2021
2 parents 31668f3 + a90f674 commit 21447ea
Show file tree
Hide file tree
Showing 255 changed files with 18,797 additions and 8,762 deletions.
2 changes: 0 additions & 2 deletions .dockerignore

This file was deleted.

36 changes: 26 additions & 10 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,45 @@
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'yoctol-base',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
],
extends: ['yoctol-base', 'plugin:@typescript-eslint/recommended', 'prettier'],
env: {
browser: true,
node: true,
jest: true,
jasmine: true,
},
plugins: ['@typescript-eslint'],
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
rules: {
'class-methods-use-this': 'off',
'consistent-return': 'off',
'global-require': 'off',
'no-param-reassign': 'off',
'no-undef': 'off',
'prefer-destructuring': 'off',

camelcase: 'warn',

'import/extensions': 'off',

'prettier/prettier': [
'error',
{
trailingComma: 'es5',
singleQuote: true,
},
],

'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-var-requires': 'warn',
'@typescript-eslint/ban-types': 'warn',
'@typescript-eslint/no-non-null-assertion': 'off',

'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': 'error',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
},
overrides: [
{
Expand All @@ -41,22 +50,29 @@ module.exports = {
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
globals: {
MessengerExtensions: true,
},
},
{
files: ['packages/**/__tests__/**/*.ts'],
rules: {
'import/no-extraneous-dependencies': 'off',
},
},
{
files: ['packages/**/*.ts'],
rules: {
'tsdoc/syntax': 'warn',
},
},
],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
typescript: {},
},
},
globals: {
MessengerExtensions: true,
},
};
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
Loading

0 comments on commit 21447ea

Please sign in to comment.