-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ALL dependencies to latest versions (#78)
- All dependencies have been updated to their very latest versions. Some were dropped in favor of more modern ones (in particular, related to Babel 6.x -> 7.x). - Added ESLint Prettier rules. - Updated Prettier to 2.x, configured options, formatted code. - Fixed a bug that was causing a crash expecting `includes()` to be a method on `specifiedFocusTrapOptions`. - Added babel-jest to remove the need to first build the bundle prior to running tests. - Added format-check package script to check for formatting issues. - Added format and lint checks to `npm test`, along with unit tests. - Some lint errors were disabled, deferred to #77
- Loading branch information
1 parent
0d15605
commit 3977c86
Showing
19 changed files
with
6,787 additions
and
7,780 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"impliedStrict": true, | ||
"jsx": true | ||
}, | ||
"ecmaVersion": 6, | ||
"sourceType": "script" | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"prettier" // ALWAYS LAST: disable style rules that conflict with prettier | ||
], | ||
"env": { | ||
"es6": true, | ||
"node": true, | ||
"browser": true, | ||
"jest": true | ||
}, | ||
"rules": { | ||
"no-warning-comments": [ | ||
"error", | ||
{ | ||
"terms": ["DEBUG", "FIXME", "HACK"], | ||
"location": "start" | ||
} | ||
] | ||
}, | ||
"settings": { | ||
// eslint-plugin-react settings: a version needs to be specified, | ||
// here it's set to detect (default value) | ||
"react": { | ||
"version": "detect" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,70 @@ | ||
node_modules | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Typescript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# IDE files | ||
.vscode/ | ||
|
||
# Builds | ||
dist/ | ||
# demo-bundle.js generated when running the demo | ||
**/*-bundle.js | ||
dist | ||
|
||
# OS files | ||
.DS_Store | ||
.Thumbs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* eslint-env node */ | ||
|
||
module.exports = { | ||
arrowParens: 'always', | ||
bracketSpacing: true, | ||
endOfLine: 'lf', | ||
htmlWhitespaceSensitivity: 'strict', | ||
insertPragma: false, | ||
jsxBracketSameLine: false, | ||
jsxSingleQuote: false, | ||
printWidth: 80, | ||
proseWrap: 'never', | ||
quoteProps: 'as-needed', | ||
requirePragma: false, | ||
semi: true, | ||
singleQuote: true, | ||
tabWidth: 2, | ||
trailingComma: 'none', | ||
useTabs: false | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
presets: [ | ||
// NOTE: With no targets specified, @babel/preset-env will transform all | ||
// ECMAScript 2015+ code by default, which is the original preset prior | ||
// to upgrading to Babel 7 | ||
// @see https://babeljs.io/docs/en/babel-preset-env#targets | ||
'@babel/preset-env', | ||
'@babel/preset-react' | ||
], | ||
plugins: [ | ||
'@babel/plugin-proposal-class-properties' | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.