jackson/.eslintrc.js

42 lines
823 B
JavaScript
Raw Permalink Normal View History

2021-11-06 01:06:18 +00:00
module.exports = {
2021-12-30 05:21:11 +00:00
env: {
es2021: true,
node: true,
},
parserOptions: {
ecmaVersion: 13,
sourceType: 'module',
},
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'i18next'],
2021-12-30 05:21:11 +00:00
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'next/core-web-vitals',
'plugin:i18next/recommended',
2021-12-30 05:21:11 +00:00
],
2022-01-19 21:56:42 +00:00
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'import/no-anonymous-default-export': 'off',
},
},
2022-01-19 21:56:42 +00:00
{
files: ['*.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
Bootstrap ui sdk development with Login component (#735) * Push sdk folder * Ignore `sdk` from root tsconfig * Add postcss config * Tweaks to the vite setup * Cleanup and add `Login` component * Test * Undo test commit * Turn off next linter rule for sdk * Tweaks to component doc * Add dom libs to tsconfig * html id generation * Component WIP * Update tsconfig and lock file * Refactor * Tweak props and handle error display * Simplify `useId` hook * Update JSDOC * Remove ErrorDisplayComponent prop * Minor refactor * Refactor id generation, add jsdoc * Support styling via props and add default styles * Sync lock files * More default styles for input * Sync lock file * Tweak box-shadow * Minor tweak comment * WIP * Update package name and lock file * Update vite config fileName * Exclude type emit for internal components * Tweak package.json * Rename `react-ui` * Add repo and bugs fields * Fix import name and jsdoc * Support `unstyled` prop * Tweak README and docs * Minor tweaks * Tweak README and update favicon * Add workflow for npm publish * Update build script and use node 16 * Add trigger on push * Add dev dependencies to fix failing build * Add missing dev dependency * set access to public * Move react & others to dev dependencies * Fix main,module,exports in package.json * Include types in package.json * Fix types path * Fix return type for `forwardTenant` * Include react as a peer dependency * Add react plugin to vite * Handle `undefined` * Inject defaultStyles into build * Update tsconfig * Update homepage * Update type to void for no return * Update usage * [skip ci] update lock file * [skip ci] Merge branch 'main' into 702-react-sdk-login * WIP tweak component * Handle submission state, align focus styles * Sync lock file * Swap ::set-output with `$GITHUB_OUTPUT` * Use ci job output for getting npm version and publish tag * trigger sdk jobs on `workflow_call` * Use sdk workflow * Fix workflow path * Replace version in sdk package.json * Move condition to sdk workflow * Update vite to v4 and cleanup dependencies * Publish a beta version for testing * Revert removal of autoprefixer * Update node version and inherit secrets * Tweaks * Update SDK README * Revert changes related to testing * Align border-radius with boxyhq ui * Temporarily allow publish * Style alignment with boxyhq ui * - Update default styling to that of a b/w look - Support style attr for container - Tweak types - Support CSS vars on container element to style input and button outlines plus button hover * Accept any color format * Tweak README and demos * Support spreading props for input/button * Tweak style injection so that userland classes load later and override the default styles * Try non injection of css * Add style.css to exports and files * Formatting change * Add styling section * Bump up version * - Use defaultClasses only if custom classes are not set - Remove `unstyled` prop * Update demos * Add style for disabled state * Tweak README * Bring back css injection * Remove style from files and exports fields * Scope css properties to appropriate inner elements * Remove css properties * Bump version * Support HTMLAttributes for container and label also * Prep for release * Export types from entry point file * Tweak for local usage via npm linking * Replace package.json fields before publish * Tweak demos * updated dependabot for new package.json * fixed yaml Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2023-01-11 22:16:23 +00:00
{
files: ['sdk/**/*'],
rules: {
'@next/next/no-img-element': 'off',
},
},
2022-01-19 21:56:42 +00:00
],
2021-11-06 01:06:18 +00:00
};