-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from WildCodeSchool/Configuration_prettier_eslint
Configuration prettier eslint
- Loading branch information
Showing
20 changed files
with
6,958 additions
and
5,365 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"printWidth": 80, | ||
"tabWidth": 4, | ||
"useTabs": false, | ||
"vueIndentScriptAndStyle": true, | ||
"endOfLine": "lf", | ||
"arrowParens": "always" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import pluginTs from '@typescript-eslint/eslint-plugin'; | ||
import parserTs from '@typescript-eslint/parser'; | ||
import globals from 'globals'; | ||
|
||
export default [ | ||
{ | ||
ignores: ['dist', 'node_modules'], // Ignore les dossiers de build et node_modules | ||
}, | ||
{ | ||
files: ['**/*.ts'], // Lint uniquement les fichiers TypeScript | ||
languageOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
globals: globals.node, // Ajoute les globals Node.js (comme process, __dirname) | ||
parser: parserTs, // Utilise le parser TypeScript | ||
}, | ||
plugins: { | ||
'@typescript-eslint': pluginTs, // Charge le plugin TypeScript | ||
}, | ||
rules: { | ||
'@typescript-eslint/no-unused-vars': ['warn'], // Alerte pour les variables inutilisées | ||
'@typescript-eslint/explicit-function-return-type': 'off', // Pas besoin de typer explicitement les retours de fonction | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.