Skip to content

Commit

Permalink
Merge branch 'release/2.4.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Sep 4, 2022
2 parents ecd5acc + e609d9c commit 1e7e3b1
Show file tree
Hide file tree
Showing 81 changed files with 4,377 additions and 7,893 deletions.
42 changes: 35 additions & 7 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,28 +1,56 @@
module.exports = {
extends: '@studiometa/eslint-config',
rules: {
'import/extensions': [ 'error', 'always', { ignorePackages: true }],
'import/extensions': ['error', 'always', { ignorePackages: true }],
'no-underscore-dangle': 'off',
'jsdoc/valid-types': 'off',
},
settings: {
'import/extensions': ['.js', '.mjs', '.jsx', '.ts', '.mts'],
},
overrides: [
{
files: [ '**/*.spec.js', '**/spec.js', 'packages/tests/**/*.js' ],
extends: [ 'plugin:jest/recommended', 'plugin:jest/style' ],
files: ['**/*.spec.js', '**/spec.js', 'packages/tests/**/*.js'],
extends: ['plugin:jest/recommended', 'plugin:jest/style'],
rules: {
'max-classes-per-file': 'off',
'jest/no-test-callback': 'off',
'require-jsdoc': 'off',
},
},
{
files: [ '**/*.ts' ],
files: ['**/*.ts', 'packages/js-toolkit/**/*.ts'],
parser: '@typescript-eslint/parser',
plugins: [ '@typescript-eslint' ],
extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended' ],
parserOptions: {
project: './tsconfig.json',
},
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'eslint-config-airbnb-typescript/base',
],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/indent': 'off',
'@typescript-eslint/brace-style': 'off',
'require-jsdoc': 'off',
'jsdoc/require-returns': 'off',
'jsdoc/require-param': 'off',
'import/extensions': 'off',
'@typescript-eslint/naming-convention': [
'warn',
{
selector: ['classProperty', 'classMethod'],
format: ['camelCase'],
leadingUnderscore: 'allowDouble',
trailingUnderscore: 'forbid',
},
],
},
},
{
files: [ 'packages/docs/**/*.js' ],
files: ['packages/docs/**/*.js'],
rules: {
'require-jsdoc': 'off',
},
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ jobs:
verbose: true

Export-Size:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- uses: antfu/export-size-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
build_script: node ./scripts/add-utils-export.js
paths: packages/js-toolkit
build_script: npm run build-for-export-size
paths: dist
5 changes: 4 additions & 1 deletion .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
module.exports = require('@studiometa/prettier-config');
module.exports = {
...require('@studiometa/prettier-config'),
trailingComma: 'all',
};
Loading

0 comments on commit 1e7e3b1

Please sign in to comment.