Skip to content

Commit

Permalink
chore: Expand ESLint glob to all files (#93)
Browse files Browse the repository at this point in the history
Ran with `--fix` to address minor formatting in Flow file

Co-authored-by: J. Renée Beach <splendidnoise@gmail.com>
  • Loading branch information
nschonni and jessebeach committed Dec 31, 2020
1 parent cf56e0c commit a7506ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions flow/aria.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ type ARIAPropertyDefinition = {
| 'token'
| 'tokenlist'
| 'tristate',
values? : Array<string | boolean>,
values?: Array<string | boolean>,
allowundefined?: boolean,
};

Expand Down Expand Up @@ -335,22 +335,18 @@ type ARIARoleRelationConcept = {
attributes?: Array<ARIARoleRelationConceptAttribute>,
// These constraints are drawn from the mapping between ARIA and HTML:
// https://www.w3.org/TR/html-aria
constraints?: Array<
'direct descendant of document'
constraints?: Array<'direct descendant of document'
| 'direct descendant of ol, ul or menu'
| 'direct descendant of details element with the open attribute defined'
| 'descendant of table'
>,
| 'descendant of table'>,
};

type ARIARoleRelationConceptAttribute = {
name: string,
value?: string | number,
// These constraints are drawn from the mapping between ARIA and HTML:
// https://www.w3.org/TR/html-aria
constraints?: Array<
'undefined' // The attribute does not exist on the node: <a>
constraints?: Array<'undefined' // The attribute does not exist on the node: <a>
| 'set' // The attribute has a value: <a b="c">
| '>1'
>,
| '>1'>,
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"build": "rimraf lib && babel src --out-dir lib",
"flow": "flow; test $? -eq 0 -o $? -eq 2",
"lint": "eslint --config .eslintrc src __tests__",
"lint": "eslint .",
"lint:fix": "npm run lint -- --fix",
"pretest": "npm run lint:fix && npm run flow",
"test": "npm run jest",
Expand Down

0 comments on commit a7506ad

Please sign in to comment.