Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cheesy Pick-up lines Play #1533

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
176 changes: 88 additions & 88 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,88 +1,88 @@
module.exports = {
env: {
browser: true,
node: true,
es2021: true,
jest: true
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: ['react-hooks', 'react', '@typescript-eslint', 'prettier'],
ignorePatterns: ['**/plays/index.js'],
rules: {
// Note: you must disable the base rule as it can report incorrect errors
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
'import/extensions': 0,
'import/no-named-as-default-member': 0,
'react/prop-types': 0,
'react/display-name': 0,
'react/react-in-jsx-scope': 0,
// type - any would be very handy in few cases.
// The validation shouldn't be at linters end rather at code review end
'@typescript-eslint/no-explicit-any': 0,
// Empty functions are handy for creating protocol not execution
'@typescript-eslint/no-empty-function': 0,
// Require a whitespace at the beginning of a comment
'spaced-comment': ['error', 'always'],
// Maximum line length for comments
// Trailing comments allowed beyond maximum line length
'max-len': ['error', { code: 400, comments: 200, ignoreTrailingComments: true }],
// Require PascalCase for user-defined JSX components
'react/jsx-pascal-case': ['error'],
// Console logs cannot be committed.
'no-console': ['error', { allow: ['warn', 'error'] }],
// Require props to be sorted
'react/jsx-sort-props': ['error', { callbacksLast: true, shorthandFirst: true }],
// Omit boolean prop value when set to true
'react/jsx-boolean-value': ['error', 'never'],
// Require self closing tags in JSX/HTML
'react/self-closing-comp': ['error', { component: true, html: true }],
// Disallow unnecessary curly braces in JSX
'react/jsx-curly-brace-presence': ['error', 'never'],
// Require blank line before certain statements
'padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: '*', next: 'function' },
{ blankLine: 'always', prev: '*', next: 'class' },
{ blankLine: 'always', prev: '*', next: 'export' },
// Ignore consecutive export statements
{ blankLine: 'any', prev: 'export', next: 'export' },
{ blankLine: 'always', prev: '*', next: 'return' },
{ blankLine: 'always', prev: '*', next: 'break' },
{ blankLine: 'always', prev: '*', next: 'continue' },
{ blankLine: 'always', prev: '*', next: 'throw' }
],
'prettier/prettier': ['error', { endOfLine: 'auto' }]
},
settings: {
react: {
version: 'detect'
}
}
};
module.exports = {
env: {
browser: true,
node: true,
es2021: true,
jest: true
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: ['react-hooks', 'react', '@typescript-eslint', 'prettier'],
ignorePatterns: ['**/plays/index.js'],

rules: {
// Note: you must disable the base rule as it can report incorrect errors
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'warn',

'import/extensions': 0,

'import/no-named-as-default-member': 0,
'react/prop-types': 0,
'react/display-name': 0,
'react/react-in-jsx-scope': 0,

// type - any would be very handy in few cases.
// The validation shouldn't be at linters end rather at code review end
'@typescript-eslint/no-explicit-any': 0,

// Empty functions are handy for creating protocol not execution
'@typescript-eslint/no-empty-function': 0,

// Require a whitespace at the beginning of a comment
'spaced-comment': ['error', 'always'],

// Maximum line length for comments
// Trailing comments allowed beyond maximum line length
'max-len': ['error', { code: 400, comments: 200, ignoreTrailingComments: true }],

// Require PascalCase for user-defined JSX components
'react/jsx-pascal-case': ['error'],

// Console logs cannot be committed.
'no-console': ['error', { allow: ['warn', 'error'] }],

// Require props to be sorted
'react/jsx-sort-props': ['error', { callbacksLast: true, shorthandFirst: true }],

// Omit boolean prop value when set to true
'react/jsx-boolean-value': ['error', 'never'],

// Require self closing tags in JSX/HTML
'react/self-closing-comp': ['error', { component: true, html: true }],

// Disallow unnecessary curly braces in JSX
'react/jsx-curly-brace-presence': ['error', 'never'],

// Require blank line before certain statements
'padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: '*', next: 'function' },
{ blankLine: 'always', prev: '*', next: 'class' },
{ blankLine: 'always', prev: '*', next: 'export' },
// Ignore consecutive export statements
{ blankLine: 'any', prev: 'export', next: 'export' },
{ blankLine: 'always', prev: '*', next: 'return' },
{ blankLine: 'always', prev: '*', next: 'break' },
{ blankLine: 'always', prev: '*', next: 'continue' },
{ blankLine: 'always', prev: '*', next: 'throw' }
],
'prettier/prettier': ['error', { endOfLine: 'auto' }]
},
settings: {
react: {
version: 'detect'
}
}
};
Loading