Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ trim_trailing_whitespace = true
indent_style = space
indent_size = 4

[{.eslintrc,*.json,.travis.yml}]
[{*.json,.travis.yml}]
indent_size = 2
90 changes: 0 additions & 90 deletions .eslintrc

This file was deleted.

35 changes: 22 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
name: Publish
name: On-release

on:
release:
types: [published]
release:
types: [published]

permissions:
id-token: write
contents: read

jobs:
publish:
if: ${{ !github.event.release.draft }}
runs-on: ubuntu-latest
steps:
- uses: DevExpress/testcafe-build-system/actions/publish-with-publish-please@main
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
with:
token: ${{ secrets.NPM_TOKEN }}
publish:
if: ${{ !github.event.release.draft }}
runs-on: ubuntu-latest
environment: npmjs
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.release.target_commitish }}

- uses: DevExpress/testcafe-build-system/actions/publish@main
with:
pre-publish-script: npm test
audit-level: critical
omit-dev-dependencies: true
version: ${{ github.event.release.tag_name }}
13 changes: 0 additions & 13 deletions .publishrc

This file was deleted.

2 changes: 1 addition & 1 deletion Gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path');
const { spawn } = require('child_process');
const gulp = require('gulp');
const eslint = require('gulp-eslint');
const eslint = require('gulp-eslint-new');
const del = require('del');


Expand Down
113 changes: 113 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
const globals = require('globals');
const noOnlyTests = require('eslint-plugin-no-only-tests');

module.exports = [
{
files: ['**/*.js'],
languageOptions: {
sourceType: 'module',
ecmaVersion: 2018,
globals: {
...globals.es2018,
...globals.node,
fixture: 'readonly',
},
},
rules: {
'no-alert': 'error',
'no-array-constructor': 'error',
'no-caller': 'error',
'no-catch-shadow': 'error',
'no-console': 'error',
'no-eval': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'error',
'no-implied-eval': 'error',
'no-iterator': 'error',
'no-label-var': 'error',
'no-labels': 'error',
'no-lone-blocks': 'error',
'no-loop-func': 'error',
'no-multi-str': 'error',
'no-native-reassign': 'error',
'no-new': 'error',
'no-new-func': 'error',
'no-new-object': 'error',
'no-new-wrappers': 'error',
'no-octal-escape': 'error',
'no-proto': 'error',
'no-return-assign': 'error',
'no-script-url': 'error',
'no-sequences': 'error',
'no-shadow': 'error',
'no-shadow-restricted-names': 'error',
'no-spaced-func': 'error',
'no-undef-init': 'error',
'no-unused-expressions': 'error',
'no-unused-vars': ['error', { ignoreRestSiblings : true, caughtErrorsIgnorePattern: '^_' }],
'no-with': 'error',
'camelcase': 'error',
'comma-spacing': 'error',
'consistent-return': 'error',
'eqeqeq': 'error',
'semi': 'error',
'semi-spacing': ['error', {'before': false, 'after': true}],
'space-infix-ops': 'error',
'space-unary-ops': ['error', { 'words': true, 'nonwords': false }],
'yoda': ['error', 'never'],
'brace-style': ['error', 'stroustrup', { 'allowSingleLine': false }],
'eol-last': 'error',
'indent': ['error', 4, { 'SwitchCase': 1 }],
'key-spacing': ['error', { 'align': 'value' }],
'max-nested-callbacks': ['error', 3],
'new-parens': 'error',
'newline-after-var': ['error', 'always'],
'no-lonely-if': 'error',
'no-multiple-empty-lines': ['error', { 'max': 2 }],
'no-nested-ternary': 'error',
'no-underscore-dangle': 'off',
'no-unneeded-ternary': 'error',
'object-curly-spacing': ['error', 'always'],
'operator-assignment': ['error', 'always'],
'quotes': ['error', 'single', 'avoid-escape'],
'keyword-spacing' : 'error',
'space-before-blocks': ['error', 'always'],
'prefer-const': 'error',
'no-path-concat': 'error',
'no-undefined': 'error',
'strict': 'off',
'curly': ['error', 'multi-or-nest'],
'dot-notation': 'off',
'no-else-return': 'error',
'one-var': ['error', 'never'],
'no-multi-spaces': ['error', {
'exceptions': {
'VariableDeclarator': true,
'AssignmentExpression': true
}
}],
'radix': 'error',
'no-extra-parens': 'error',
'new-cap': ['error', { 'capIsNew': false }],
'space-before-function-paren': ['error', 'always'],
'no-use-before-define' : ['error', 'nofunc'],
'handle-callback-err': 'off'
},
},
{
files: ['test/**/*.js'],
languageOptions: {
globals: {
...globals.browser,
...globals.mocha,
},
},
plugins: {
'no-only-tests': noOnlyTests,
},
rules: {
'no-unused-expressions': 'off',
'no-only-tests/no-only-tests': 'error'
},
},
];
Loading
Loading