Skip to content
Merged
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
5 changes: 2 additions & 3 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,9 @@ The module also exports `ANIMATIONS` and `MAX_STARS`.

**One rule set for every file**, JavaScript and TypeScript alike, parsed by `@typescript-eslint/parser`:

- Tabs for indentation (indent: ['error', 'tab']) and required semicolons
- Console logs allowed (`no-console: off`)
- Console logs are allowed
- Unused vars are an error, with `_`-prefixed names ignored (e.g. `_unusedParam`)
- `curly` and `padding-line-between-statements` enforce the readability rules below
- `curly` enforces the braced-block rule below

### TypeScript

Expand Down
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"arrowParens": "always",
"endOfLine": "auto",
"importOrder": ["^components/(.*)$", "^[./]"],
"importOrder": ["^[./]"],
"importOrderParserPlugins": ["typescript", "jsx", "decorators-legacy"],
"importOrderSeparation": false,
"importOrderSortSpecifiers": true,
Expand Down
27 changes: 0 additions & 27 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const globals = require('globals');
const tsParser = require('@typescript-eslint/parser');

module.exports = [
Expand Down Expand Up @@ -26,42 +25,16 @@ module.exports = [
parser: tsParser,
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.browser,
},
parserOptions: {
ecmaFeatures: {
modules: true,
jsx: true,
},
},
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'class-methods-use-this': 'off',
'consistent-return': 'off',
curly: ['error', 'multi-line'],
indent: ['error', 'tab'],
'no-console': 'off',
'no-continue': 'off',
'no-html-link-for-pages': 'off',
'no-param-reassign': 'off',
'no-restricted-syntax': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: '*', next: ['return', 'continue', 'throw'] },
// `break` is excluded above: it cannot be told apart from a `switch` break,
// and switches take no blank lines.
{ blankLine: 'any', prev: '*', next: ['case', 'default', 'break'] },
{ blankLine: 'any', prev: ['case', 'default'], next: '*' },
],
radix: 'off',
semi: ['error', 'always'],
},
},
];
3 changes: 0 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@ const customJestConfig = {
'^@images/(.*)$': '<rootDir>/src/images/$1',
'^@layouts$': '<rootDir>/src/layouts/index.ts',
'^@layouts/(.*)$': '<rootDir>/src/layouts/$1',
'^@styles$': '<rootDir>/src/styles/index.ts',
'^@styles/(.*)$': '<rootDir>/src/styles/$1',
'^@util$': '<rootDir>/src/util/index.ts',
'^@util/(.*)$': '<rootDir>/src/util/$1',
'^.+\\.(svg)$': '<rootDir>/jest/svg-mock.js',
'\\.(css|less|scss|sass)$': 'jest-transform-stub',
'\\.(svg|png|jpg|jpeg|gif|webp)$': '<rootDir>/jest/svg-mock.js',
},
testEnvironment: 'jsdom',
verbose: true,
Expand Down
1 change: 1 addition & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
import "./.next/types/routes.d.ts";
import "./.next/types/root-params.d.ts";

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
Loading