Skip to content

Commit

Permalink
Merge branch 'master' into readme-reupholster
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 committed Jun 30, 2021
2 parents 9220001 + 71bed37 commit ffa9dbf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 23 deletions.
15 changes: 5 additions & 10 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,21 @@ module.exports = {
commonjs: true,
es6: true
},
extends: [
'standard',
'prettier'
],
extends: ['standard', 'prettier'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parserOptions: {
ecmaVersion: 2018
},
ignorePatterns: ['assets/', 'dist/', 'node_modules/'],
ignorePatterns: ['assets/', 'dist/', 'node_modules/'],
rules: {
'camelcase': [1, {'properties': 'never'}],
camelcase: [1, { properties: 'never' }],
'prettier/prettier': 'error'
},
plugins: [
'prettier'
],
plugins: ['prettier'],
env: {
jest: true
}
}
};
5 changes: 1 addition & 4 deletions .github/workflows/gitlab.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: GitLab
on:
workflow_dispatch:
pull_request:
push:
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
TEST_GITLAB_SHA: c4c13286e78dc252dd2611f31a755f10d343fbd4
TEST_BBCLOUD_TOKEN: ${{ secrets.TEST_BBCLOUD_TOKEN }}
TEST_BBCLOUD_REPO: https://bitbucket.org/iterative-ai/cml-qa-tests-dummy
TEST_BBCLOUD_SHA: 9bb9131ce0af294fe1c6eedca1f2bce3983e80bd
TEST_BBCLOUD_SHA: b511535a89f76d3d311b1c15e3e712b15c0b94e3
packages:
needs: [lint, test]
runs-on: ubuntu-latest
Expand Down
6 changes: 1 addition & 5 deletions .restyled.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
restylers:
- name: prettier
arguments: ['--write']
include:
- 'src/**/*.js'
- 'bin/**/*.js'
- 'assets/*.json'
- './**/*.{yaml,yml,md,json}'
include: ['**/*.{js,json,md,yaml,yml}']
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"cml-pr": "bin/cml-pr.js"
},
"scripts": {
"lintfix": "eslint --fix ./",
"lintfix": "eslint --fix ./ && prettier --write '**/*.{js,json,md,yaml,yml}'",
"lint": "eslint ./",
"test": "jest --passWithNoTests",
"do_snapshots": "jest --updateSnapshot"
Expand All @@ -51,9 +51,10 @@
},
"lint-staged": {
"*.js": [
"eslint --fix"
"eslint --fix",
"prettier --write"
],
"*.{md,yaml,yml}": [
"*.{json,md,yaml,yml}": [
"prettier --write"
]
},
Expand Down

0 comments on commit ffa9dbf

Please sign in to comment.