Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
59 lines
1.6 KiB
JavaScript
59 lines
1.6 KiB
JavaScript
module.exports = {
|
|
parser: '@typescript-eslint/parser',
|
|
settings: {
|
|
react: {
|
|
version: 'detect',
|
|
},
|
|
},
|
|
plugins: ['lodash', 'unused-imports', 'jsx-a11y'],
|
|
extends: [
|
|
'next/core-web-vitals',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:react-hooks/recommended',
|
|
'plugin:react/recommended',
|
|
'plugin:react/jsx-runtime',
|
|
'plugin:jsx-a11y/recommended',
|
|
'plugin:@next/next/recommended',
|
|
'prettier',
|
|
],
|
|
rules: {
|
|
'react/display-name': 'off',
|
|
'react/no-unescaped-entities': 'off',
|
|
'react/jsx-no-target-blank': 'off',
|
|
'react/no-unstable-nested-components': ['error', { allowAsProps: true }],
|
|
'@typescript-eslint/no-empty-function': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'warn',
|
|
{
|
|
argsIgnorePattern: '^_',
|
|
varsIgnorePattern: '^_',
|
|
caughtErrorsIgnorePattern: '^_',
|
|
},
|
|
],
|
|
'@typescript-eslint/no-unused-expressions': [
|
|
'error',
|
|
{
|
|
// allowTernary: true
|
|
enforceForJSX: true,
|
|
},
|
|
],
|
|
'@next/next/no-img-element': 'off',
|
|
'jsx-a11y/anchor-is-valid': 'off',
|
|
'linebreak-style': [
|
|
'error',
|
|
process.platform === 'win32' ? 'windows' : 'unix',
|
|
],
|
|
'lodash/import-scope': [2, 'member'],
|
|
'unused-imports/no-unused-imports': 'warn',
|
|
'react-hooks/exhaustive-deps': 'off',
|
|
'no-constant-condition': 'off',
|
|
},
|
|
ignorePatterns: ['/public/mtg/*'],
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
},
|
|
}
|