Skip to content

Commit 8b23598

Browse files
committed
Installed package from template: "@lunde/create-react-pkg"
0 parents  commit 8b23598

16 files changed

+1045
-0
lines changed

.babelrc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"presets": [
3+
"@babel/preset-react",
4+
[
5+
"@lunde/es",
6+
{
7+
"env": {
8+
"targets": {
9+
"node": "8"
10+
}
11+
},
12+
"typescript": false
13+
}
14+
]
15+
],
16+
"env": {
17+
"es": {
18+
"presets": [
19+
[
20+
"@lunde/es",
21+
{
22+
"env": {
23+
"modules": false,
24+
"targets": {
25+
"browsers": "> 2%"
26+
}
27+
},
28+
"typescript": false
29+
}
30+
]
31+
]
32+
}
33+
}
34+
}

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
/coverage
3+
/dist

.eslintrc

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"parser": "babel-eslint",
3+
"parserOptions": {
4+
"ecmaVersion": 2018,
5+
"sourceType": "module",
6+
"ecmaFeatures": {
7+
"jsx": true,
8+
"experimentalObjectRestSpread": true
9+
}
10+
},
11+
"extends": [
12+
"eslint:recommended",
13+
"plugin:react/recommended",
14+
"plugin:jest/recommended"
15+
],
16+
"plugins": [
17+
"jest",
18+
"react",
19+
"react-hooks"
20+
],
21+
"rules": {
22+
"no-console": "off",
23+
"no-prototype-builtins": "off",
24+
"react/no-children-prop": "off",
25+
"react/display-name": "off",
26+
"react/prop-types": [2, {"ignore": ["children"]}]
27+
},
28+
"settings": {
29+
"react": {
30+
"pragma": "React",
31+
"version": "detect"
32+
}
33+
},
34+
"env": {
35+
"browser": true,
36+
"node": true,
37+
"es6": true,
38+
"jest/globals": true
39+
},
40+
"globals": {
41+
"__DEV__": true
42+
},
43+
"overrides": [
44+
{
45+
"files": ["**/test.js", "**/*.test.js"],
46+
"settings": {
47+
"import/resolver": {
48+
"jest": {
49+
"jestConfigFile": "./jest.config.js"
50+
}
51+
}
52+
}
53+
}
54+
]
55+
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
dist
3+
coverage

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
/public
3+
/coverage

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": false,
5+
"singleQuote": true,
6+
"bracketSpacing": false
7+
}

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
sudo: false
2+
language: node_js
3+
cache:
4+
yarn: true
5+
directories:
6+
- node_modules
7+
notifications:
8+
email: false
9+
node_js: '10'
10+
install: yarn install
11+
script: yarn validate
12+
after_script: npx codecov@3
13+
branches:
14+
only:
15+
- master

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Jared Lunde
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[![bundlephobia](https://img.shields.io/bundlephobia/minzip/focus?style=plastic)](https://bundlephobia.com/result?p=focus)
2+
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://jaredlunde.mit-license.org/)
3+
4+
---
5+
6+
# focus
7+
8+
A React component for adding accessible focus styles to elements when using keyboard navigation
9+
10+
## Installation
11+
12+
#### `npm i focus`
13+
14+
#### `yarn add focus`
15+
16+
## LICENSE
17+
18+
MIT

jest.config.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const path = require('path')
2+
3+
module.exports = {
4+
// testEnvironment: 'jest-environment-jsdom',
5+
moduleDirectories: [
6+
'node_modules',
7+
path.join(__dirname, 'src'),
8+
path.join(__dirname, 'test'),
9+
],
10+
// moduleNameMapper: {},
11+
setupFilesAfterEnv: [require.resolve('./test/setup.js')],
12+
snapshotResolver: require.resolve('./test/resolve-snapshot.js'),
13+
collectCoverageFrom: ['**/src/**/*.{js,jsx}'],
14+
// coverageThreshold: {
15+
// global: {
16+
// statements:17,
17+
// branches: 4,
18+
// lines: 17,
19+
// functions: 20
20+
// }
21+
// },
22+
globals: {
23+
__DEV__: true,
24+
},
25+
}

0 commit comments

Comments
 (0)