Skip to content

Commit

Permalink
Add eslint and prettier configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
AshurovG committed Sep 24, 2024
1 parent 0c96758 commit df6a3ca
Show file tree
Hide file tree
Showing 4 changed files with 1,026 additions and 43 deletions.
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"singleQuote": true,
"bracketSpacing": true,
"trailingComma": "all",
"tabWidth": 2
}
12 changes: 12 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import globals from 'globals';
import pluginJs from '@eslint/js';
import eslintConfigPrettier from 'eslint-config-prettier';

export default [
{
languageOptions: { globals: globals.browser },
ignorePatterns: ['./node_modules/'],
},
pluginJs.configs.recommended,
eslintConfigPrettier,
];
Loading

0 comments on commit df6a3ca

Please sign in to comment.