Skip to content

Commit c12b9d0

Browse files
authored
chore: added support for React Router 6 (#260)
1 parent 192f75f commit c12b9d0

24 files changed

+15314
-500
lines changed

.babelrc

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2-
"presets": ["es2015-loose", "stage-1", "react"],
3-
"plugins": ["add-module-exports"]
4-
}
2+
"presets": [
3+
"@babel/env",
4+
"@babel/react"
5+
],
6+
"plugins": [
7+
"@babel/plugin-proposal-object-rest-spread"
8+
]
9+
}

.eslintrc

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
{
22
"extends": "airbnb",
3-
"parser": "babel-eslint"
3+
"parser": "babel-eslint",
4+
"rules": {
5+
"react/jsx-filename-extension": "off",
6+
"import/no-extraneous-dependencies": "off",
7+
"react/jsx-props-no-spreading": "off",
8+
"max-len":"off",
9+
"no-nested-ternary":"off"
10+
},
11+
"env": {
12+
"browser": true,
13+
"node": true
14+
}
415
}

.github/workflows/build.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Node.js CI
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Use Node.js
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: 14.x
16+
- run: npm ci
17+
- run: npm run build
18+
- run: npm test

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ amd
66
lib
77
tmp-bower-repo
88
.idea
9-
package-lock.json

.travis.yml

-22
This file was deleted.

karma.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const webpack = require('webpack');
22

3-
module.exports = config => {
3+
module.exports = (config) => {
44
const { env } = process;
55

66
const isCi = env.CONTINUOUS_INTEGRATION === 'true';

0 commit comments

Comments
 (0)