-
Notifications
You must be signed in to change notification settings - Fork 1
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 #2 from nashtech-garage/fix/bug-remaining
Feat: Migrate to story 8 and fix eslint cannot lint to apps
- Loading branch information
Showing
111 changed files
with
12,797 additions
and
12,841 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"root": true, | ||
"ignorePatterns": ["**/*"], | ||
"plugins": ["@nrwl/nx"], | ||
"overrides": [ | ||
{ | ||
|
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,3 +1,10 @@ | ||
{ | ||
"css.customData": [".vscode/tailwind.json"] | ||
"css.customData": [".vscode/tailwind.json"], | ||
"[typescript]": { | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": "always" | ||
} | ||
}, | ||
} |
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,93 @@ | ||
const ts = require('typescript') | ||
|
||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
extends: [ | ||
'../../.eslintrc.json', | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:react/recommended', | ||
'prettier', | ||
'plugin:storybook/recommended', | ||
'airbnb', | ||
'airbnb-typescript', | ||
], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: './tsconfig.eslint.json', | ||
tsconfigRootDir: __dirname, | ||
}, | ||
plugins: ['@typescript-eslint', 'react', 'simple-import-sort'], | ||
ignorePatterns: [ | ||
'vite.config.ts', | ||
'typings.d.ts', | ||
'tailwind.config.js', | ||
'theme.ts', | ||
'*.stories.mdx', | ||
'.eslintrc.js', | ||
], | ||
rules: { | ||
'react/jsx-key': 'off', | ||
'react/react-in-jsx-scope': 'off', | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': 'warn', | ||
'no-console': 'warn', | ||
'simple-import-sort/imports': 'error', | ||
'simple-import-sort/exports': 'error', | ||
'react/require-default-props': 'off', | ||
'import/prefer-default-export': 'off', | ||
'react/button-has-type': 'off', | ||
'@typescript-eslint/semi': 'off', | ||
'object-curly-newline': 'off', | ||
'linebreak-style': 'off', | ||
'no-extraneous-dependencies': 'off', | ||
'import/no-extraneous-dependencies': 'off', | ||
'import/extensions': [ | ||
'error', | ||
{ | ||
ignorePackages: true, | ||
pattern: { | ||
css: 'always', | ||
}, | ||
}, | ||
], | ||
'react/function-component-definition': [ | ||
2, | ||
{ namedComponents: 'arrow-function' }, | ||
], | ||
'react/jsx-props-no-spreading': 'off', | ||
'implicit-arrow-linebreak': 'off', | ||
'@typescript-eslint/no-explicit-any': 'warn', | ||
'jsx-a11y/no-static-element-interactions': 'off', | ||
'jsx-a11y/anchor-is-valid': 'off', | ||
'import/no-cycle': 'off', | ||
'storybook/prefer-pascal-case': 'off', | ||
'import/no-named-as-default': 'off', | ||
'@typescript-eslint/indent': 'off', | ||
'react/no-danger': 'off', | ||
'react/no-array-index-key': 'off', | ||
'max-len': ['off'], | ||
'operator-linebreak': [ | ||
'error', | ||
'after', | ||
{ overrides: { '?': 'before', ':': 'before' } }, | ||
], | ||
'react/jsx-closing-bracket-location': 'off', | ||
'react/jsx-one-expression-per-line': 'off', | ||
'no-use-before-define': 'off', | ||
'@typescript-eslint/no-use-before-define': 'off', | ||
'react/jsx-curly-newline': 'off', | ||
'jsx-a11y/control-has-associated-label': 'off', | ||
'function-paren-newline': 'off', | ||
'@typescript-eslint/ban-ts-comment': 'warn', | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,18 @@ | ||
import type { Preview } from "@storybook/react"; | ||
import { withThemeByDataAttribute } from "@storybook/addon-styling"; | ||
import type { Preview } from '@storybook/react' | ||
|
||
import "../src/tailwind/theme.css"; | ||
|
||
export const decorators = [ | ||
withThemeByDataAttribute({ | ||
themes: { | ||
light: "light", | ||
dark: "dark", | ||
}, | ||
defaultTheme: "light", | ||
attributeName: "data-mode", | ||
}), | ||
]; | ||
import '../src/tailwind/theme.css' | ||
|
||
const preview: Preview = { | ||
parameters: { | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
parameters: { | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
export default preview; | ||
tags: ['autodocs'], | ||
} | ||
|
||
export default preview |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.