summaryrefslogtreecommitdiff
path: root/eslint.config.js
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-07-27 22:54:50 -0700
committerElizabeth Hunt <me@liz.coffee>2025-07-27 23:34:57 -0700
commitcee0ebe2f5fb55f2ec1e3fbae58c1a9c108ade4a (patch)
tree58604691b818442b226a137ed9cb40388a178f98 /eslint.config.js
parent235a4a4e098dfbe3f75857e2b462bef2709d6761 (diff)
downloadpengueno-cee0ebe2f5fb55f2ec1e3fbae58c1a9c108ade4a.tar.gz
pengueno-cee0ebe2f5fb55f2ec1e3fbae58c1a9c108ade4a.zip
Run prettier
Diffstat (limited to 'eslint.config.js')
-rw-r--r--eslint.config.js76
1 files changed, 38 insertions, 38 deletions
diff --git a/eslint.config.js b/eslint.config.js
index 3821c14..a21d24b 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -3,46 +3,46 @@ import tseslint from 'typescript-eslint';
import prettierPlugin from 'eslint-plugin-prettier';
export default tseslint.config({
- ignores: ['dist/', 'node_modules/', '*.js', '*.d.ts'],
+ ignores: ['dist/', 'node_modules/', '*.js', '*.d.ts'],
- extends: [
- tseslint.configs.recommended,
- tseslint.configs.recommendedTypeChecked,
- {
- files: ['**/*.ts', '**/*.tsx'],
- languageOptions: {
- parser: tseslint.parser,
- parserOptions: {
- ecmaVersion: 2022,
- sourceType: 'module',
- project: './tsconfig.json',
+ extends: [
+ tseslint.configs.recommended,
+ tseslint.configs.recommendedTypeChecked,
+ {
+ files: ['**/*.ts', '**/*.tsx'],
+ languageOptions: {
+ parser: tseslint.parser,
+ parserOptions: {
+ ecmaVersion: 2022,
+ sourceType: 'module',
+ project: './tsconfig.json',
+ },
+ },
+ plugins: {
+ prettier: prettierPlugin,
+ },
+ rules: {
+ '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
+ '@typescript-eslint/no-explicit-any': 'warn',
+ '@typescript-eslint/explicit-function-return-type': 'off',
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
+ '@typescript-eslint/no-non-null-assertion': 'warn',
+ '@typescript-eslint/prefer-nullish-coalescing': 'error',
+ '@typescript-eslint/prefer-optional-chain': 'error',
+ '@typescript-eslint/no-floating-promises': 'error',
+ 'no-console': 'warn',
+ 'prefer-const': 'error',
+ 'prettier/prettier': 'error',
+ },
},
- },
- plugins: {
- prettier: prettierPlugin,
- },
- rules: {
- '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
- '@typescript-eslint/no-explicit-any': 'warn',
- '@typescript-eslint/explicit-function-return-type': 'off',
- '@typescript-eslint/explicit-module-boundary-types': 'off',
- '@typescript-eslint/no-non-null-assertion': 'warn',
- '@typescript-eslint/prefer-nullish-coalescing': 'error',
- '@typescript-eslint/prefer-optional-chain': 'error',
- '@typescript-eslint/no-floating-promises': 'error',
- 'no-console': 'warn',
- 'prefer-const': 'error',
- 'prettier/prettier': 'error',
- },
- },
- ],
+ ],
- languageOptions: {
- ecmaVersion: 2022,
- sourceType: 'module',
- },
+ languageOptions: {
+ ecmaVersion: 2022,
+ sourceType: 'module',
+ },
- linterOptions: {
- reportUnusedDisableDirectives: true,
- },
+ linterOptions: {
+ reportUnusedDisableDirectives: true,
+ },
});