Skip to content

Commit

Permalink
inital commit v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrelandgraf committed Apr 1, 2022
1 parent bab0550 commit 6c08ee3
Show file tree
Hide file tree
Showing 82 changed files with 21,971 additions and 38,813 deletions.
13 changes: 0 additions & 13 deletions .babelrc

This file was deleted.

6 changes: 4 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
lib
tests/demo-app
dist
tests/
media/
.eslintrc.js
4 changes: 0 additions & 4 deletions .eslintrc

This file was deleted.

29 changes: 29 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const prettierConf = require('./.prettierrc.js');

module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
// 'prettier/@typescript-eslint',
'plugin:prettier/recommended',
'prettier',
],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true, // Allows for the parsing of JSX
},
},
settings: {
react: {
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
},
},
rules: {
'prettier/prettier': ['error', prettierConf],
'@typescript-eslint/consistent-type-imports': 'warn',
'react/prop-types': 'off',
},
};
11 changes: 11 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.eslintrc.js
.eslintignore
.gitignore
.prettierrc.js
tsconfig.json
jest.config.js
rollup.config.json
tests/
media/
node_modules/
.vscode/
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 120,
tabWidth: 2,
};
37 changes: 22 additions & 15 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
{
// These are all my auto-save configs
"editor.formatOnSave": true,
// turn it off for JS and JSX, we will do this via eslint
"[javascript]": {
"editor.formatOnSave": false
},
"[javascriptreact]": {
"editor.formatOnSave": false
},
// tell the ESLint plugin to run on save
"editor.codeActionsOnSave": {
"source.fixAll": true
},
// 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
"prettier.disableLanguages": ["javascript", "javascriptreact"]
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"editor.quickSuggestions": {
"strings": true
},
"typescript.updateImportsOnFileMove.enabled": "always",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"eslint.codeAction.showDocumentation": {
"enable": true
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"eslint.lintTask.enable": true
}
Loading

0 comments on commit 6c08ee3

Please sign in to comment.