Created
January 19, 2025 22:36
-
-
Save tiagopog/bfd1dc54736ad8728111d62070a4cbcf to your computer and use it in GitHub Desktop.
ESLint + Prettier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ignore artifacts: | |
build | |
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"printWidth": 100, | |
"bracketSpacing": true, | |
"trailingComma": "all", | |
"tabWidth": 2, | |
"semi": false, | |
"singleQuote": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import globals from 'globals' | |
import pluginJs from '@eslint/js' | |
import tseslint from 'typescript-eslint' | |
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended' | |
/** @type {import('eslint').Linter.Config[]} */ | |
export default [ | |
{ files: ['**/*.{js,mjs,cjs,ts}'] }, | |
{ languageOptions: { globals: globals.browser } }, | |
pluginJs.configs.recommended, | |
...tseslint.configs.recommended, | |
eslintPluginPrettierRecommended, | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "my-app", | |
"version": "0.0.1", | |
"description": "My app", | |
"main": "index.js", | |
"author": "Tiago Guedes", | |
"devDependencies": { | |
"@eslint/js": "^9.18.0", | |
"eslint": "^9.18.0", | |
"eslint-config-prettier": "^10.0.1", | |
"eslint-plugin-prettier": "^5.2.2", | |
"prettier": "3.4.2", | |
"typescript-eslint": "^8.20.0" | |
... | |
}, | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment