Initial commit
This commit is contained in:
commit
7878e653a0
253 changed files with 24552 additions and 0 deletions
69
.eslintrc.js
Normal file
69
.eslintrc.js
Normal file
|
@ -0,0 +1,69 @@
|
|||
module.exports = {
|
||||
extends: [
|
||||
'airbnb-typescript',
|
||||
],
|
||||
parserOptions: {
|
||||
project: './tsconfig.json',
|
||||
},
|
||||
ignorePatterns: [
|
||||
'**/*.js',
|
||||
'src/stories/*.tsx',
|
||||
],
|
||||
rules: {
|
||||
'jsx-a11y/label-has-associated-control': [
|
||||
'error',
|
||||
{
|
||||
required: {
|
||||
some: [
|
||||
'nesting',
|
||||
'id',
|
||||
],
|
||||
},
|
||||
controlComponents: [
|
||||
'AutosizeInput',
|
||||
'Editor',
|
||||
],
|
||||
},
|
||||
],
|
||||
'import/no-extraneous-dependencies': [
|
||||
'error',
|
||||
{
|
||||
devDependencies: [
|
||||
'.storybook/**',
|
||||
'**/*.stories.tsx',
|
||||
'**/*.test.ts',
|
||||
'**/*.test.tsx',
|
||||
'src/tests/**',
|
||||
],
|
||||
},
|
||||
],
|
||||
'import/prefer-default-export': 'off',
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: [
|
||||
'src/redux/migrations/*.ts',
|
||||
'src/redux/reducers/*.ts',
|
||||
],
|
||||
rules: {
|
||||
'no-param-reassign': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: [
|
||||
'src/redux/migrations.ts',
|
||||
],
|
||||
rules: {
|
||||
'global-require': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: [
|
||||
'src/**/*.stories.tsx',
|
||||
],
|
||||
rules: {
|
||||
'react/jsx-props-no-spreading': 'off',
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue