Skip to content

Commit 6c08ee3

Browse files
committed
inital commit v3.0.0
1 parent bab0550 commit 6c08ee3

Some content is hidden

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

82 files changed

+21971
-38813
lines changed

.babelrc

-13
This file was deleted.

.eslintignore

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
2-
lib
3-
tests/demo-app
2+
dist
3+
tests/
4+
media/
5+
.eslintrc.js

.eslintrc

-4
This file was deleted.

.eslintrc.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
const prettierConf = require('./.prettierrc.js');
2+
3+
module.exports = {
4+
parser: '@typescript-eslint/parser',
5+
extends: [
6+
'plugin:react/recommended',
7+
'plugin:@typescript-eslint/recommended',
8+
// 'prettier/@typescript-eslint',
9+
'plugin:prettier/recommended',
10+
'prettier',
11+
],
12+
parserOptions: {
13+
ecmaVersion: 2020,
14+
sourceType: 'module',
15+
ecmaFeatures: {
16+
jsx: true, // Allows for the parsing of JSX
17+
},
18+
},
19+
settings: {
20+
react: {
21+
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
22+
},
23+
},
24+
rules: {
25+
'prettier/prettier': ['error', prettierConf],
26+
'@typescript-eslint/consistent-type-imports': 'warn',
27+
'react/prop-types': 'off',
28+
},
29+
};

.npmignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.eslintrc.js
2+
.eslintignore
3+
.gitignore
4+
.prettierrc.js
5+
tsconfig.json
6+
jest.config.js
7+
rollup.config.json
8+
tests/
9+
media/
10+
node_modules/
11+
.vscode/

.prettierrc.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
semi: true,
3+
trailingComma: 'all',
4+
singleQuote: true,
5+
printWidth: 120,
6+
tabWidth: 2,
7+
};

.vscode/settings.json

+22-15
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
{
2-
// These are all my auto-save configs
3-
"editor.formatOnSave": true,
4-
// turn it off for JS and JSX, we will do this via eslint
5-
"[javascript]": {
6-
"editor.formatOnSave": false
7-
},
8-
"[javascriptreact]": {
9-
"editor.formatOnSave": false
10-
},
11-
// tell the ESLint plugin to run on save
12-
"editor.codeActionsOnSave": {
13-
"source.fixAll": true
14-
},
15-
// Optional BUT IMPORTANT: If you have the prettier extension enabled for other languages like CSS and HTML, turn it off for JS since we are doing it through Eslint already
16-
"prettier.disableLanguages": ["javascript", "javascriptreact"]
2+
"editor.defaultFormatter": "esbenp.prettier-vscode",
3+
"editor.formatOnSave": true,
4+
"editor.codeActionsOnSave": {
5+
"source.fixAll": true
6+
},
7+
"editor.quickSuggestions": {
8+
"strings": true
9+
},
10+
"typescript.updateImportsOnFileMove.enabled": "always",
11+
"[javascript]": {
12+
"editor.defaultFormatter": "esbenp.prettier-vscode"
13+
},
14+
"[json]": {
15+
"editor.defaultFormatter": "esbenp.prettier-vscode"
16+
},
17+
"eslint.codeAction.showDocumentation": {
18+
"enable": true
19+
},
20+
"[typescript]": {
21+
"editor.defaultFormatter": "esbenp.prettier-vscode"
22+
},
23+
"eslint.lintTask.enable": true
1724
}

0 commit comments

Comments
 (0)