Skip to content

Commit

Permalink
Merge pull request #3 from pcbowers/improve-bundle-size
Browse files Browse the repository at this point in the history
perf: ⚡ Improved Bundle Size and Performance
  • Loading branch information
pcbowers committed Apr 5, 2022
2 parents 443c4bd + 79c1811 commit 60c8e9c
Show file tree
Hide file tree
Showing 13 changed files with 3,271 additions and 3,860 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

47 changes: 47 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
module.exports = {
env: {
browser: true,
node: false,
},
extends: ['sanity/react', 'sanity/typescript', 'plugin:prettier/recommended'],
overrides: [
{
files: ['*.{ts,tsx}'],
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
project: './tsconfig.json',
},
plugins: ['@typescript-eslint', 'prettier'],
ignorePatterns: ['.eslintrc.js', 'lib/**/*', 'vite.config.ts'],
rules: {
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-unused-vars': 1,
'no-undef': 0,
'no-warning-comments': 0,
'react/display-name': 0,
'no-unused-vars': 'off',
'require-await': 0,
'no-empty-function': 0,
'no-param-reassign': 0,
'@typescript-eslint/no-shadow': 'error',
'no-shadow': 'off',
camelcase: 0,
},
settings: {
'import/ignore': ['.*node_modules.*', '.*:.*'],
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
typescript: {
project: './tsconfig.json',
},
},
},
}
12 changes: 0 additions & 12 deletions .npmignore

This file was deleted.

9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"tabWidth": 2,
"useTabs": false,
"semi": false,
"bracketSpacing": false,
"printWidth": 100,
"singleQuote": true,
"endOfLine": "lf"
}

0 comments on commit 60c8e9c

Please sign in to comment.