Skip to content

Commit d914a27

Browse files
committed
Cleanup
1 parent ef85d5b commit d914a27

File tree

15 files changed

+5591
-2505
lines changed

15 files changed

+5591
-2505
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"plugins": ["transform-object-rest-spread"]
2+
"presets": ["@babel/typescript", ["@babel/env", { "modules": false }]]
33
}

.eslintrc.js

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

.eslintrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": ["airbnb", "prettier", "plugin:node/recommended"],
3+
"plugins": ["prettier"],
4+
"rules": {
5+
"prettier/prettier": "error",
6+
"no-unused-vars": "warn",
7+
"no-console": "off",
8+
"func-names": "off",
9+
"no-process-exit": "off",
10+
"object-shorthand": "off",
11+
"class-methods-use-this": "off"
12+
}
13+
}

.prettierrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 80,
3+
"singleQuote": true,
4+
"arrowParens": "avoid",
5+
"trailingComma": "all"
6+
}

config/development.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module.exports = {
2-
inject: {
3-
CDN_URL: 'http://localhost:3000/',
4-
CONTENT_SECURITY_POLICY: "script-src 'self' http://localhost:3000; object-src 'self'",
5-
}
2+
inject: {
3+
CDN_URL: 'http://localhost:3000/',
4+
},
65
};

config/paths.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const path = require('path');
22

33
module.exports = {
4-
src: path.resolve(__dirname, '../src'),
5-
index: path.resolve(__dirname, '../src/index.js'),
6-
build: path.resolve(__dirname, '../build')
4+
src: path.resolve(__dirname, '../src'),
5+
index: path.resolve(__dirname, '../src/index.ts'),
6+
build: path.resolve(__dirname, '../build'),
77
};

config/production.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module.exports = {
2-
inject: {
3-
CDN_URL: '',
4-
CONTENT_SECURITY_POLICY: 'bar'
5-
}
2+
inject: {
3+
CDN_URL: '',
4+
},
65
};

0 commit comments

Comments
 (0)