Skip to content

Commit 199eed2

Browse files
authored
Merge pull request #2886 from dequelabs/release-4.2
chore(release): version 4.2.0
2 parents e44aecf + 207f352 commit 199eed2

1,551 files changed

Lines changed: 129509 additions & 111079 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 55 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ set_npm_auth: &set_npm_auth
2323
restore_dependency_cache_unix: &restore_dependency_cache_unix
2424
restore_cache:
2525
keys:
26-
- v8-cache-unix-{{ checksum "package.json" }}
27-
- v8-cache-unix-
26+
- v9-cache-unix-{{ checksum "package-lock.json" }}
27+
- v9-cache-unix-
2828

2929
restore_dependency_cache_win: &restore_dependency_cache_win
3030
restore_cache:
3131
keys:
32-
- v8-cache-win-{{ checksum "package.json" }}
33-
- v8-cache-win-
32+
- v9-cache-win-{{ checksum "package-lock.json" }}
33+
- v9-cache-win-
3434

3535
jobs:
3636
# Fetch and cache dependencies.
@@ -43,7 +43,7 @@ jobs:
4343
- <<: *restore_dependency_cache_unix
4444
- run: npm ci
4545
- save_cache:
46-
key: v8-cache-unix-{{ checksum "package.json" }}
46+
key: v9-cache-unix-{{ checksum "package-lock.json" }}
4747
paths:
4848
- node_modules
4949
dependencies_win:
@@ -55,7 +55,7 @@ jobs:
5555
- <<: *restore_dependency_cache_win
5656
- run: npm ci
5757
- save_cache:
58-
key: v8-cache-win-{{ checksum "package.json" }}
58+
key: v9-cache-win-{{ checksum "package-lock.json" }}
5959
paths:
6060
- node_modules
6161

@@ -75,7 +75,10 @@ jobs:
7575
steps:
7676
- checkout
7777
- <<: *restore_dependency_cache_unix
78-
- run: npm run test
78+
- run: npm run build
79+
- run: npm run test -- --browsers Chrome,Firefox
80+
- run: npm run test:integration:chrome
81+
- run: npm run test:integration:firefox
7982

8083
# Run the test suite in IE in windows
8184
test_win:
@@ -85,18 +88,14 @@ jobs:
8588
- checkout
8689
# npm i or restore cache
8790
- <<: *restore_dependency_cache_win
91+
- run: npm run build
92+
- run: npm run test -- --browsers IE
8893
# install selenium
8994
- run: |
9095
choco install selenium-ie-driver --version 3.141.5
9196
export PATH=/c/tools/selenium:$PATH
9297
echo $PATH
93-
# build `axe`
94-
- run: npm run build
95-
# get fixtures ready for running tests
96-
- run: npx grunt testconfig
97-
- run: npx grunt fixture
98-
# run IE webdriver tests
99-
- run: npx grunt connect test-webdriver:ie
98+
- run: npm run test:integration:ie
10099

101100
# Run examples under `doc/examples`
102101
test_examples:
@@ -108,6 +107,16 @@ jobs:
108107
- run: npm run build
109108
- run: npm run test:examples
110109

110+
# Run ACT test cases
111+
test_act:
112+
<<: *defaults
113+
<<: *unix_box
114+
steps:
115+
- checkout
116+
- <<: *restore_dependency_cache_unix
117+
- run: npm run build
118+
- run: npm run test:act
119+
111120
# Test locale files
112121
test_locales:
113122
<<: *defaults
@@ -118,6 +127,20 @@ jobs:
118127
- run: npm run build
119128
- run: npm run test:locales
120129

130+
# Run the test suite for nightly builds.
131+
test_nightly:
132+
<<: *defaults
133+
<<: *unix_box
134+
steps:
135+
- checkout
136+
- <<: *restore_dependency_cache_unix
137+
- run: npm run build
138+
# install Chrome Canary
139+
- run: |
140+
wget https://dl.google.com/linux/direct/google-chrome-unstable_current_amd64.deb
141+
sudo apt install ./google-chrome-unstable_current_amd64.deb
142+
- run: npm run test -- --browsers ChromeCanary,FirefoxNightly
143+
121144
# Test api docs can be built
122145
build_api_docs:
123146
<<: *defaults
@@ -155,6 +178,7 @@ jobs:
155178
- checkout
156179
- <<: *set_npm_auth
157180
- <<: *restore_dependency_cache_unix
181+
- run: npm run build
158182
- run: npm run next-release
159183
- run: .circleci/verify-release.sh
160184
- run: npm publish --tag=next
@@ -228,6 +252,9 @@ workflows:
228252
- test_examples:
229253
requires:
230254
- test_unix
255+
- test_act:
256+
requires:
257+
- test_unix
231258
- test_locales:
232259
requires:
233260
- test_unix
@@ -296,3 +323,17 @@ workflows:
296323
- github_release:
297324
requires:
298325
- release
326+
nightly:
327+
triggers:
328+
- schedule:
329+
# run at 00:00 UTC every day
330+
cron: "0 0 * * *"
331+
filters:
332+
branches:
333+
only:
334+
- develop
335+
jobs:
336+
- dependencies_unix
337+
- test_nightly:
338+
requires:
339+
- dependencies_unix

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
**/node_modules/*
2+
**/tmp/*
23

34
build/tasks/aria-supported.js
45

.eslintrc

Lines changed: 0 additions & 84 deletions
This file was deleted.

.eslintrc.js

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
module.exports = {
2+
extends: ['prettier'],
3+
parserOptions: {
4+
ecmaVersion: 9
5+
},
6+
env: {
7+
node: true,
8+
es6: true
9+
},
10+
globals: {
11+
axe: true
12+
},
13+
rules: {
14+
'no-bitwise': 2,
15+
camelcase: 2,
16+
curly: 2,
17+
eqeqeq: 2,
18+
'guard-for-in': 2,
19+
'wrap-iife': [2, 'any'],
20+
'no-use-before-define': [
21+
2,
22+
{
23+
functions: false
24+
}
25+
],
26+
'new-cap': 2,
27+
'no-caller': 2,
28+
'no-empty': 2,
29+
'no-new': 2,
30+
'no-plusplus': 0,
31+
'no-undef': 2,
32+
'no-unused-vars': 2,
33+
strict: 0,
34+
'max-params': [2, 6],
35+
'max-depth': [2, 5],
36+
'max-len': 0,
37+
semi: 0,
38+
'no-cond-assign': 0,
39+
'no-debugger': 2,
40+
'no-eq-null': 0,
41+
'no-eval': 2,
42+
'no-unused-expressions': 0,
43+
'block-scoped-var': 0,
44+
'no-iterator': 0,
45+
'linebreak-style': 0,
46+
'no-loop-func': 0,
47+
'no-multi-str': 0,
48+
'no-proto': 0,
49+
'no-script-url': 0,
50+
'dot-notation': 2,
51+
'no-new-func': 0,
52+
'no-new-wrappers': 0,
53+
'no-restricted-syntax': [
54+
'error',
55+
{
56+
selector: 'MemberExpression[property.name=tagName]',
57+
message: "Don't use node.tagName, use node.nodeName instead."
58+
},
59+
{
60+
// node.attributes can be clobbered so is unsafe to use
61+
// @see https://github.com/dequelabs/axe-core/pull/1432
62+
selector:
63+
'MemberExpression[object.name=node][property.name=attributes]',
64+
message:
65+
"Don't use node.attributes, use node.hasAttributes() or axe.utils.getNodeAttributes(node) instead."
66+
}
67+
]
68+
},
69+
overrides: [
70+
{
71+
files: ['lib/**/*.js'],
72+
parserOptions: {
73+
sourceType: 'module'
74+
},
75+
env: {
76+
browser: true,
77+
es6: true
78+
},
79+
globals: {
80+
window: true,
81+
document: true
82+
},
83+
rules: {
84+
'func-names': [2, 'as-needed'],
85+
'prefer-const': 2
86+
}
87+
},
88+
{
89+
files: ['test/**/*.js'],
90+
parserOptions: {
91+
ecmaVersion: 5
92+
},
93+
env: {
94+
browser: true,
95+
es6: false,
96+
mocha: true
97+
},
98+
globals: {
99+
assert: true,
100+
helpers: true,
101+
checks: true,
102+
sinon: true
103+
},
104+
plugins: ['mocha-no-only'],
105+
rules: {
106+
'new-cap': 0,
107+
'no-use-before-define': 0,
108+
'mocha-no-only/mocha-no-only': ['error']
109+
}
110+
}
111+
]
112+
};

.github/ISSUE_TEMPLATE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ Thanks for reporting an issue to axe-core. Please provide all necessary info to
44
If you’re reporting a bug, include a description of the issue and a page or code snippet where it can be reproduced. Please make sure you have tested this with the latest version of axe-core. When proposing a new rule, please use our rule template: https://github.com/dequelabs/axe-core/blob/develop/doc/rule-proposal.md
55
66
Describe what the desired behavior would be, and how it applies to axe-core's "Accessibility Supported" policy: https://github.com/dequelabs/axe-core/blob/develop/doc/accessibility-supported.md
7+
8+
Issues can be reported for the axe Extension, the axe Linter (VS Code, IntelliJ) as well as the axe-core npm library.
79
-->
810

11+
Product: <<axe-core | axe Extension | axe Linter>>
12+
913
Expectation: << Describe what you expect the product to do >>
1014

1115
Actual: << Describe what the product actually does >>

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
11
<< Describe the changes >>
22

33
Closes issue:
4-
5-
## Reviewer checks
6-
7-
**Required fields, to be filled out by PR reviewer(s)**
8-
9-
- [ ] Follows the commit message policy, appropriate for next version
10-
- [ ] Code is reviewed for security

.github/review.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Require that merge commits have security review performed on them.
2+
review_merges: true
3+
4+
approve_button_tooltip: No security or PR title concerns
5+
decline_button_tooltip: Found security or PR title concerns
6+
7+
pending_description: Pull request not yet approved for security and a correct PR title
8+
pending_summary: >
9+
Awaiting security and PR title review. To approve this pull request, please click the "Approve" button above.
10+
You may **not** review your own Pull Request.
11+
12+
approved_description: Pull request has been reviewed and approved for security and a correct PR title
13+
approved_summary: Pull request has been approved for security and having an incorrect PR title by @${approver}.
14+
15+
declined_description: Pull request contains security concerns or has an incorrect PR title
16+
declined_summary: Commit was reviewed and declined for security and/or an incorrect PR title by @${approver}.

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"printWidth": 80,
3-
"useTabs": true,
3+
"useTabs": false,
4+
"tabWidth": 2,
45
"semi": true,
56
"singleQuote": true,
67
"trailingComma": "none",

0 commit comments

Comments
 (0)