Skip to content
This repository was archived by the owner on May 15, 2022. It is now read-only.

Commit 815752f

Browse files
Merge pull request #33 from tim-soft/rollup-build
Upgrade Webpack to Rollup, replace deprecated componentWillReceiveProps, linting fixes
2 parents f6ea20b + a1cd6a5 commit 815752f

Some content is hidden

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

107 files changed

+14737
-53267
lines changed

.babelrc

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

.babelrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Configure Babel for Rollup
3+
*
4+
* @see https://babeljs.io/docs/en/options
5+
*/
6+
module.exports = {
7+
presets: ['@babel/env', '@babel/react'],
8+
plugins: [
9+
['@babel/plugin-proposal-class-properties'],
10+
['@babel/plugin-proposal-object-rest-spread'],
11+
['transform-react-remove-prop-types', { removeImport: true }],
12+
['@babel/plugin-transform-runtime', { regenerator: false }]
13+
]
14+
};

.eslintrc.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/**
2+
* Configure ESLint
3+
*
4+
* @see https://eslint.org/docs/user-guide/configuring
5+
*/
6+
module.exports = {
7+
parser: 'babel-eslint',
8+
env: {
9+
browser: true,
10+
es6: true,
11+
jest: true
12+
},
13+
extends: ['airbnb', 'prettier', 'prettier/react', 'plugin:import/warnings'],
14+
plugins: ['prettier', 'jsx-a11y', 'import'],
15+
globals: {
16+
document: true,
17+
window: true
18+
},
19+
parserOptions: {
20+
sourceType: 'module'
21+
},
22+
rules: {
23+
'react/forbid-prop-types': 0,
24+
'react/jsx-filename-extension': 0,
25+
'react/react-in-jsx-scope': 0,
26+
'class-methods-use-this': 0,
27+
'no-unused-expressions': ['error', { allowTaggedTemplates: true }],
28+
'react/no-unused-prop-types': 0,
29+
'consistent-return': 0,
30+
'jsx-a11y/anchor-is-valid': 0,
31+
'jsx-a11y/label-has-associated-control': 0,
32+
'prettier/prettier': 'error',
33+
'react/destructuring-assignment': 0,
34+
'react/static-property-placement': 0,
35+
'react/jsx-props-no-spreading': 0
36+
}
37+
};

.eslintrc.json

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

.gitignore

Lines changed: 20 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,25 @@
1-
# Build ...
2-
node_modules
3-
npm-debug.log
4-
tmp
5-
6-
# Created by https://www.gitignore.io
7-
8-
### OSX ###
9-
.DS_Store
10-
.AppleDouble
11-
.LSOverride
12-
13-
# Icon must end with two \r
14-
Icon
15-
16-
17-
# Thumbnails
18-
._*
19-
20-
# Files that might appear in the root of a volume
21-
.DocumentRevisions-V100
22-
.fseventsd
23-
.Spotlight-V100
24-
.TemporaryItems
25-
.Trashes
26-
.VolumeIcon.icns
27-
28-
# Directories potentially created on remote AFP share
29-
.AppleDB
30-
.AppleDesktop
31-
Network Trash Folder
32-
Temporary Items
33-
.apdisk
34-
35-
36-
### Vim ###
37-
[._]*.s[a-w][a-z]
38-
[._]s[a-w][a-z]
39-
*.un~
40-
Session.vim
41-
.netrwhist
42-
*~
43-
44-
45-
### SublimeText ###
46-
# cache files for sublime text
47-
*.tmlanguage.cache
48-
*.tmPreferences.cache
49-
*.stTheme.cache
50-
51-
# workspace files are user-specific
52-
*.sublime-workspace
531

54-
# project files should be checked into the repository, unless a significant
55-
# proportion of contributors will probably not be using SublimeText
56-
# *.sublime-project
2+
# See https://help.github.com/ignore-files/ for more about ignoring files.
573

58-
# sftp configuration file
59-
sftp-config.json
60-
61-
62-
### Node ###
63-
# Logs
64-
logs
65-
*.log
66-
67-
# Runtime data
68-
pids
69-
*.pid
70-
*.seed
71-
72-
# Directory for instrumented libs generated by jscoverage/JSCover
73-
lib-cov
74-
75-
# Coverage directory used by tools like istanbul
76-
coverage
77-
78-
# node-waf configuration
79-
.lock-wscript
80-
81-
# Compiled binary addons (http://nodejs.org/api/addons.html)
82-
83-
# Dependency directory
84-
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
4+
# dependencies
855
node_modules
866

7+
# builds
8+
coverage
9+
build
10+
dist
11+
.rpt2_cache
12+
.next
8713

88-
### Linux ###
89-
*~
90-
91-
# KDE directory preferences
92-
.directory
93-
94-
# Linux trash folder which might appear on any partition or disk
95-
.Trash-*
96-
97-
.idea
14+
# misc
15+
.DS_Store
16+
.env
17+
.env.local
18+
.env.development.local
19+
.env.test.local
20+
.env.production.local
21+
.vscode
22+
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*

.npmignore

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

.prettierignore

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

.prettierrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* Configure Prettier
3+
*
4+
* https://prettier.io/docs/en/configuration.html#basic-configuration
5+
*/
6+
module.exports = {
7+
singleQuote: true,
8+
semi: true
9+
};

.stylelintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* Configure Stylelint
3+
*
4+
* @see https://github.com/stylelint/stylelint-config-recommended
5+
*/
6+
module.exports = {
7+
extends: ['stylelint-config-recommended']
8+
};

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: node_js
2+
node_js:
3+
- 'node'
4+
- 'lts/*'
5+
cache:
6+
directories:
7+
- ~/.npm
8+
install: npm install
9+
script:
10+
- npm run build
11+
- npm run test
12+
branches:
13+
only: master
14+
notifications:
15+
email: false

0 commit comments

Comments
 (0)