-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from devtron-labs/vite_exploration
feat: Vite integration
- Loading branch information
Showing
87 changed files
with
11,243 additions
and
11,288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint', 'react', 'prettier'], | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2021, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
project: ['./tsconfig.json'], | ||
}, | ||
globals: { | ||
JSX: true, | ||
}, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:react/recommended', | ||
'plugin:react/jsx-runtime', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'airbnb', | ||
'airbnb/hooks', | ||
'prettier', | ||
], | ||
rules: { | ||
'prettier/prettier': ['error'], | ||
'linebreak-style': ['error', 'unix'], | ||
'no-console': 'warn', | ||
'no-var': 'error', | ||
'no-duplicate-imports': 'error', | ||
'no-shadow': 'off', | ||
'@typescript-eslint/no-shadow': 'warn', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/explicit-member-accessibility': 'off', | ||
// Since we are using typescript, we can disable the no-unused-vars rule for enum,etc | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': 'error', | ||
'react/jsx-filename-extension': [ | ||
'error', | ||
{ | ||
extensions: ['tsx'], | ||
}, | ||
], | ||
'react/jsx-props-no-spreading': 'off', | ||
'react/prefer-stateless-function': 'off', | ||
'jsx-a11y/click-events-have-key-events': 'off', | ||
'jsx-a11y/no-static-element-interactions': 'off', | ||
'jsx-a11y/no-noninteractive-element-interactions': 'off', | ||
'no-underscore-dangle': 'off', | ||
'import/no-extraneous-dependencies': [ | ||
'warn', | ||
{ | ||
devDependencies: true, | ||
}, | ||
], | ||
'no-plusplus': [ | ||
'error', | ||
{ | ||
allowForLoopAfterthoughts: true, | ||
}, | ||
], | ||
// Since we dont use prop-types, we can disable this rule | ||
'react/require-default-props': 'off', | ||
'react-hooks/exhaustive-deps': 'off', | ||
'react/function-component-definition': [ | ||
'warn', | ||
{ | ||
namedComponents: 'arrow-function', | ||
unnamedComponents: 'arrow-function', | ||
}, | ||
], | ||
'react/jsx-uses-react': 'off', | ||
'react/react-in-jsx-scope': 'off', | ||
// additional rules: | ||
'@typescript-eslint/no-floating-promises': 'error', | ||
'import/extensions': [ | ||
'warn', | ||
'ignorePackages', | ||
{ | ||
js: 'never', | ||
jsx: 'never', | ||
ts: 'never', | ||
tsx: 'never', | ||
}, | ||
], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx'], | ||
rules: { | ||
'no-undef': 'off', | ||
}, | ||
}, | ||
], | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
'import/resolver': { | ||
node: { | ||
moduleDirectory: ['src', 'node_modules'], | ||
extensions: ['.js', '.jsx', '.ts', '.tsx'], | ||
}, | ||
}, | ||
}, | ||
ignorePatterns: [".eslintrc.cjs", "vite.config.ts"], | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v16.13.0 | ||
v20.11.0 |
File renamed without changes.
Oops, something went wrong.